Class Reasoning
-
- All Implemented Interfaces:
public final class Reasoning
o-series models only
Configuration options for reasoning models.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
Reasoning.Builder
A builder for Reasoning.
public final class
Reasoning.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
concise
ordetailed
.
-
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.Builder
toBuilder()
final Reasoning
validate()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static Reasoning.Builder
builder()
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
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
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.
-
-
-
-