Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions docs/ai-chat/patterns/tool-result-auditing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
```

Expand Down