Class BetaModelInfo
-
- All Implemented Interfaces:
public final class BetaModelInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaModelInfo.BuilderA builder for BetaModelInfo.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique model identifier. final Optional<List<String>>allowedFallbackModels()Model IDs this model accepts as fallbacks[i].modelon the Messages API.final Optional<BetaModelCapabilities>capabilities()Model capability information. final OffsetDateTimecreatedAt()RFC 3339 datetime string representing the time at which the model was released. final StringdisplayName()A human-readable name for the model. final Optional<Long>maxInputTokens()Maximum input context window size in tokens for this model. final Optional<Long>maxTokens()Maximum value for the max_tokensparameter when using this model.final JsonValue_type()Object type. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<List<String>>_allowedFallbackModels()Returns the raw JSON value of allowedFallbackModels. final JsonField<BetaModelCapabilities>_capabilities()Returns the raw JSON value of capabilities. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<String>_displayName()Returns the raw JSON value of displayName. final JsonField<Long>_maxInputTokens()Returns the raw JSON value of maxInputTokens. final JsonField<Long>_maxTokens()Returns the raw JSON value of maxTokens. final Map<String, JsonValue>_additionalProperties()final BetaModelInfo.BuildertoBuilder()final BetaModelInfovalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaModelInfo.Builderbuilder()Returns a mutable builder for constructing an instance of BetaModelInfo. -
-
Method Detail
-
allowedFallbackModels
final Optional<List<String>> allowedFallbackModels()
Model IDs this model accepts as
fallbacks[i].modelon the Messages API. An empty list means thefallbacksparameter is not supported for this model as primary.
-
capabilities
final Optional<BetaModelCapabilities> capabilities()
Model capability information.
-
createdAt
final OffsetDateTime createdAt()
RFC 3339 datetime string representing the time at which the model was released. May be set to an epoch value if the release date is unknown.
-
displayName
final String displayName()
A human-readable name for the model.
-
maxInputTokens
final Optional<Long> maxInputTokens()
Maximum input context window size in tokens for this model.
-
maxTokens
final Optional<Long> maxTokens()
Maximum value for the
max_tokensparameter when using this model.
-
_type
final JsonValue _type()
Object type.
For Models, this is always
"model".Expected to always return the following:
JsonValue.from("model")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_allowedFallbackModels
final JsonField<List<String>> _allowedFallbackModels()
Returns the raw JSON value of allowedFallbackModels.
Unlike allowedFallbackModels, this method doesn't throw if the JSON field has an unexpected type.
-
_capabilities
final JsonField<BetaModelCapabilities> _capabilities()
Returns the raw JSON value of capabilities.
Unlike capabilities, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<OffsetDateTime> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_displayName
final JsonField<String> _displayName()
Returns the raw JSON value of displayName.
Unlike displayName, this method doesn't throw if the JSON field has an unexpected type.
-
_maxInputTokens
final JsonField<Long> _maxInputTokens()
Returns the raw JSON value of maxInputTokens.
Unlike maxInputTokens, 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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaModelInfo.Builder toBuilder()
-
validate
final BetaModelInfo 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 BetaModelInfo.Builder builder()
Returns a mutable builder for constructing an instance of BetaModelInfo.
The following fields are required:
.id() .allowedFallbackModels() .capabilities() .createdAt() .displayName() .maxInputTokens() .maxTokens()
-
-
-
-