pub struct FunctionCall {
pub arguments: String,
pub name: String,
}๐Deprecated: Deprecated and replaced by
tool_calls. The name and arguments of a function that should be called, as generated by the model.Fieldsยง
ยงarguments: String๐Deprecated: Deprecated and replaced by
tool_calls. The name and arguments of a function that should be called, as generated by the model.The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
name: String๐Deprecated: Deprecated and replaced by
tool_calls. The name and arguments of a function that should be called, as generated by the model.The name of the function to call.
Trait Implementationsยง
Sourceยงimpl Clone for FunctionCall
impl Clone for FunctionCall
Sourceยงfn clone(&self) -> FunctionCall
fn clone(&self) -> FunctionCall
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 FunctionCall
impl Debug for FunctionCall
Sourceยงimpl Default for FunctionCall
impl Default for FunctionCall
Sourceยงfn default() -> FunctionCall
fn default() -> FunctionCall
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl<'de> Deserialize<'de> for FunctionCall
impl<'de> Deserialize<'de> for FunctionCall
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 FunctionCall
impl RefUnwindSafe for FunctionCall
impl Send for FunctionCall
impl Sync for FunctionCall
impl Unpin for FunctionCall
impl UnwindSafe for FunctionCall
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