OpenAI::ResponseFormatJsonSchema
Inherits JSON::Serializable < Reference < Object
JSON Schema response format. Used to generate structured JSON responses. Learn more about Structured Outputs.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : ResponseFormatJsonSchemaType = ResponseFormatJsonSchemaType::JsonSchema, json_schema : ResponseFormatJsonSchemaJsonSchema = ResponseFormatJsonSchemaJsonSchema.new)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
json_schema=(json_schema : ResponseFormatJsonSchemaJsonSchema)
Structured Outputs configuration options, including a JSON Schema.
type_value=(type_value : ResponseFormatJsonSchemaType)
The type of response format being defined. Always json_schema.