pub struct ResponseTextConfigFormat {
pub name: Option<String>,
pub schema: Option<FunctionParameters>,
pub strict: bool,
pub type_: ResponseTextConfigFormatType,
}Expand description
An object specifying the format that the model must output.
JSON schema
{
"description": "An object specifying the format that the model must output.",
"type": "object",
"required": [
"type"
],
"properties": {
"name": {
"description": "The name of the response format (used with `json_schema`).",
"type": "string"
},
"schema": {
"$ref": "#/definitions/FunctionParameters"
},
"strict": {
"description": "Whether to enable strict schema adherence.",
"default": false,
"type": "boolean"
},
"type": {
"description": "The type of response format being defined.",
"type": "string",
"enum": [
"text",
"json_schema",
"json_object"
]
}
}
}Fields§
§name: Option<String>The name of the response format (used with json_schema).
schema: Option<FunctionParameters>§strict: boolWhether to enable strict schema adherence.
type_: ResponseTextConfigFormatTypeThe type of response format being defined.
Trait Implementations§
Source§impl Clone for ResponseTextConfigFormat
impl Clone for ResponseTextConfigFormat
Source§fn clone(&self) -> ResponseTextConfigFormat
fn clone(&self) -> ResponseTextConfigFormat
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 ResponseTextConfigFormat
impl Debug for ResponseTextConfigFormat
Source§impl<'de> Deserialize<'de> for ResponseTextConfigFormat
impl<'de> Deserialize<'de> for ResponseTextConfigFormat
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 ResponseTextConfigFormat
impl RefUnwindSafe for ResponseTextConfigFormat
impl Send for ResponseTextConfigFormat
impl Sync for ResponseTextConfigFormat
impl Unpin for ResponseTextConfigFormat
impl UnsafeUnpin for ResponseTextConfigFormat
impl UnwindSafe for ResponseTextConfigFormat
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