pub struct ToolUse {
pub id: String,
pub name: String,
pub input: String,
}Expand description
Tool invocation requested by the assistant.
Fields§
§id: StringUnique identifier for this tool use (used to match with ToolResult).
name: StringName of the tool to invoke.
input: StringInput arguments as a JSON string.
Trait Implementations§
impl StructuralPartialEq for ToolUse
Auto Trait Implementations§
impl Freeze for ToolUse
impl RefUnwindSafe for ToolUse
impl Send for ToolUse
impl Sync for ToolUse
impl Unpin for ToolUse
impl UnwindSafe for ToolUse
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