Class Reasoning
-
- All Implemented Interfaces:
public final class Reasoninggpt-5 and o-series models only
Configuration options for reasoning models.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classReasoning.BuilderA builder for Reasoning.
public final classReasoning.GenerateSummaryDeprecated: use
summaryinstead.A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of
auto,concise, ordetailed.public final classReasoning.SummaryA summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of
auto,concise, ordetailed.
-
Method Summary
Modifier and Type Method Description final Optional<ReasoningEffort>effort()Constrains effort on reasoning for reasoning models. final Optional<Reasoning.GenerateSummary>generateSummary()Deprecated: use summaryinstead.final Optional<Reasoning.Summary>summary()A summary of the reasoning performed by the model. final JsonField<ReasoningEffort>_effort()Returns the raw JSON value of effort. final JsonField<Reasoning.GenerateSummary>_generateSummary()Returns the raw JSON value of generateSummary. final JsonField<Reasoning.Summary>_summary()Returns the raw JSON value of summary. final Map<String, JsonValue>_additionalProperties()final Reasoning.BuildertoBuilder()final Reasoningvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Reasoning.Builderbuilder()Returns a mutable builder for constructing an instance of Reasoning. -
-
Method Detail
-
effort
final Optional<ReasoningEffort> effort()
Constrains effort on reasoning for reasoning models. Currently supported values are
minimal,low,medium, andhigh. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.Note: The
gpt-5-promodel defaults to (and only supports)highreasoning effort.
-
generateSummary
@Deprecated(message = "deprecated") final Optional<Reasoning.GenerateSummary> generateSummary()
Deprecated: use
summaryinstead.A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of
auto,concise, ordetailed.
-
summary
final Optional<Reasoning.Summary> summary()
A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of
auto,concise, ordetailed.
-
_effort
final JsonField<ReasoningEffort> _effort()
Returns the raw JSON value of effort.
Unlike effort, this method doesn't throw if the JSON field has an unexpected type.
-
_generateSummary
@Deprecated(message = "deprecated") final JsonField<Reasoning.GenerateSummary> _generateSummary()
Returns the raw JSON value of generateSummary.
Unlike generateSummary, this method doesn't throw if the JSON field has an unexpected type.
-
_summary
final JsonField<Reasoning.Summary> _summary()
Returns the raw JSON value of summary.
Unlike summary, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Reasoning.Builder toBuilder()
-
builder
final static Reasoning.Builder builder()
Returns a mutable builder for constructing an instance of Reasoning.
-
-
-
-