pub struct HistoryMessage {
pub role: String,
pub content: String,
}Expand description
A message in the conversation history.
Fields§
§role: StringRole: “system”, “user”, “assistant”, “tool”
content: StringMessage content
Implementations§
Trait Implementations§
Source§impl Clone for HistoryMessage
impl Clone for HistoryMessage
Source§fn clone(&self) -> HistoryMessage
fn clone(&self) -> HistoryMessage
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 moreAuto Trait Implementations§
impl Freeze for HistoryMessage
impl RefUnwindSafe for HistoryMessage
impl Send for HistoryMessage
impl Sync for HistoryMessage
impl Unpin for HistoryMessage
impl UnsafeUnpin for HistoryMessage
impl UnwindSafe for HistoryMessage
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