Skip to main content

ProtocolEvent

Agent Runtimes


Agent Runtimes / types/protocol / ProtocolEvent

Interface: ProtocolEvent

Defined in: src/types/protocol.ts:107

Protocol event

Properties

activity?

optional activity?: object

Defined in: src/types/protocol.ts:113

data

data: unknown

type

type: string


data?

optional data?: unknown

Defined in: src/types/protocol.ts:109


error?

optional error?: Error

Defined in: src/types/protocol.ts:119


message?

optional message?: ChatMessage

Defined in: src/types/protocol.ts:110


timestamp

timestamp: Date

Defined in: src/types/protocol.ts:120


toolCall?

optional toolCall?: ToolCallRequest

Defined in: src/types/protocol.ts:111


toolResult?

optional toolResult?: ToolExecutionResult<unknown>

Defined in: src/types/protocol.ts:112


type

type: ProtocolEventType

Defined in: src/types/protocol.ts:108


usage?

optional usage?: ProtocolUsage

Defined in: src/types/protocol.ts:118

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