OpenAI::ResponseFormatJsonSchemaJsonSchema
Inherits JSON::Serializable < Reference < Object
Structured Outputs configuration options, including a JSON Schema.
Constructors
new(pull : JSON::PullParser)
Sourcenew(description : String | Nil = nil, name : String = "", schema : ResponseFormatJsonSchemaSchema | Nil = nil, strict : ResponseFormatJsonSchemaJsonSchemaStrict | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
description
A description of what the response format is for, used by the model to determine how to respond in the format.
A description of what the response format is for, used by the model to determine how to respond in the format.
name
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.
name=(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
Sourceschema=(schema : ResponseFormatJsonSchemaSchema | Nil)
Sourcestrict
Sourcestrict=(strict : ResponseFormatJsonSchemaJsonSchemaStrict | Nil)
Source