pub struct ToolInvocation {
pub tool_call_id: String,
pub args: JsonObject,
pub parent_tool_call_id: Option<String>,
}Expand description
One validated call handed to AgentTool::execute.
Fields§
§tool_call_id: StringProvider tool-call id (nested calls use <parent>/<n>).
args: JsonObjectValidated (and coerced) arguments.
parent_tool_call_id: Option<String>Calling tool for nested calls.
Trait Implementations§
Source§impl Clone for ToolInvocation
impl Clone for ToolInvocation
Source§impl Debug for ToolInvocation
impl Debug for ToolInvocation
Source§impl PartialEq for ToolInvocation
impl PartialEq 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