pub struct AgentToolCall {
pub id: String,
pub name: String,
pub arguments: String,
pub result: Option<Value>,
}Expand description
Tool call made by agent
Fields§
§id: StringTool call ID
name: StringTool name
arguments: StringTool arguments (JSON string)
result: Option<Value>Tool result
Trait Implementations§
Source§impl Clone for AgentToolCall
impl Clone for AgentToolCall
Source§fn clone(&self) -> AgentToolCall
fn clone(&self) -> AgentToolCall
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 AgentToolCall
impl Debug for AgentToolCall
Source§impl<'de> Deserialize<'de> for AgentToolCall
impl<'de> Deserialize<'de> for AgentToolCall
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 AgentToolCall
impl RefUnwindSafe for AgentToolCall
impl Send for AgentToolCall
impl Sync for AgentToolCall
impl Unpin for AgentToolCall
impl UnsafeUnpin for AgentToolCall
impl UnwindSafe for AgentToolCall
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