UIToolCallPart
이 콘텐츠는 아직 번역되지 않았습니다.
嵌在 assistant 消息里的工具调用卡(全生命周期原位更新:proposed → … → 终态)
readonly optional args?: unknown;tool.proposed 携带的调用参数(渲染方按工具名解读)
durationMs?
Section titled “durationMs?”readonly optional durationMs?: number;errorMessage?
Section titled “errorMessage?”readonly optional errorMessage?: string;errorType?
Section titled “errorType?”readonly optional errorType?: string;tool.failed 的错误分类(协议五枚举,原样透传)
readonly id: string;协议 toolCallId
readonly name: string;result?
Section titled “result?”readonly optional result?: unknown;tool.completed 的结构化渲染数据(ToolResult.data 透传位)
resultText?
Section titled “resultText?”readonly optional resultText?: string;tool.completed 的模型可见文本投影(ToolResult content)
status
Section titled “status”readonly status: ToolCallPartStatus;readonly type: "toolCall";이 페이지가 도움이 되었나요?
피드백 감사합니다. 이 문서를 계속 개선하겠습니다.