We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b91999 commit 6412a69Copy full SHA for 6412a69
1 file changed
docs/ai-chat/patterns/tool-result-auditing.mdx
@@ -112,12 +112,11 @@ await auditLog.upsert({
112
## What `extractNewToolResults` returns
113
114
```ts
115
-type ExtractedToolResult = {
+type ChatNewToolResult = {
116
toolCallId: string;
117
toolName: string;
118
- input: unknown; // The arguments the model passed when calling the tool
119
- output?: unknown; // The tool's return value (output-available state)
120
- 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
121
};
122
```
123
0 commit comments