pub struct ServerToolCall {
pub block_type: String,
pub id: String,
pub name: String,
pub args: HashMap<String, Value>,
pub index: Option<BlockIndex>,
pub extras: Option<HashMap<String, Value>>,
}Expand description
Tool call that is executed server-side.
For example: code execution, web search, etc.
Fields§
§block_type: StringType of the content block. Always “server_tool_call”.
id: StringAn identifier associated with the tool call.
name: StringThe name of the tool to be called.
args: HashMap<String, Value>The arguments to 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 ServerToolCall
impl Clone for ServerToolCall
Source§fn clone(&self) -> ServerToolCall
fn clone(&self) -> ServerToolCall
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 ServerToolCall
impl Debug for ServerToolCall
Source§impl<'de> Deserialize<'de> for ServerToolCall
impl<'de> Deserialize<'de> for ServerToolCall
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 ServerToolCall
impl PartialEq for ServerToolCall
Source§impl Serialize for ServerToolCall
impl Serialize for ServerToolCall
impl StructuralPartialEq for ServerToolCall
Auto Trait Implementations§
impl Freeze for ServerToolCall
impl RefUnwindSafe for ServerToolCall
impl Send for ServerToolCall
impl Sync for ServerToolCall
impl Unpin for ServerToolCall
impl UnwindSafe for ServerToolCall
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