Class BetaFallbackParam
-
- All Implemented Interfaces:
public final class BetaFallbackParamOne entry in the
fallbackschain on a/v1/messagesrequest.modelis required. The four override fields (max_tokens,thinking,output_config, andspeed) replace the corresponding top-level field for this attempt only and are validated as if the request were made tomodel. Any other key is rejected at parse time.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaFallbackParam.BuilderA builder for BetaFallbackParam.
public final classBetaFallbackParam.Speedpublic final classBetaFallbackParam.Thinking
-
Method Summary
Modifier and Type Method Description final Modelmodel()The model that will complete your prompt. final Optional<Long>maxTokens()final Optional<BetaOutputConfig>outputConfig()final Optional<BetaFallbackParam.Speed>speed()final Optional<BetaFallbackParam.Thinking>thinking()final JsonField<Model>_model()Returns the raw JSON value of model. final JsonField<Long>_maxTokens()Returns the raw JSON value of maxTokens. final JsonField<BetaOutputConfig>_outputConfig()Returns the raw JSON value of outputConfig. final JsonField<BetaFallbackParam.Speed>_speed()Returns the raw JSON value of speed. final JsonField<BetaFallbackParam.Thinking>_thinking()Returns the raw JSON value of thinking. final Map<String, JsonValue>_additionalProperties()final BetaFallbackParam.BuildertoBuilder()final BetaFallbackParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaFallbackParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaFallbackParam. -
-
Method Detail
-
model
final Model model()
The model that will complete your prompt.
See models for additional details and options.
-
outputConfig
final Optional<BetaOutputConfig> outputConfig()
-
speed
final Optional<BetaFallbackParam.Speed> speed()
-
thinking
final Optional<BetaFallbackParam.Thinking> thinking()
-
_model
final JsonField<Model> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_maxTokens
final JsonField<Long> _maxTokens()
Returns the raw JSON value of maxTokens.
Unlike maxTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_outputConfig
final JsonField<BetaOutputConfig> _outputConfig()
Returns the raw JSON value of outputConfig.
Unlike outputConfig, this method doesn't throw if the JSON field has an unexpected type.
-
_speed
final JsonField<BetaFallbackParam.Speed> _speed()
Returns the raw JSON value of speed.
Unlike speed, this method doesn't throw if the JSON field has an unexpected type.
-
_thinking
final JsonField<BetaFallbackParam.Thinking> _thinking()
Returns the raw JSON value of thinking.
Unlike thinking, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaFallbackParam.Builder toBuilder()
-
validate
final BetaFallbackParam validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaFallbackParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaFallbackParam.
The following fields are required:
.model()
-
-
-
-