pub enum Message {
SystemMessage {
content: Option<String>,
name: Option<String>,
role: Option<String>,
tool_call_id: Option<String>,
},
UserMessage {
content: Option<String>,
name: Option<String>,
role: Option<String>,
tool_call_id: Option<String>,
},
AssistantMessage {
content: Option<String>,
name: Option<String>,
role: Option<String>,
tool_calls: Option<Vec<ToolCall>>,
tool_call_id: Option<String>,
},
ToolMessage {
content: Option<String>,
name: Option<String>,
role: Option<String>,
tool_call_id: Option<String>,
},
}
Expand description
1:1 Mapping for Message Object used in the messages
field groq completion API.
Refer to the official documentations for more details
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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