pub enum LlmMessage {
User(UserMessage),
Assistant(AssistantMessage),
ToolResult(ToolResultMessage),
}Expand description
A discriminated union of the three LLM message roles.
Variants§
Trait Implementations§
Source§impl Clone for LlmMessage
impl Clone for LlmMessage
Source§fn clone(&self) -> LlmMessage
fn clone(&self) -> LlmMessage
Returns a duplicate of the value. Read more
1.0.0 · 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 LlmMessage
impl Debug for LlmMessage
Source§impl<'de> Deserialize<'de> for LlmMessage
impl<'de> Deserialize<'de> for LlmMessage
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
Source§impl IntoDisplayMessages for LlmMessage
impl IntoDisplayMessages for LlmMessage
fn to_display_messages(&self) -> Vec<CoreDisplayMessage>
Auto Trait Implementations§
impl Freeze for LlmMessage
impl RefUnwindSafe for LlmMessage
impl Send for LlmMessage
impl Sync for LlmMessage
impl Unpin for LlmMessage
impl UnsafeUnpin for LlmMessage
impl UnwindSafe for LlmMessage
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