pub struct MessagesSnapshotEvent {
pub base: BaseEvent,
pub messages: Vec<Message>,
}Expand description
Replaces the message history wholesale.
Used to reconcile after a reconnect, or when an agent rewrites history (for example after summarizing older turns).
Carries no subagentRunId of its own: one snapshot mixes messages from
several producers, so attribution travels per message instead.
Fields§
§base: BaseEventTimestamp and raw provider event.
messages: Vec<Message>The complete message list, oldest first.
Implementations§
Trait Implementations§
Source§impl Clone for MessagesSnapshotEvent
impl Clone for MessagesSnapshotEvent
Source§fn clone(&self) -> MessagesSnapshotEvent
fn clone(&self) -> MessagesSnapshotEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for MessagesSnapshotEvent
impl ComposeSchema for MessagesSnapshotEvent
Source§impl Debug for MessagesSnapshotEvent
impl Debug for MessagesSnapshotEvent
Source§impl Default for MessagesSnapshotEvent
impl Default for MessagesSnapshotEvent
Source§fn default() -> MessagesSnapshotEvent
fn default() -> MessagesSnapshotEvent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessagesSnapshotEvent
impl<'de> Deserialize<'de> for MessagesSnapshotEvent
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
Source§impl From<MessagesSnapshotEvent> for Event
impl From<MessagesSnapshotEvent> for Event
Source§fn from(payload: MessagesSnapshotEvent) -> Self
fn from(payload: MessagesSnapshotEvent) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for MessagesSnapshotEvent
impl JsonSchema for MessagesSnapshotEvent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for MessagesSnapshotEvent
impl PartialEq for MessagesSnapshotEvent
Source§fn eq(&self, other: &MessagesSnapshotEvent) -> bool
fn eq(&self, other: &MessagesSnapshotEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MessagesSnapshotEvent
impl Serialize for MessagesSnapshotEvent
impl StructuralPartialEq for MessagesSnapshotEvent
Auto Trait Implementations§
impl Freeze for MessagesSnapshotEvent
impl RefUnwindSafe for MessagesSnapshotEvent
impl Send for MessagesSnapshotEvent
impl Sync for MessagesSnapshotEvent
impl Unpin for MessagesSnapshotEvent
impl UnsafeUnpin for MessagesSnapshotEvent
impl UnwindSafe for MessagesSnapshotEvent
Blanket Implementations§
impl<T> AgentState for T
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