pub struct ChatFunction {
pub name: String,
pub description: Option<String>,
pub parameters: Option<Value>,
pub strict: Option<bool>,
}Expand description
Function schema for tools[].function and legacy functions[].
Fields§
§name: String§description: Option<String>§parameters: Option<Value>§strict: Option<bool>Trait Implementations§
Source§impl Clone for ChatFunction
impl Clone for ChatFunction
Source§fn clone(&self) -> ChatFunction
fn clone(&self) -> ChatFunction
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 ChatFunction
impl Debug for ChatFunction
Source§impl<'de> Deserialize<'de> for ChatFunction
impl<'de> Deserialize<'de> for ChatFunction
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 ChatFunction
impl RefUnwindSafe for ChatFunction
impl Send for ChatFunction
impl Sync for ChatFunction
impl Unpin for ChatFunction
impl UnsafeUnpin for ChatFunction
impl UnwindSafe for ChatFunction
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