diff --git a/docs/ai-chat/patterns/tool-result-auditing.mdx b/docs/ai-chat/patterns/tool-result-auditing.mdx index 493c803748..cab6b421a7 100644 --- a/docs/ai-chat/patterns/tool-result-auditing.mdx +++ b/docs/ai-chat/patterns/tool-result-auditing.mdx @@ -112,12 +112,11 @@ await auditLog.upsert({ ## What `extractNewToolResults` returns ```ts -type ExtractedToolResult = { +type ChatNewToolResult = { toolCallId: string; toolName: string; - input: unknown; // The arguments the model passed when calling the tool - output?: unknown; // The tool's return value (output-available state) - errorText?: string; // Error message (output-error state) + output: unknown; // The tool's return value (carries the resolved value; in output-error state see errorText) + errorText?: string; // Set iff the part is in output-error state }; ```