pub struct ToolCallInfo {
pub tool_name: String,
pub arguments: String,
pub result: Option<String>,
pub success: bool,
pub duration_ms: Option<u64>,
}Expand description
Information about a tool call
Fields§
§tool_name: StringTool name
arguments: StringArguments as JSON string
result: Option<String>Result if completed
success: boolWhether the call succeeded
duration_ms: Option<u64>Duration in milliseconds
Implementations§
Source§impl ToolCallInfo
impl ToolCallInfo
Trait Implementations§
Source§impl Clone for ToolCallInfo
impl Clone for ToolCallInfo
Source§fn clone(&self) -> ToolCallInfo
fn clone(&self) -> ToolCallInfo
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 ToolCallInfo
impl Debug for ToolCallInfo
Source§impl<'de> Deserialize<'de> for ToolCallInfo
impl<'de> Deserialize<'de> for ToolCallInfo
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 ToolCallInfo
impl RefUnwindSafe for ToolCallInfo
impl Send for ToolCallInfo
impl Sync for ToolCallInfo
impl Unpin for ToolCallInfo
impl UnsafeUnpin for ToolCallInfo
impl UnwindSafe for ToolCallInfo
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