pub struct ToolUse {
pub id: String,
pub name: String,
pub input: Value,
}
Expand description
A tool use request from Claude.
When Claude decides to use a tool, it returns this structure with the tool name and input parameters.
Fields§
§id: String
Unique identifier for this tool use request.
name: String
The name of the tool to call.
input: Value
Input parameters for the tool call.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolUse
impl<'de> Deserialize<'de> for ToolUse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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