pub struct ToolCall {
pub name: String,
pub args: Vec<ToolArg>,
}Expand description
A parsed tool invocation: tool name plus its arguments in stream order.
Fields§
§name: StringTool name from the invoke tag’s name="..." attribute.
args: Vec<ToolArg>Arguments in the order they were streamed.
Implementations§
Trait Implementations§
impl Eq for ToolCall
impl StructuralPartialEq for ToolCall
Auto Trait Implementations§
impl Freeze for ToolCall
impl RefUnwindSafe for ToolCall
impl Send for ToolCall
impl Sync for ToolCall
impl Unpin for ToolCall
impl UnsafeUnpin for ToolCall
impl UnwindSafe for ToolCall
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