Skip to content

ToolExecutionOutcome

This content is not available in your language yet.

执行器最终结果

optional aborted?: boolean;

执行器因 signal 主动提前收尾(查询环据此以 aborted_tools 终止)


results: {
callId: string;
content: (
| {
t: "text";
text: string;
}
| {
data: string;
mime: string;
t: "image";
})[];
isError?: boolean;
t: "tool_result";
}[];

与 calls 等长、按输入序逐一配对的 tool_result 块(《07》§1.6 ④:严格 输入序回填;乱序/缺配对视为编程错误,查询环直接 throw)。 aborted=true 时允许为不完整前缀。

callId: string;
content: (
| {
t: "text";
text: string;
}
| {
data: string;
mime: string;
t: "image";
})[];
optional isError?: boolean;
t: "tool_result";

optional touchedFiles?: readonly TouchedFileEntry[];

本批成功调用的文件触达清单(查询环压缩后文件重建的台账 数据源)。可选能力位——第三方最小实现可缺省,查询环按台账为空处理 (重建功能静默无候选,行为不变)。