pub enum ConversationEventKind {
StateChanged {
state: AgentState,
},
MessageStarted {
message_id: String,
role: ConversationRole,
},
MessageDelta {
message_id: String,
content_index: u32,
text: String,
thinking: bool,
},
MessageFinished {
message_id: String,
},
ToolStarted {
tool_call_id: String,
name: String,
arguments: Value,
},
ToolUpdated {
tool_call_id: String,
content: String,
},
ToolFinished {
tool_call_id: String,
content: String,
is_error: bool,
},
InteractionRequested(ConversationInteraction),
ResyncRequired,
Settled,
}Variants§
StateChanged
Fields
§
state: AgentStateMessageStarted
MessageDelta
MessageFinished
ToolStarted
ToolUpdated
ToolFinished
InteractionRequested(ConversationInteraction)
ResyncRequired
Settled
Trait Implementations§
Source§impl Clone for ConversationEventKind
impl Clone for ConversationEventKind
Source§fn clone(&self) -> ConversationEventKind
fn clone(&self) -> ConversationEventKind
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 ConversationEventKind
impl Debug for ConversationEventKind
Source§impl<'de> Deserialize<'de> for ConversationEventKind
impl<'de> Deserialize<'de> for ConversationEventKind
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 ConversationEventKind
Source§impl PartialEq for ConversationEventKind
impl PartialEq for ConversationEventKind
Source§impl Serialize for ConversationEventKind
impl Serialize for ConversationEventKind
impl StructuralPartialEq for ConversationEventKind
Auto Trait Implementations§
impl Freeze for ConversationEventKind
impl RefUnwindSafe for ConversationEventKind
impl Send for ConversationEventKind
impl Sync for ConversationEventKind
impl Unpin for ConversationEventKind
impl UnsafeUnpin for ConversationEventKind
impl UnwindSafe for ConversationEventKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.