pub struct ResponseFormatJsonSchemaJsonSchema {
pub description: Option<String>,
pub name: String,
pub schema: Option<ResponseFormatJsonSchemaSchema>,
pub strict: Option<bool>,
}
Expand description
Structured Outputs configuration options, including a JSON Schema.
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: Option<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.
Implementations§
Source§impl ResponseFormatJsonSchemaJsonSchema
impl ResponseFormatJsonSchemaJsonSchema
Sourcepub fn builder() -> ResponseFormatJsonSchemaJsonSchemaBuilder<((), (), (), ())>
pub fn builder() -> ResponseFormatJsonSchemaJsonSchemaBuilder<((), (), (), ())>
Create a builder for building ResponseFormatJsonSchemaJsonSchema
.
On the builder, call .description(...)
(optional), .name(...)
, .schema(...)
(optional), .strict(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ResponseFormatJsonSchemaJsonSchema
.
Trait Implementations§
Source§impl Clone for ResponseFormatJsonSchemaJsonSchema
impl Clone for ResponseFormatJsonSchemaJsonSchema
Source§fn clone(&self) -> ResponseFormatJsonSchemaJsonSchema
fn clone(&self) -> ResponseFormatJsonSchemaJsonSchema
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'de> Deserialize<'de> for ResponseFormatJsonSchemaJsonSchema
impl<'de> Deserialize<'de> for ResponseFormatJsonSchemaJsonSchema
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>,
Source§impl PartialEq for ResponseFormatJsonSchemaJsonSchema
impl PartialEq for ResponseFormatJsonSchemaJsonSchema
Source§fn eq(&self, other: &ResponseFormatJsonSchemaJsonSchema) -> bool
fn eq(&self, other: &ResponseFormatJsonSchemaJsonSchema) -> bool
self
and other
values to be equal, and is used by ==
.