pub struct ContextEvent {
pub conversation_id: Option<ConversationId>,
pub turn_id: TurnId,
pub kind: ContextEventKind,
}Expand description
Framework-side event projected from a turn’s facts.
Every variant shares the routing envelope (conversation_id,
turn_id); the variant-specific payload lives in kind.
conversation_id is Option<ConversationId> because the bare
TurnRunner::run entry does not carry a ConversationState; the
run_in_conversation entry does. The host constructs the event with
Some(id) when projecting from a ConversationOutcome, and None for
the bare TurnOutcome path. Subscribers that care about
cross-conversation routing key on Some.
Fields§
§conversation_id: Option<ConversationId>Routing key for conversation-scoped consumers; skipped on the
wire when None (the bare run entry).
turn_id: TurnIdThe turn every event of the sequence belongs to.
kind: ContextEventKindThe variant-specific payload; the wire discriminator is type.
Trait Implementations§
Source§impl Clone for ContextEvent
impl Clone for ContextEvent
Source§fn clone(&self) -> ContextEvent
fn clone(&self) -> ContextEvent
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 Debug for ContextEvent
impl Debug for ContextEvent
Source§impl<'de> Deserialize<'de> for ContextEvent
impl<'de> Deserialize<'de> for ContextEvent
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 ContextEvent
impl RefUnwindSafe for ContextEvent
impl Send for ContextEvent
impl Sync for ContextEvent
impl Unpin for ContextEvent
impl UnsafeUnpin for ContextEvent
impl UnwindSafe for ContextEvent
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