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