pub enum ConversationMessage {
User {
content: String,
},
Assistant {
content: Option<String>,
tool_calls: Vec<ToolCall>,
},
Tool {
tool_call_id: String,
name: String,
content: String,
is_error: bool,
provider_metadata: Option<Value>,
},
}Variants§
Trait Implementations§
Source§impl Clone for ConversationMessage
impl Clone for ConversationMessage
Auto Trait Implementations§
impl Freeze for ConversationMessage
impl RefUnwindSafe for ConversationMessage
impl Send for ConversationMessage
impl Sync for ConversationMessage
impl Unpin for ConversationMessage
impl UnsafeUnpin for ConversationMessage
impl UnwindSafe for ConversationMessage
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