pub struct NamedToolChoice {
pub kind: String,
pub function: NamedFunction,
}Expand description
A ToolChoice that pins a specific function.
Fields§
§kind: StringDiscriminator; always "function".
function: NamedFunctionThe function to force.
Trait Implementations§
Source§impl Clone for NamedToolChoice
impl Clone for NamedToolChoice
Source§fn clone(&self) -> NamedToolChoice
fn clone(&self) -> NamedToolChoice
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 NamedToolChoice
impl Debug for NamedToolChoice
Source§impl<'de> Deserialize<'de> for NamedToolChoice
impl<'de> Deserialize<'de> for NamedToolChoice
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 PartialEq for NamedToolChoice
impl PartialEq for NamedToolChoice
Source§fn eq(&self, other: &NamedToolChoice) -> bool
fn eq(&self, other: &NamedToolChoice) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NamedToolChoice
impl Serialize for NamedToolChoice
impl StructuralPartialEq for NamedToolChoice
Auto Trait Implementations§
impl Freeze for NamedToolChoice
impl RefUnwindSafe for NamedToolChoice
impl Send for NamedToolChoice
impl Sync for NamedToolChoice
impl Unpin for NamedToolChoice
impl UnsafeUnpin for NamedToolChoice
impl UnwindSafe for NamedToolChoice
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