pub struct ContextMessageStore;Expand description
Persistent store for context messages across the agent loop.
Messages are keyed by their key field for upsert semantics.
The AddContextMessage handler applies throttle logic and upserts accepted
messages here. The orchestrator reads messages, injects them, then applies
lifecycle rules (removing ephemeral and consume-after-emit messages).
Trait Implementations§
Source§impl StateKey for ContextMessageStore
impl StateKey for ContextMessageStore
const KEY: &'static str = "__runtime.context_message_store"
Source§const MERGE: MergeStrategy = MergeStrategy::Commutative
const MERGE: MergeStrategy = MergeStrategy::Commutative
Parallel merge strategy. Default:
Exclusive (conflict on concurrent writes).type Value = ContextMessageStoreValue
type Update = ContextMessageAction
fn apply(value: &mut Self::Value, update: Self::Update)
fn encode(value: &Self::Value) -> Result<Value, StateError>
fn decode(value: Value) -> Result<Self::Value, StateError>
Auto Trait Implementations§
impl Freeze for ContextMessageStore
impl RefUnwindSafe for ContextMessageStore
impl Send for ContextMessageStore
impl Sync for ContextMessageStore
impl Unpin for ContextMessageStore
impl UnsafeUnpin for ContextMessageStore
impl UnwindSafe for ContextMessageStore
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