pub struct ResponsesTool {
pub kind: String,
pub name: String,
pub description: String,
pub strict: Option<bool>,
pub parameters: Option<Value>,
}Expand description
Tool definition for the Responses API. Unlike chat/completions this
is a flat structure (no nested function: {…}).
Fields§
§kind: StringAlways "function".
name: StringFunction name as exposed to the model.
description: StringOptional human-readable description.
strict: Option<bool>Some(true) enables strict schema validation; None keeps the
server default (serialized as null per the upstream contract).
parameters: Option<Value>JSON Schema describing the function’s parameters.
Implementations§
Trait Implementations§
Source§impl Clone for ResponsesTool
impl Clone for ResponsesTool
Source§fn clone(&self) -> ResponsesTool
fn clone(&self) -> ResponsesTool
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 ResponsesTool
impl Debug for ResponsesTool
Source§impl Default for ResponsesTool
impl Default for ResponsesTool
Source§fn default() -> ResponsesTool
fn default() -> ResponsesTool
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResponsesTool
impl<'de> Deserialize<'de> for ResponsesTool
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 ResponsesTool
impl PartialEq for ResponsesTool
Source§impl Serialize for ResponsesTool
impl Serialize for ResponsesTool
impl StructuralPartialEq for ResponsesTool
Auto Trait Implementations§
impl Freeze for ResponsesTool
impl RefUnwindSafe for ResponsesTool
impl Send for ResponsesTool
impl Sync for ResponsesTool
impl Unpin for ResponsesTool
impl UnsafeUnpin for ResponsesTool
impl UnwindSafe for ResponsesTool
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