Embedded schema for OpenAI reasoning configuration options.
Used with gpt-5 and o-series models only.
Fields
effort- Constrains effort on reasoning. Supported values: :none, :minimal, :low, :medium, :high, :xhighgenerate_summary- (Deprecated) A summary of the reasoning performed. Usesummaryinstead.summary- A summary of the reasoning performed. Supported values: :auto, :concise, :detailed
Summary
Functions
Creates a changeset for ReasoningOptions.
Creates a new ReasoningOptions struct.
Creates a new ReasoningOptions struct, raising on error.
Converts the ReasoningOptions to a map suitable for API requests. Returns nil if no options are set.
Returns the list of valid effort values.
Returns the list of valid summary values.
Types
Functions
@spec changeset(t(), map()) :: Ecto.Changeset.t()
Creates a changeset for ReasoningOptions.
@spec new(map()) :: {:ok, t()} | {:error, Ecto.Changeset.t()}
Creates a new ReasoningOptions struct.
Creates a new ReasoningOptions struct, raising on error.
Converts the ReasoningOptions to a map suitable for API requests. Returns nil if no options are set.
Returns the list of valid effort values.
Different models allow different reasoning effort values. Consult the OpenAI docs.
Returns the list of valid summary values.