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";このページは役に立ちましたか?
フィードバックありがとうございます。この記事の改善に活かします。