pub struct CalledFunction {
pub name: String,
pub arguments: String,
}Expand description
The function that the model called by tool.
Fields§
§name: StringThe name of the function to call.
arguments: StringThe 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.
Trait Implementations§
Source§impl Clone for CalledFunction
impl Clone for CalledFunction
Source§fn clone(&self) -> CalledFunction
fn clone(&self) -> CalledFunction
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 CalledFunction
impl Debug for CalledFunction
Source§impl Default for CalledFunction
impl Default for CalledFunction
Source§fn default() -> CalledFunction
fn default() -> CalledFunction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CalledFunction
impl<'de> Deserialize<'de> for CalledFunction
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 Display for CalledFunction
impl Display for CalledFunction
Source§impl PartialEq for CalledFunction
impl PartialEq for CalledFunction
Source§impl Serialize for CalledFunction
impl Serialize for CalledFunction
impl Eq for CalledFunction
impl StructuralPartialEq for CalledFunction
Auto Trait Implementations§
impl Freeze for CalledFunction
impl RefUnwindSafe for CalledFunction
impl Send for CalledFunction
impl Sync for CalledFunction
impl Unpin for CalledFunction
impl UnwindSafe for CalledFunction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.