Class BetaMessageTokensCount
-
- All Implemented Interfaces:
public final class BetaMessageTokensCount
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaMessageTokensCount.BuilderA builder for BetaMessageTokensCount.
-
Method Summary
Modifier and Type Method Description final Optional<BetaCountTokensContextManagementResponse>contextManagement()Information about context management applied to the message. final LonginputTokens()The total number of tokens across the provided list of messages, system prompt, and tools. final JsonField<BetaCountTokensContextManagementResponse>_contextManagement()Returns the raw JSON value of contextManagement. final JsonField<Long>_inputTokens()Returns the raw JSON value of inputTokens. final Map<String, JsonValue>_additionalProperties()final BetaMessageTokensCount.BuildertoBuilder()final BetaMessageTokensCountvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaMessageTokensCount.Builderbuilder()Returns a mutable builder for constructing an instance of BetaMessageTokensCount. -
-
Method Detail
-
contextManagement
final Optional<BetaCountTokensContextManagementResponse> contextManagement()
Information about context management applied to the message.
-
inputTokens
final Long inputTokens()
The total number of tokens across the provided list of messages, system prompt, and tools.
-
_contextManagement
final JsonField<BetaCountTokensContextManagementResponse> _contextManagement()
Returns the raw JSON value of contextManagement.
Unlike contextManagement, this method doesn't throw if the JSON field has an unexpected type.
-
_inputTokens
final JsonField<Long> _inputTokens()
Returns the raw JSON value of inputTokens.
Unlike inputTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaMessageTokensCount.Builder toBuilder()
-
validate
final BetaMessageTokensCount 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 BetaMessageTokensCount.Builder builder()
Returns a mutable builder for constructing an instance of BetaMessageTokensCount.
The following fields are required:
.contextManagement() .inputTokens()
-
-
-
-