pub struct ToolExecution {
pub tool_call: ToolCall,
/* private fields */
}Expand description
Tracks the execution of a tool call with timing information
Fields§
§tool_call: ToolCallImplementations§
Source§impl ToolExecution
impl ToolExecution
Sourcepub fn complete(self, output: Value, is_error: bool) -> ToolOutput
pub fn complete(self, output: Value, is_error: bool) -> ToolOutput
Complete the execution and get the output with timing
Sourcepub fn complete_with_error(self, error_msg: String) -> ToolOutput
pub fn complete_with_error(self, error_msg: String) -> ToolOutput
Complete with error
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolExecution
impl RefUnwindSafe for ToolExecution
impl Send for ToolExecution
impl Sync for ToolExecution
impl Unpin for ToolExecution
impl UnsafeUnpin for ToolExecution
impl UnwindSafe for ToolExecution
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