pub struct AgentEvent {Show 13 fields
pub event_id: String,
pub occurred_at: DateTime<Utc>,
pub device: DeviceContext,
pub agent: AgentContext,
pub session_id: String,
pub turn_index: NonZeroU32,
pub llm: LlmContext,
pub side: AgentEventSide,
pub text: Option<String>,
pub token_usage: TokenUsage,
pub tool_calls: Vec<ToolCall>,
pub tool_results: Vec<ToolResult>,
pub attachments: Vec<ImageAttachment>,
}Expand description
One event decoded with the contract defined by the active plugin protocol.
Fields§
§event_id: StringStable event identifier assigned by the event producer.
occurred_at: DateTime<Utc>Time at which the broker observed the logical event.
device: DeviceContextDevice context observed by the broker.
agent: AgentContextAgent product context inferred from traffic.
session_id: StringProvider or collector session identifier.
turn_index: NonZeroU32One-based collector turn index within the session.
llm: LlmContextProvider and model context.
side: AgentEventSideRequest or response side represented by this event.
text: Option<String>Policy-retained request or response text.
token_usage: TokenUsageToken counters attributed to this event side.
tool_calls: Vec<ToolCall>Normalized tool calls associated with this event side.
tool_results: Vec<ToolResult>Normalized tool results associated with this event side.
attachments: Vec<ImageAttachment>Policy-retained image attachments.
Trait Implementations§
Source§impl Debug for AgentEvent
impl Debug for AgentEvent
Source§impl<'de> Deserialize<'de> for AgentEvent
impl<'de> Deserialize<'de> for AgentEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentEvent
impl RefUnwindSafe for AgentEvent
impl Send for AgentEvent
impl Sync for AgentEvent
impl Unpin for AgentEvent
impl UnsafeUnpin for AgentEvent
impl UnwindSafe for AgentEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more