pub struct ToolFunction {
pub name: String,
pub arguments: String,
}Expand description
Represents the function call details within a ToolCall.
Fields§
§name: StringThe name of the tool function to be executed (e.g., “read_file”).
This must match the name provided in a ToolDefinition.
arguments: StringA JSON-formatted string containing the arguments for the function call.
The Agent parses this string into a ToolInput.
Trait Implementations§
Source§impl Clone for ToolFunction
impl Clone for ToolFunction
Source§fn clone(&self) -> ToolFunction
fn clone(&self) -> ToolFunction
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 ToolFunction
impl Debug for ToolFunction
Source§impl<'de> Deserialize<'de> for ToolFunction
impl<'de> Deserialize<'de> for ToolFunction
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 ToolFunction
impl RefUnwindSafe for ToolFunction
impl Send for ToolFunction
impl Sync for ToolFunction
impl Unpin for ToolFunction
impl UnwindSafe for ToolFunction
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