pub struct ToolCallChunkBlock {
pub block_type: String,
pub id: Option<String>,
pub name: Option<String>,
pub args: Option<String>,
pub index: Option<BlockIndex>,
pub extras: Option<HashMap<String, Value>>,
}Expand description
A chunk of a tool call (yielded when streaming, content block version).
Fields§
§block_type: StringType of the content block. Always “tool_call_chunk”.
id: Option<String>An identifier associated with the tool call.
name: Option<String>The name of the tool to be called.
args: Option<String>The arguments to the tool call (as a string, since it may be partial JSON).
index: Option<BlockIndex>The index of the tool call in a sequence.
extras: Option<HashMap<String, Value>>Provider-specific metadata.
Implementations§
Trait Implementations§
Source§impl Clone for ToolCallChunkBlock
impl Clone for ToolCallChunkBlock
Source§fn clone(&self) -> ToolCallChunkBlock
fn clone(&self) -> ToolCallChunkBlock
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 ToolCallChunkBlock
impl Debug for ToolCallChunkBlock
Source§impl Default for ToolCallChunkBlock
impl Default for ToolCallChunkBlock
Source§impl<'de> Deserialize<'de> for ToolCallChunkBlock
impl<'de> Deserialize<'de> for ToolCallChunkBlock
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
Source§impl PartialEq for ToolCallChunkBlock
impl PartialEq for ToolCallChunkBlock
Source§impl Serialize for ToolCallChunkBlock
impl Serialize for ToolCallChunkBlock
impl StructuralPartialEq for ToolCallChunkBlock
Auto Trait Implementations§
impl Freeze for ToolCallChunkBlock
impl RefUnwindSafe for ToolCallChunkBlock
impl Send for ToolCallChunkBlock
impl Sync for ToolCallChunkBlock
impl Unpin for ToolCallChunkBlock
impl UnwindSafe for ToolCallChunkBlock
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