Skip to content

AgentToolCallEvent

Defined in: packages/protocol/src/lib/agent-wire.ts:545

A breadcrumb that the loop model called a tool.

The agent loop is experimental in 0.3 and may change in any minor release.

callId: CallId

Defined in: packages/protocol/src/lib/agent-wire.ts:555

Id that pairs this call with its tool_result event.


name: string

Defined in: packages/protocol/src/lib/agent-wire.ts:557

Name of the tool that was called.


runId: RunId

Defined in: packages/protocol/src/lib/agent-wire.ts:551

The Agent Run making the call.


turnId: string

Defined in: packages/protocol/src/lib/agent-wire.ts:553

The model turn that issued the call.


type: "tool_call"

Defined in: packages/protocol/src/lib/agent-wire.ts:547

Member discriminator.


version: 1

Defined in: packages/protocol/src/lib/agent-wire.ts:549

Agent wire version, always AGENT_WIRE_VERSION.