Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

ToolCallStartEvent.md

55 lines1.0 KB

Defined in: packages/ai/src/types.ts:1704

Emitted when a tool call starts.

@ag-ui/core provides: toolCallId, toolCallName, parentMessageId?, subagentRunId?

Extends

  • Omit<AGUIToolCallStartEvent, "type">

Properties

metadata?

optional metadata?: Record<string, any>;

Defined in: packages/ai/src/types.ts:1712

Provider-specific metadata to carry into the ToolCall.

Overrides

Omit.metadata

toolName?

optional toolName?: string;

Defined in: packages/ai/src/types.ts:1710

Alias of toolCallName. Kept so existing stream readers still compile.


type

type: "TOOL_CALL_START";

Defined in: packages/ai/src/types.ts:1708