pub struct ToolInvocation {
pub id: String,
pub name: String,
pub args: Value,
pub child_execution_trace_hook: Option<ToolChildExecutionTraceHook>,
}Fields§
§id: String§name: String§args: Value§child_execution_trace_hook: Option<ToolChildExecutionTraceHook>Implementations§
Source§impl ToolInvocation
impl ToolInvocation
pub fn new(id: impl Into<String>, name: impl Into<String>, args: Value) -> Self
pub fn with_child_execution_trace_hook( self, hook: ToolChildExecutionTraceHook, ) -> Self
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ToolInvocation
impl !UnwindSafe for ToolInvocation
impl Freeze for ToolInvocation
impl Send for ToolInvocation
impl Sync for ToolInvocation
impl Unpin for ToolInvocation
impl UnsafeUnpin 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