pub struct ToolCall<'a> {
pub name: &'a str,
pub args: &'a Value,
pub context: &'a ToolContext<'a>,
pub progress: Option<&'a ProgressSender>,
}Expand description
Per-call inputs handed to ToolProvider::execute.
Fields are pub because ToolCall is a transient borrow; consumers
typically destructure (let ToolCall { name, args, .. } = call). The
stable surface lives on ToolContext (sealed) and the runtime’s
dispatcher, which constructs ToolCall values.
Fields§
§name: &'a str§args: &'a Value§context: &'a ToolContext<'a>§progress: Option<&'a ProgressSender>Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ToolCall<'a>
impl<'a> !UnwindSafe for ToolCall<'a>
impl<'a> Freeze for ToolCall<'a>
impl<'a> Send for ToolCall<'a>
impl<'a> Sync for ToolCall<'a>
impl<'a> Unpin for ToolCall<'a>
impl<'a> UnsafeUnpin for ToolCall<'a>
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