Class ResponseCreateParams.Reasoning.Builder
-
- All Implemented Interfaces:
public final class ResponseCreateParams.Reasoning.BuilderA builder for Reasoning.
-
-
Method Summary
-
-
Method Detail
-
context
final ResponseCreateParams.Reasoning.Builder context(ResponseCreateParams.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 ResponseCreateParams.Reasoning.Builder context(Optional<ResponseCreateParams.Reasoning.Context> context)
Alias for calling Builder.context with
context.orElse(null).
-
context
final ResponseCreateParams.Reasoning.Builder context(JsonField<ResponseCreateParams.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 ResponseCreateParams.Reasoning.Builder effort(ResponseCreateParams.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 ResponseCreateParams.Reasoning.Builder effort(Optional<ResponseCreateParams.Reasoning.Effort> effort)
Alias for calling Builder.effort with
effort.orElse(null).
-
effort
final ResponseCreateParams.Reasoning.Builder effort(JsonField<ResponseCreateParams.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 ResponseCreateParams.Reasoning.Builder generateSummary(ResponseCreateParams.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 ResponseCreateParams.Reasoning.Builder generateSummary(Optional<ResponseCreateParams.Reasoning.GenerateSummary> generateSummary)
Alias for calling Builder.generateSummary with
generateSummary.orElse(null).
-
generateSummary
@Deprecated(message = "deprecated") final ResponseCreateParams.Reasoning.Builder generateSummary(JsonField<ResponseCreateParams.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 ResponseCreateParams.Reasoning.Builder mode(ResponseCreateParams.Reasoning.Mode mode)
Controls the reasoning execution mode for the request.
When returned on a response, this is the effective execution mode.
-
mode
final ResponseCreateParams.Reasoning.Builder mode(JsonField<ResponseCreateParams.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 ResponseCreateParams.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 ResponseCreateParams.Reasoning.Builder summary(ResponseCreateParams.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 ResponseCreateParams.Reasoning.Builder summary(Optional<ResponseCreateParams.Reasoning.Summary> summary)
Alias for calling Builder.summary with
summary.orElse(null).
-
summary
final ResponseCreateParams.Reasoning.Builder summary(JsonField<ResponseCreateParams.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 ResponseCreateParams.Reasoning.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseCreateParams.Reasoning.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseCreateParams.Reasoning.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseCreateParams.Reasoning.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseCreateParams.Reasoning.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseCreateParams.Reasoning build()
Returns an immutable instance of Reasoning.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-