struct

AI::Provider::LanguageModel::ResponseFormat

Inherits JSON::Serializable < Struct < Value < Object

Response format configuration.

Constructors

json(schema : JSON::Any | Nil = nil, name : String | Nil = nil, description : String | Nil = nil) : ResponseFormat
Source
new(type : ResponseFormatType, schema : JSON::Any | Nil = nil, name : String | Nil = nil, description : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
text
Source

Instance methods

description

Description of output (used by some providers).

Source
name

Name of output (used by some providers).

Source
schema

JSON schema for JSON response format.

Source
type
Source