pub struct ToolInvocation {
pub name: String,
pub description: Option<String>,
pub parameters: HashMap<String, ToolInvocationParametersValue>,
pub result: ToolInvocationResult,
pub start_offset_ms: u32,
pub end_offset_ms: Option<u32>,
}Expand description
ToolInvocation : Details of a tool or function invocation during a call
Fields§
§name: StringName identifier of the invoked tool or function
description: Option<String>Human-readable description of the tool’s purpose
parameters: HashMap<String, ToolInvocationParametersValue>Parameters provided to the tool during invocation
result: ToolInvocationResult§start_offset_ms: u32Offset in milliseconds from call start when tool was invoked
end_offset_ms: Option<u32>Offset in milliseconds from call start when tool execution completed
Implementations§
Source§impl ToolInvocation
impl ToolInvocation
Sourcepub fn new(
name: String,
parameters: HashMap<String, ToolInvocationParametersValue>,
result: ToolInvocationResult,
start_offset_ms: u32,
) -> ToolInvocation
pub fn new( name: String, parameters: HashMap<String, ToolInvocationParametersValue>, result: ToolInvocationResult, start_offset_ms: u32, ) -> ToolInvocation
Details of a tool or function invocation during a call
Trait Implementations§
Source§impl Clone for ToolInvocation
impl Clone for ToolInvocation
Source§fn clone(&self) -> ToolInvocation
fn clone(&self) -> ToolInvocation
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 ToolInvocation
impl Debug for ToolInvocation
Source§impl Default for ToolInvocation
impl Default for ToolInvocation
Source§fn default() -> ToolInvocation
fn default() -> ToolInvocation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolInvocation
impl<'de> Deserialize<'de> for ToolInvocation
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 ToolInvocation
impl PartialEq for ToolInvocation
Source§fn eq(&self, other: &ToolInvocation) -> bool
fn eq(&self, other: &ToolInvocation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolInvocation
impl Serialize for ToolInvocation
impl StructuralPartialEq for ToolInvocation
Auto Trait Implementations§
impl Freeze for ToolInvocation
impl RefUnwindSafe for ToolInvocation
impl Send for ToolInvocation
impl Sync for ToolInvocation
impl Unpin for ToolInvocation
impl UnsafeUnpin for ToolInvocation
impl UnwindSafe for ToolInvocation
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