pub struct AgentMessage {Show 13 fields
pub message_id: MessageId,
pub role: AgentMessageRole,
pub parts: Vec<AgentMessagePart>,
pub producer_ref: EntityRef,
pub source_ref: SourceRef,
pub destination_ref: Option<DestinationRef>,
pub policy_refs: Vec<PolicyRef>,
pub privacy_class: PrivacyClass,
pub retention_class: RetentionClass,
pub trust_class: TrustClass,
pub lineage_refs: Vec<LineageRef>,
pub redacted_summary: String,
pub provider_projected: bool,
}Expand description
Carries the agent message 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§
§message_id: MessageIdMessage identifier for transcript, projection, or provider-response lineage.
role: AgentMessageRoleRole used by this record or request.
parts: Vec<AgentMessagePart>Collection of parts values. Ordering and membership should be treated as part of the serialized contract when relevant.
producer_ref: EntityRefTyped producer ref reference. Resolving or executing it is a separate policy-gated step.
source_ref: SourceRefTyped source reference that records where this item originated.
destination_ref: Option<DestinationRef>Typed destination reference that records where this item is being sent or projected.
policy_refs: Vec<PolicyRef>Policy references that govern admission, projection, execution, or delivery.
privacy_class: PrivacyClassPrivacy class used for projection, telemetry, and raw-content access decisions.
retention_class: RetentionClassRetention class used by hosts and sinks when storing or exporting this item.
trust_class: TrustClassTrust class used when deciding whether context or capabilities may be admitted.
lineage_refs: Vec<LineageRef>Typed lineage refs references. Resolving them is separate from constructing this record.
redacted_summary: StringRedacted human-readable summary safe for events, telemetry, and logs.
provider_projected: boolWhether provider projected is enabled. Policy, validation, or routing code uses this flag to choose the explicit behavior.
Implementations§
Source§impl AgentMessage
impl AgentMessage
Trait Implementations§
Source§impl Clone for AgentMessage
impl Clone for AgentMessage
Source§fn clone(&self) -> AgentMessage
fn clone(&self) -> AgentMessage
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 AgentMessage
impl Debug for AgentMessage
Source§impl<'de> Deserialize<'de> for AgentMessage
impl<'de> Deserialize<'de> for AgentMessage
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>,
impl Eq for AgentMessage
Source§impl PartialEq for AgentMessage
impl PartialEq for AgentMessage
Source§fn eq(&self, other: &AgentMessage) -> bool
fn eq(&self, other: &AgentMessage) -> bool
self and other values to be equal, and is used by ==.