pub struct ToolFunction {
pub name: String,
pub arguments: Value,
}
Expand description
Describes a tool function to call with a name and arguments, generally produced by a provider.
Fields§
§name: String
§arguments: Value
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
Source§impl From<Function> for ToolFunction
impl From<Function> for ToolFunction
Source§impl PartialEq for ToolFunction
impl PartialEq for ToolFunction
Source§impl Serialize for ToolFunction
impl Serialize for ToolFunction
impl StructuralPartialEq for ToolFunction
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