pub enum ConversationEvent {
UserMessage {
session_id: String,
content: String,
timestamp: i64,
},
AssistantMessage {
session_id: String,
content: String,
timestamp: i64,
},
ToolCall {
session_id: String,
tool: String,
args: Value,
result: Option<String>,
timestamp: i64,
},
SessionStart {
session_id: String,
source: String,
},
SessionEnd {
session_id: String,
},
}Expand description
Conversation events (used by Commander watchers, defined here for sharing).
Variants§
Trait Implementations§
Source§impl Clone for ConversationEvent
impl Clone for ConversationEvent
Source§fn clone(&self) -> ConversationEvent
fn clone(&self) -> ConversationEvent
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 ConversationEvent
impl Debug for ConversationEvent
Source§impl<'de> Deserialize<'de> for ConversationEvent
impl<'de> Deserialize<'de> for ConversationEvent
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 ConversationEvent
impl RefUnwindSafe for ConversationEvent
impl Send for ConversationEvent
impl Sync for ConversationEvent
impl Unpin for ConversationEvent
impl UnsafeUnpin for ConversationEvent
impl UnwindSafe for ConversationEvent
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