Skip to content
providerkit
GitHub

ToolPart

Defined in: react/src/protocol.ts:121

optional agentId?: string;

Defined in: react/src/protocol.ts:142

The id of the agent part for the specialist that made this call. Absent when the root run made it.


optional attempt?: number;

Defined in: react/src/protocol.ts:129

Monotone operation attempt, independent of the run’s model attempt.


optional data?: unknown;

Defined in: react/src/protocol.ts:139

Host-authored JSON for a custom renderer. Passed through as it is: never validated here, never copied.


optional detail?: string;

Defined in: react/src/protocol.ts:136


id: string;

Defined in: react/src/protocol.ts:123


optional kind?: "step";

Defined in: react/src/protocol.ts:125

A workflow step uses the same activity row, but is not a model tool call.


label: string;

Defined in: react/src/protocol.ts:133


optional name?: string;

Defined in: react/src/protocol.ts:132

The tool’s own name, when the host chooses to show it. Two calls of one tool still differ by id.


optional parentOperationId?: string;

Defined in: react/src/protocol.ts:127

The program tool operation that admitted this call. Never an agent or permission.


state: ToolState;

Defined in: react/src/protocol.ts:134


optional summary?: string;

Defined in: react/src/protocol.ts:135


type: "tool";

Defined in: react/src/protocol.ts:122