Skip to content
providerkit
GitHub

ToolActivity

Defined in: react/src/agents.ts:59

One tool call as the host’s callbacks see it. Live events and saved runs give the same values, so a callback that reads only these draws the same row both ways.

agentId: string;

Defined in: react/src/agents.ts:66


call: ToolCall;

Defined in: react/src/agents.ts:69

Original call, before approval edits. arguments is raw JSON from the model or program, often the user’s own data: copy out only what this viewer may see.


operationId: string;

Defined in: react/src/agents.ts:61

The SDK’s id for this call, and the row’s id.


optional parentOperationId?: string;

Defined in: react/src/agents.ts:63

Actual program operation for an inner call. No child agent was started.


optional result?: ToolResult;

Defined in: react/src/agents.ts:71

How the call ended. Absent while it runs. Its content is private in the same way.


runId: string;

Defined in: react/src/agents.ts:65

The run that made the call, and the id of that run’s agent.