Class BetaFallbackParam.Builder
-
- All Implemented Interfaces:
public final class BetaFallbackParam.BuilderA builder for BetaFallbackParam.
-
-
Method Summary
-
-
Method Detail
-
model
final BetaFallbackParam.Builder model(Model model)
The model that will complete your prompt.
See models for additional details and options.
-
model
final BetaFallbackParam.Builder model(JsonField<Model> model)
Sets Builder.model to an arbitrary JSON value.
You should usually call Builder.model with a well-typed Model value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final BetaFallbackParam.Builder model(String value)
Sets model to an arbitrary String.
You should usually call model with a well-typed Model constant instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxTokens
final BetaFallbackParam.Builder maxTokens(Long maxTokens)
-
maxTokens
final BetaFallbackParam.Builder maxTokens(Long maxTokens)
Alias for Builder.maxTokens.
This unboxed primitive overload exists for backwards compatibility.
-
maxTokens
final BetaFallbackParam.Builder maxTokens(Optional<Long> maxTokens)
Alias for calling Builder.maxTokens with
maxTokens.orElse(null).
-
maxTokens
final BetaFallbackParam.Builder maxTokens(JsonField<Long> maxTokens)
Sets Builder.maxTokens to an arbitrary JSON value.
You should usually call Builder.maxTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
outputConfig
final BetaFallbackParam.Builder outputConfig(BetaOutputConfig outputConfig)
-
outputConfig
final BetaFallbackParam.Builder outputConfig(Optional<BetaOutputConfig> outputConfig)
Alias for calling Builder.outputConfig with
outputConfig.orElse(null).
-
outputConfig
final BetaFallbackParam.Builder outputConfig(JsonField<BetaOutputConfig> outputConfig)
Sets Builder.outputConfig to an arbitrary JSON value.
You should usually call Builder.outputConfig with a well-typed BetaOutputConfig value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
speed
final BetaFallbackParam.Builder speed(BetaFallbackParam.Speed speed)
-
speed
final BetaFallbackParam.Builder speed(Optional<BetaFallbackParam.Speed> speed)
Alias for calling Builder.speed with
speed.orElse(null).
-
speed
final BetaFallbackParam.Builder speed(JsonField<BetaFallbackParam.Speed> speed)
Sets Builder.speed to an arbitrary JSON value.
You should usually call Builder.speed with a well-typed Speed value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
thinking
final BetaFallbackParam.Builder thinking(BetaFallbackParam.Thinking thinking)
-
thinking
final BetaFallbackParam.Builder thinking(Optional<BetaFallbackParam.Thinking> thinking)
Alias for calling Builder.thinking with
thinking.orElse(null).
-
thinking
final BetaFallbackParam.Builder thinking(JsonField<BetaFallbackParam.Thinking> thinking)
Sets Builder.thinking to an arbitrary JSON value.
You should usually call Builder.thinking with a well-typed Thinking value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
thinking
final BetaFallbackParam.Builder thinking(BetaThinkingConfigEnabled enabled)
Alias for calling thinking with
Thinking.ofEnabled(enabled).
-
thinking
final BetaFallbackParam.Builder thinking(BetaThinkingConfigDisabled disabled)
Alias for calling thinking with
Thinking.ofDisabled(disabled).
-
thinking
final BetaFallbackParam.Builder thinking(BetaThinkingConfigAdaptive adaptive)
Alias for calling thinking with
Thinking.ofAdaptive(adaptive).
-
enabledThinking
final BetaFallbackParam.Builder enabledThinking(Long budgetTokens)
Alias for calling thinking with the following:
BetaThinkingConfigEnabled.builder() .budgetTokens(budgetTokens) .build()
-
additionalProperties
final BetaFallbackParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaFallbackParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaFallbackParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaFallbackParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaFallbackParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaFallbackParam build()
Returns an immutable instance of BetaFallbackParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.model()
-
-
-
-