Documentation
Framework
Version
Class References
Function References
Interface References
Type Alias References
Variable References

ToolCallPart

Interface: ToolCallPart

Defined in: types.ts:180

Properties

approval?

ts
optional approval: object;
optional approval: object;

Defined in: types.ts:187

Approval metadata if tool requires user approval

approved?

ts
optional approved: boolean;
optional approved: boolean;

id

ts
id: string;
id: string;

needsApproval

ts
needsApproval: boolean;
needsApproval: boolean;

arguments

ts
arguments: string;
arguments: string;

Defined in: types.ts:184


id

ts
id: string;
id: string;

Defined in: types.ts:182


name

ts
name: string;
name: string;

Defined in: types.ts:183


output?

ts
optional output: any;
optional output: any;

Defined in: types.ts:193

Tool execution output (for client tools or after approval)


state

ts
state: ToolCallState;
state: ToolCallState;

Defined in: types.ts:185


type

ts
type: "tool-call";
type: "tool-call";

Defined in: types.ts:181