Skip to main content

ProtocolEvent

Agent Runtimes


Agent Runtimes / types/protocol / ProtocolEvent

Interface: ProtocolEvent

Defined in: types/protocol.ts:115

Protocol event

Properties

activity?

optional activity?: object

Defined in: types/protocol.ts:121

data

data: unknown

type

type: string


data?

optional data?: unknown

Defined in: types/protocol.ts:117


error?

optional error?: Error

Defined in: types/protocol.ts:127


message?

optional message?: ChatMessage

Defined in: types/protocol.ts:118


timestamp

timestamp: Date

Defined in: types/protocol.ts:128


toolCall?

optional toolCall?: ToolCallRequest

Defined in: types/protocol.ts:119


toolResult?

optional toolResult?: ToolExecutionResult<unknown>

Defined in: types/protocol.ts:120


type

type: ProtocolEventType

Defined in: types/protocol.ts:116


usage?

optional usage?: ProtocolUsage

Defined in: types/protocol.ts:126

Token usage for this event (emitted on finish/run-complete events)