Open History to see the last commit
Interface: ToolCallHookContext#
Defined in: packages/typescript/ai/src/activities/chat/middleware/types.ts:163
Context provided to tool call hooks (onBeforeToolCall / onAfterToolCall).
Properties#
args#
args: unknown;
Defined in: packages/typescript/ai/src/activities/chat/middleware/types.ts:169
Parsed arguments for the tool call
tool#
tool:
| Tool<SchemaInput, SchemaInput, string>
| undefined;
Defined in: packages/typescript/ai/src/activities/chat/middleware/types.ts:167
The resolved tool definition, if found
toolCall#
toolCall: ToolCall;
Defined in: packages/typescript/ai/src/activities/chat/middleware/types.ts:165
The tool call being executed
toolCallId#
toolCallId: string;
Defined in: packages/typescript/ai/src/activities/chat/middleware/types.ts:173
ID of the tool call
toolName#
toolName: string;
Defined in: packages/typescript/ai/src/activities/chat/middleware/types.ts:171
Name of the tool