pub struct ToolUseContent {
pub id: String,
pub name: String,
pub input: Value,
pub meta: Option<Value>,
}Expand description
A request from the assistant to call a tool.
Fields§
§id: StringA unique identifier for this tool use.
name: StringThe name of the tool to call.
input: ValueThe arguments to pass to the tool.
meta: Option<Value>Optional metadata about the tool use.
Trait Implementations§
Source§impl Clone for ToolUseContent
impl Clone for ToolUseContent
Source§fn clone(&self) -> ToolUseContent
fn clone(&self) -> ToolUseContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolUseContent
impl Debug for ToolUseContent
Source§impl<'de> Deserialize<'de> for ToolUseContent
impl<'de> Deserialize<'de> for ToolUseContent
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
Auto Trait Implementations§
impl Freeze for ToolUseContent
impl RefUnwindSafe for ToolUseContent
impl Send for ToolUseContent
impl Sync for ToolUseContent
impl Unpin for ToolUseContent
impl UnwindSafe for ToolUseContent
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