pub struct ToolCall {
pub id: String,
pub name: String,
pub args: Value,
pub status: String,
pub timestamp: String,
pub result: Vec<FunctionResponse>,
pub result_display: Option<Value>,
pub description: Option<String>,
pub display_name: Option<String>,
pub extra: HashMap<String, Value>,
}Expand description
A tool invocation.
Fields§
§id: String§name: String§args: Value§status: String"success", "error", or a pending state like "executing".
timestamp: String§result: Vec<FunctionResponse>§result_display: Option<Value>Display-ready result payload. Usually a string, sometimes a
structured value (object with fileDiff, styled-text arrays,
etc.). Kept as an opaque Value to match whatever Gemini writes.
description: Option<String>§display_name: Option<String>§extra: HashMap<String, Value>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolCall
impl<'de> Deserialize<'de> for ToolCall
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 ToolCall
impl RefUnwindSafe for ToolCall
impl Send for ToolCall
impl Sync for ToolCall
impl Unpin for ToolCall
impl UnsafeUnpin for ToolCall
impl UnwindSafe for ToolCall
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