pub struct BetaToolFunctionDefinition {
pub description: String,
pub name: String,
pub parameters: Option<Value>,
pub strict: Option<bool>,
}Expand description
Tool function definition for beta chat requests.
Fields§
§description: String§name: String§parameters: Option<Value>§strict: Option<bool>(Beta) Default value: false
If set to true, the API will use strict-mode for the tool calls to ensure the output always complies with the function’s JSON schema. This is a Beta feature, for more details please refer to Tool Calls Guide
Trait Implementations§
Source§impl Clone for BetaToolFunctionDefinition
impl Clone for BetaToolFunctionDefinition
Source§fn clone(&self) -> BetaToolFunctionDefinition
fn clone(&self) -> BetaToolFunctionDefinition
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 BetaToolFunctionDefinition
impl Debug for BetaToolFunctionDefinition
Source§impl<'de> Deserialize<'de> for BetaToolFunctionDefinition
impl<'de> Deserialize<'de> for BetaToolFunctionDefinition
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
impl Eq for BetaToolFunctionDefinition
Source§impl PartialEq for BetaToolFunctionDefinition
impl PartialEq for BetaToolFunctionDefinition
Source§fn eq(&self, other: &BetaToolFunctionDefinition) -> bool
fn eq(&self, other: &BetaToolFunctionDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BetaToolFunctionDefinition
Auto Trait Implementations§
impl Freeze for BetaToolFunctionDefinition
impl RefUnwindSafe for BetaToolFunctionDefinition
impl Send for BetaToolFunctionDefinition
impl Sync for BetaToolFunctionDefinition
impl Unpin for BetaToolFunctionDefinition
impl UnsafeUnpin for BetaToolFunctionDefinition
impl UnwindSafe for BetaToolFunctionDefinition
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.