pub enum SessionEventKind {
Message,
ToolCall,
ToolResult,
Plan,
Compaction,
SystemReminder,
Hypothesis,
Receipt,
Reminder,
PermissionDecision,
Custom {
custom_type: String,
},
}Expand description
The named event variants the primitive understands out of the box.
Custom carries an arbitrary string discriminator so surfaces can
extend the taxonomy without forking the schema; the structural
validator (see issue #2365) is the authoritative shape gate.
Variants§
Message
ToolCall
ToolResult
Plan
Compaction
SystemReminder
Hypothesis
Receipt
Reminder
PermissionDecision
Custom
Implementations§
Source§impl SessionEventKind
impl SessionEventKind
Sourcepub fn discriminator(&self) -> &str
pub fn discriminator(&self) -> &str
Discriminator string used in canonical hashing and SQL filters.
Trait Implementations§
Source§impl Clone for SessionEventKind
impl Clone for SessionEventKind
Source§fn clone(&self) -> SessionEventKind
fn clone(&self) -> SessionEventKind
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 SessionEventKind
impl Debug for SessionEventKind
Source§impl<'de> Deserialize<'de> for SessionEventKind
impl<'de> Deserialize<'de> for SessionEventKind
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
impl Eq for SessionEventKind
Source§impl PartialEq for SessionEventKind
impl PartialEq for SessionEventKind
Source§impl Serialize for SessionEventKind
impl Serialize for SessionEventKind
impl StructuralPartialEq for SessionEventKind
Auto Trait Implementations§
impl Freeze for SessionEventKind
impl RefUnwindSafe for SessionEventKind
impl Send for SessionEventKind
impl Sync for SessionEventKind
impl Unpin for SessionEventKind
impl UnsafeUnpin for SessionEventKind
impl UnwindSafe for SessionEventKind
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