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

ToolCallPart.md

100 lines1.5 KB

Interface: ToolCallPart

Defined in: types.ts:245

Properties

approval?

optional approval: object;

Defined in: types.ts:252

Approval metadata if tool requires user approval

approved?

optional approved: boolean;

id

id: string;

needsApproval

needsApproval: boolean;

arguments

arguments: string;

Defined in: types.ts:249


id

id: string;

Defined in: types.ts:247


name

name: string;

Defined in: types.ts:248


output?

optional output: any;

Defined in: types.ts:258

Tool execution output (for client tools or after approval)


state

state: ToolCallState;

Defined in: types.ts:250


type

type: "tool-call";

Defined in: types.ts:246