pub struct FunctionInvocation {
pub index: Option<usize>,
pub name: String,
pub arguments: Value,
}Expand description
Represents the details of a function invocation in a tool call.
Fields§
§index: Option<usize>An optional index indicating the position of the function in a list.
name: StringThe name of the function being invoked.
arguments: ValueThe arguments passed to the function as a JSON value.
Trait Implementations§
Source§impl Clone for FunctionInvocation
impl Clone for FunctionInvocation
Source§fn clone(&self) -> FunctionInvocation
fn clone(&self) -> FunctionInvocation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FunctionInvocation
impl Debug for FunctionInvocation
Source§impl<'de> Deserialize<'de> for FunctionInvocation
impl<'de> Deserialize<'de> for FunctionInvocation
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 FunctionInvocation
impl RefUnwindSafe for FunctionInvocation
impl Send for FunctionInvocation
impl Sync for FunctionInvocation
impl Unpin for FunctionInvocation
impl UnsafeUnpin for FunctionInvocation
impl UnwindSafe for FunctionInvocation
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