Skip to main content

Module event

Module event 

Source
Expand description

Language-neutral Agent event wire types shared by the broker and Rust SDK.

These types are independent of the current backend ingest request. A delivery plugin may translate an event into its destination’s API without making that remote API part of the broker contract. Agent event compatibility is part of the broker plugin protocol version, so an individual event does not carry a separate schema version.

Structs§

AgentContext
Agent product context attached to one Agent event.
AgentEvent
One event decoded with the contract defined by the active plugin protocol.
Conversation
Content observed on one side of a provider exchange.
ConversationMessage
A provider message or standalone item, preserving its role and order.
DeviceContext
Device context attached to one Agent event.
ImageAttachment
One policy-retained image attachment.
LlmContext
LLM provider and model context attached to one Agent event.
TokenUsage
Normalized non-negative token counters.
ToolCall
One normalized model-requested tool invocation.
ToolResult
One normalized result submitted back to the model after a tool call.

Enums§

AgentEventSide
Request or response side represented by one usage event.
ContentCompleteness
Decoding state independent of successful provider execution.
EventPurpose
Agent-declared reason for a provider call.
ImageMediaType
Image media types supported by broker plugin protocol version 1.
LlmProvider
Known and extension LLM provider namespaces.
MessageRole
Role of one conversation message. TODO Context.