pub struct ResponsesToolDef {
pub kind: String,
pub name: String,
pub description: Option<String>,
pub parameters: Option<Value>,
pub strict: Option<bool>,
}Expand description
A tool the model MAY call — FLAT in this dialect (type/name/parameters at the top
level, no nested function object). parameters is a raw JSON Schema value.
Fields§
§kind: String§name: String§description: Option<String>§parameters: Option<Value>Raw JSON object spliced verbatim.
strict: Option<bool>Implementations§
Trait Implementations§
Source§impl Clone for ResponsesToolDef
impl Clone for ResponsesToolDef
Source§fn clone(&self) -> ResponsesToolDef
fn clone(&self) -> ResponsesToolDef
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 ResponsesToolDef
impl Debug for ResponsesToolDef
Source§impl<'de> Deserialize<'de> for ResponsesToolDef
impl<'de> Deserialize<'de> for ResponsesToolDef
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 ResponsesToolDef
impl PartialEq for ResponsesToolDef
Source§impl Serialize for ResponsesToolDef
impl Serialize for ResponsesToolDef
impl StructuralPartialEq for ResponsesToolDef
Auto Trait Implementations§
impl Freeze for ResponsesToolDef
impl RefUnwindSafe for ResponsesToolDef
impl Send for ResponsesToolDef
impl Sync for ResponsesToolDef
impl Unpin for ResponsesToolDef
impl UnsafeUnpin for ResponsesToolDef
impl UnwindSafe for ResponsesToolDef
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