Class BetaResponse.Reasoning.Builder
-
- All Implemented Interfaces:
public final class BetaResponse.Reasoning.BuilderA builder for Reasoning.
-
-
Method Summary
-
-
Method Detail
-
context
final BetaResponse.Reasoning.Builder context(BetaResponse.Reasoning.Context context)
Controls which reasoning items are rendered back to the model on later turns. When returned on a response, this is the effective reasoning context mode used for the response.
-
context
final BetaResponse.Reasoning.Builder context(Optional<BetaResponse.Reasoning.Context> context)
Alias for calling Builder.context with
context.orElse(null).
-
context
final BetaResponse.Reasoning.Builder context(JsonField<BetaResponse.Reasoning.Context> context)
Sets Builder.context to an arbitrary JSON value.
You should usually call Builder.context with a well-typed Context value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
effort
final BetaResponse.Reasoning.Builder effort(BetaResponse.Reasoning.Effort effort)
Constrains effort on reasoning for reasoning models. Currently supported values are
none,minimal,low,medium,high,xhigh, andmax. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. Not all reasoning models support every value. See the reasoning guide for model-specific support.
-
effort
final BetaResponse.Reasoning.Builder effort(Optional<BetaResponse.Reasoning.Effort> effort)
Alias for calling Builder.effort with
effort.orElse(null).
-
effort
final BetaResponse.Reasoning.Builder effort(JsonField<BetaResponse.Reasoning.Effort> effort)
Sets Builder.effort to an arbitrary JSON value.
You should usually call Builder.effort with a well-typed Effort value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
generateSummary
@Deprecated(message = "deprecated") final BetaResponse.Reasoning.Builder generateSummary(BetaResponse.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.
-
generateSummary
@Deprecated(message = "deprecated") final BetaResponse.Reasoning.Builder generateSummary(Optional<BetaResponse.Reasoning.GenerateSummary> generateSummary)
Alias for calling Builder.generateSummary with
generateSummary.orElse(null).
-
generateSummary
@Deprecated(message = "deprecated") final BetaResponse.Reasoning.Builder generateSummary(JsonField<BetaResponse.Reasoning.GenerateSummary> generateSummary)
Sets Builder.generateSummary to an arbitrary JSON value.
You should usually call Builder.generateSummary with a well-typed GenerateSummary value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
mode
final BetaResponse.Reasoning.Builder mode(BetaResponse.Reasoning.Mode mode)
Controls the reasoning execution mode for the request.
When returned on a response, this is the effective execution mode.
-
mode
final BetaResponse.Reasoning.Builder mode(JsonField<BetaResponse.Reasoning.Mode> mode)
Sets Builder.mode to an arbitrary JSON value.
You should usually call Builder.mode with a well-typed Mode value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
mode
final BetaResponse.Reasoning.Builder mode(String value)
Sets mode to an arbitrary String.
You should usually call mode with a well-typed Mode constant instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
summary
final BetaResponse.Reasoning.Builder summary(BetaResponse.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.conciseis supported forcomputer-use-previewmodels and all reasoning models aftergpt-5.
-
summary
final BetaResponse.Reasoning.Builder summary(Optional<BetaResponse.Reasoning.Summary> summary)
Alias for calling Builder.summary with
summary.orElse(null).
-
summary
final BetaResponse.Reasoning.Builder summary(JsonField<BetaResponse.Reasoning.Summary> summary)
Sets Builder.summary to an arbitrary JSON value.
You should usually call Builder.summary with a well-typed Summary value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaResponse.Reasoning.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponse.Reasoning.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponse.Reasoning.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponse.Reasoning.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponse.Reasoning.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponse.Reasoning build()
Returns an immutable instance of Reasoning.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-