pub struct TextResponseFormatJsonSchema {
pub description: Option<String>,
pub name: String,
pub schema: ResponseFormatJsonSchemaSchema,
pub strict: Option<bool>,
pub _type: String,
}
Fields§
§description: Option<String>
A description of what the response format is for, used by the model to determine how to respond in the format.
name: String
The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
schema: ResponseFormatJsonSchemaSchema
§strict: Option<bool>
Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema
field. Only a subset of JSON Schema is supported when strict
is true
. To learn more, read the Structured Outputs guide.
_type: String
The type of response format being defined. Always json_schema
.
Trait Implementations§
Source§impl Debug for TextResponseFormatJsonSchema
impl Debug for TextResponseFormatJsonSchema
Source§impl<'de> Deserialize<'de> for TextResponseFormatJsonSchema
impl<'de> Deserialize<'de> for TextResponseFormatJsonSchema
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 TextResponseFormatJsonSchema
impl RefUnwindSafe for TextResponseFormatJsonSchema
impl Send for TextResponseFormatJsonSchema
impl Sync for TextResponseFormatJsonSchema
impl Unpin for TextResponseFormatJsonSchema
impl UnwindSafe for TextResponseFormatJsonSchema
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