pub struct ChatHistoryEntry {
pub role: ChatRole,
pub content: String,
pub thinking: String,
pub tool_calls: Vec<ToolCallRecord>,
pub tool_call_id: Option<String>,
}Expand description
A single message in the conversation history.
Fields§
§role: ChatRole§content: StringVisible response content.
thinking: StringReasoning / thinking tokens (hidden by default).
tool_calls: Vec<ToolCallRecord>Tool calls made by this assistant turn.
tool_call_id: Option<String>For Tool messages: the UUID of the corresponding tool call.
Trait Implementations§
Source§impl Clone for ChatHistoryEntry
impl Clone for ChatHistoryEntry
Source§fn clone(&self) -> ChatHistoryEntry
fn clone(&self) -> ChatHistoryEntry
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 ChatHistoryEntry
impl Debug for ChatHistoryEntry
Source§impl<'de> Deserialize<'de> for ChatHistoryEntry
impl<'de> Deserialize<'de> for ChatHistoryEntry
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
Auto Trait Implementations§
impl Freeze for ChatHistoryEntry
impl RefUnwindSafe for ChatHistoryEntry
impl Send for ChatHistoryEntry
impl Sync for ChatHistoryEntry
impl Unpin for ChatHistoryEntry
impl UnsafeUnpin for ChatHistoryEntry
impl UnwindSafe for ChatHistoryEntry
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