pub struct ServerToolResult {
pub block_type: String,
pub id: Option<String>,
pub tool_call_id: String,
pub status: ServerToolStatus,
pub output: Option<Value>,
pub index: Option<BlockIndex>,
pub extras: Option<HashMap<String, Value>>,
}Expand description
Result of a server-side tool call.
Fields§
§block_type: StringType of the content block. Always “server_tool_result”.
id: Option<String>An identifier associated with the server tool result.
tool_call_id: StringID of the corresponding server tool call.
status: ServerToolStatusExecution status of the server-side tool.
output: Option<Value>Output of the executed tool.
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 ServerToolResult
impl Clone for ServerToolResult
Source§fn clone(&self) -> ServerToolResult
fn clone(&self) -> ServerToolResult
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 ServerToolResult
impl Debug for ServerToolResult
Source§impl<'de> Deserialize<'de> for ServerToolResult
impl<'de> Deserialize<'de> for ServerToolResult
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 ServerToolResult
impl PartialEq for ServerToolResult
Source§impl Serialize for ServerToolResult
impl Serialize for ServerToolResult
impl StructuralPartialEq for ServerToolResult
Auto Trait Implementations§
impl Freeze for ServerToolResult
impl RefUnwindSafe for ServerToolResult
impl Send for ServerToolResult
impl Sync for ServerToolResult
impl Unpin for ServerToolResult
impl UnwindSafe for ServerToolResult
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