class

OpenAI::CustomGrammarFormatParam

Inherits JSON::Serializable < Reference < Object

A grammar defined by the user.

Constructors

new(type_value : CustomGrammarFormatParamType = CustomGrammarFormatParamType::Grammar, syntax : GrammarSyntax1 = GrammarSyntax1::Lark, definition : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

definition

The grammar definition.

Source
definition=(definition : String)

The grammar definition.

Source
syntax

The syntax of the grammar definition. One of lark or regex.

Source
syntax=(syntax : GrammarSyntax1)

The syntax of the grammar definition. One of lark or regex.

Source
type_value

Grammar format. Always grammar.

Source
type_value=(type_value : CustomGrammarFormatParamType)

Grammar format. Always grammar.

Source