pub struct AgentEvent {
pub envelope: EventEnvelope,
pub payload: EventPayload,
}Expand description
Carries the agent event record payload for journal, event, or fixture surfaces. Creating or cloning it only preserves serialized SDK state; append, publish, replay, or export effects are documented on the runtime and port methods that store it.
Fields§
§envelope: EventEnvelopeEnvelope used by this record or request.
payload: EventPayloadPayload carried by this record. Use the surrounding policy and redaction fields to decide whether it can be exposed.
Implementations§
Source§impl AgentEvent
impl AgentEvent
Sourcepub fn envelope_only(envelope: EventEnvelope) -> Self
pub fn envelope_only(envelope: EventEnvelope) -> Self
Builds the envelope only value. This is data construction and performs no I/O, journal append, event publication, or process work.
Sourcepub fn with_redacted_summary(
envelope: EventEnvelope,
redacted_summary: impl Into<String>,
) -> Self
pub fn with_redacted_summary( envelope: EventEnvelope, redacted_summary: impl Into<String>, ) -> Self
Returns this value with its redacted summary setting replaced. The method follows builder-style data construction and does not execute external work.
Sourcepub fn redacted_summary(&self) -> Option<&str>
pub fn redacted_summary(&self) -> Option<&str>
Reads the stored redacted summary without registry or runtime work. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Trait Implementations§
Source§impl Clone for AgentEvent
impl Clone for AgentEvent
Source§fn clone(&self) -> AgentEvent
fn clone(&self) -> AgentEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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>,
Source§impl PartialEq for AgentEvent
impl PartialEq for AgentEvent
Source§fn eq(&self, other: &AgentEvent) -> bool
fn eq(&self, other: &AgentEvent) -> bool
self and other values to be equal, and is used by ==.