Open History to see the last commit
Defined in: packages/ai/src/activities/chat/middleware/types.ts:430
Context provided to tool call hooks (onBeforeToolCall / onAfterToolCall).
Properties#
args#
args: unknown;
Defined in: packages/ai/src/activities/chat/middleware/types.ts:439
Parsed arguments for the tool call, before the inputSchema check: no
schema defaults or transforms yet, and possibly invalid.
tool#
tool:
| Tool<SchemaInput, SchemaInput, string, unknown>
| undefined;
Defined in: packages/ai/src/activities/chat/middleware/types.ts:434
The resolved tool definition, if found
toolCall#
toolCall: ToolCall;
Defined in: packages/ai/src/activities/chat/middleware/types.ts:432
The tool call being executed
toolCallId#
toolCallId: string;
Defined in: packages/ai/src/activities/chat/middleware/types.ts:443
ID of the tool call
toolName#
toolName: string;
Defined in: packages/ai/src/activities/chat/middleware/types.ts:441
Name of the tool