pub struct ToolUseBlock {
pub id: String,
pub name: String,
pub input: Value,
pub cache_control: Option<CacheControl>,
}Expand description
Tool use block (in assistant messages)
Fields§
§id: StringUnique identifier for this tool use
name: StringName of the tool being used
input: ValueInput arguments for the tool
cache_control: Option<CacheControl>Cache control for this block
Trait Implementations§
Source§impl Clone for ToolUseBlock
impl Clone for ToolUseBlock
Source§fn clone(&self) -> ToolUseBlock
fn clone(&self) -> ToolUseBlock
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 ToolUseBlock
impl Debug for ToolUseBlock
Source§impl<'de> Deserialize<'de> for ToolUseBlock
impl<'de> Deserialize<'de> for ToolUseBlock
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 ToolUseBlock
impl RefUnwindSafe for ToolUseBlock
impl Send for ToolUseBlock
impl Sync for ToolUseBlock
impl Unpin for ToolUseBlock
impl UnwindSafe for ToolUseBlock
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