Class Reasoning
-
- All Implemented Interfaces:
public final class Reasoningo-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.GenerateSummarycomputer_use_preview only
A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of
conciseordetailed.
-
Method Summary
Modifier and Type Method Description final Optional<ReasoningEffort>effort()o-series models onlyConstrains effort on reasoning for reasoning models. final Optional<Reasoning.GenerateSummary>generateSummary()computer_use_preview onlyA 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 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()
o-series models only
Constrains effort on reasoning for reasoning models. Currently supported values are
low,medium, andhigh. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
-
generateSummary
final Optional<Reasoning.GenerateSummary> generateSummary()
computer_use_preview only
A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of
conciseordetailed.
-
_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
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.
-
_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.
-
-
-
-