Open History to see the last commit
Defined in: packages/ai/src/activities/chat/middleware/types.ts:390
Context provided to tool call hooks (onBeforeToolCall / onAfterToolCall).
Properties#
args#
args: unknown;
Defined in: packages/ai/src/activities/chat/middleware/types.ts:396
Parsed arguments for the tool call
tool#
tool:
| Tool<SchemaInput, SchemaInput, string, unknown>
| undefined;
Defined in: packages/ai/src/activities/chat/middleware/types.ts:394
The resolved tool definition, if found
toolCall#
toolCall: ToolCall;
Defined in: packages/ai/src/activities/chat/middleware/types.ts:392
The tool call being executed
toolCallId#
toolCallId: string;
Defined in: packages/ai/src/activities/chat/middleware/types.ts:400
ID of the tool call
toolName#
toolName: string;
Defined in: packages/ai/src/activities/chat/middleware/types.ts:398
Name of the tool