View Source ExOpenAI.Components.ResponseFormatTextGrammar (ex_openai.ex v2.0.0-beta2)
A custom grammar for the model to follow when generating text. Learn more in the custom grammars guide.
Fields
:grammar- required -String.t()
The custom grammar for the model to follow.:type- required -:grammar
The type of response format being defined. Alwaysgrammar.
Allowed values:"grammar"
Summary
Types
@type t() :: %ExOpenAI.Components.ResponseFormatTextGrammar{ grammar: String.t(), type: :grammar }