跳转到内容

id、externalRef、name、rootPath、executionPolicy、status、kind、readOnly、createdAt、updatedAt

rootPath、kind、name、externalRef

path、name、type(file / directory)、sizeBytes、mimeType、etag、updatedAt、createdAt、readOnly

workspaceId、path、items[]、nextCursor — 目录直接子项分页

workspaceId、path、encoding、content、truncated、sizeBytes、mimeType、etag、updatedAt、readOnly

workspaceId、path、type、deleted

path、content、encoding、overwrite、ifMatch(配合 etag 乐观并发)

sourcePath、targetPath、overwrite

id、workspaceId、sessionId、parentRunId、initiatorRef、triggerType、triggerRef、agentName、effectiveAgentName、switchCount、status、cancelRequestedAt、startedAt、heartbeatAt、endedAt、createdAt、errorCode、errorMessage、metadata

name、description、exposeToLlm、callableByUser、callableByApi、retryPolicy(safe = 可安全重试,manual = 人工重试)

id、packageName、description、requiresUrl、useCases

Role-aware 消息结构(对齐 AI SDK ModelMessage JSON-safe 表示):

rolecontent
system字符串
user字符串,或 text / image / file parts
assistant字符串,或 text / file / reasoning / tool-call / tool-result / tool-approval-request parts
tooltool-result / tool-approval-response parts 数组
type关键字段
texttext
imageimage、mediaType
filedata、mediaType、filename
reasoningtext
tool-calltoolCallId、toolName、input、providerExecuted
tool-resulttoolCallId、toolName、output
tool-approval-requestapprovalId、toolCallId
tool-approval-responseapprovalId、approved、reason
type字段
textvalue: string
jsonvalue: JSONValue
execution-deniedreason?: string
error-textvalue: string
error-jsonvalue: JSONValue
contentvalue: [...](AI SDK content-style)

inputTokens、outputTokens、totalTokens

model、prompt、messages、temperature、maxTokens(prompt 与 messages 至少一个)

model、text、finishReason、usage

workspaceId、sessionId、runId、actionName、pageSize、cursor、path、sortBy、sortOrder、recursive、encoding、maxBytes

{"error": {"code": "ACTION_NOT_FOUND", "message": "Action code.review was not found", "details": {}}}

错误码:WORKSPACE_NOT_FOUND、SESSION_NOT_FOUND、RUN_NOT_FOUND、AGENT_NOT_FOUND、ACTION_NOT_FOUND、SKILL_NOT_FOUND、MCP_NOT_FOUND、HOOK_NOT_FOUND、INVALID_CONFIGURATION、RUN_CONFLICT、RUN_CANCELLED、TOOL_TIMEOUT、POLICY_DENIED、AGENT_SWITCH_DENIED、SUBAGENT_DENIED、MODEL_NOT_FOUND、MODEL_GATEWAY_DISABLED、MODEL_GATEWAY_LOCAL_ONLY