pub struct ToolCallMessage {
pub role: String,
pub tool_calls: Vec<Value>,
pub message: String,
pub time: f64,
pub seconds_from_start: f64,
}
Fields§
§role: String
The role of the tool call in the conversation.
tool_calls: Vec<Value>
The list of tool calls made during the conversation.
message: String
The message content for the tool call.
time: f64
The timestamp when the message was sent.
seconds_from_start: f64
The number of seconds from the start of the conversation.
Implementations§
Trait Implementations§
Source§impl Clone for ToolCallMessage
impl Clone for ToolCallMessage
Source§fn clone(&self) -> ToolCallMessage
fn clone(&self) -> ToolCallMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ToolCallMessage
impl Debug for ToolCallMessage
Source§impl Default for ToolCallMessage
impl Default for ToolCallMessage
Source§fn default() -> ToolCallMessage
fn default() -> ToolCallMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolCallMessage
impl<'de> Deserialize<'de> for ToolCallMessage
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 PartialEq for ToolCallMessage
impl PartialEq for ToolCallMessage
Source§impl Serialize for ToolCallMessage
impl Serialize for ToolCallMessage
impl StructuralPartialEq for ToolCallMessage
Auto Trait Implementations§
impl Freeze for ToolCallMessage
impl RefUnwindSafe for ToolCallMessage
impl Send for ToolCallMessage
impl Sync for ToolCallMessage
impl Unpin for ToolCallMessage
impl UnwindSafe for ToolCallMessage
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