pub struct LlmMessage {
pub role: LlmRole,
pub content: String,
}Expand description
One message in the request’s conversation history.
Fields§
§role: LlmRoleSpeaker role.
content: StringUTF-8 text body. The adapter MAY reject non-UTF-8 upstream payloads before they reach this surface.
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 (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 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 Hash for LlmMessage
impl Hash for LlmMessage
Source§impl PartialEq for LlmMessage
impl PartialEq for LlmMessage
Source§fn eq(&self, other: &LlmMessage) -> bool
fn eq(&self, other: &LlmMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LlmMessage
impl Serialize for LlmMessage
impl Eq for LlmMessage
impl StructuralPartialEq for LlmMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.