View Source ExOpenAI.Components.CustomGrammarFormatParam (ex_openai.ex v2.0.0-beta2)

A grammar defined by the user.

Fields

  • :definition - required - String.t()
    The grammar definition.

  • :syntax - required - ExOpenAI.Components.GrammarSyntax1.t()
    The syntax of the grammar definition. One of lark or regex.

  • :type - required - :grammar
    Grammar format. Always grammar.
    Allowed values: "grammar"
    Default: "grammar"

Summary

Types

@type t() :: %ExOpenAI.Components.CustomGrammarFormatParam{
  definition: String.t(),
  syntax: ExOpenAI.Components.GrammarSyntax1.t(),
  type: :grammar
}