Package com.anthropic.models.messages
Class MessageTokensCount
-
- All Implemented Interfaces:
public final class MessageTokensCount
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMessageTokensCount.BuilderA builder for MessageTokensCount.
-
Method Summary
Modifier and Type Method Description final LonginputTokens()The total number of tokens across the provided list of messages, system prompt, and tools. final JsonField<Long>_inputTokens()Returns the raw JSON value of inputTokens. final Map<String, JsonValue>_additionalProperties()final MessageTokensCount.BuildertoBuilder()final MessageTokensCountvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static MessageTokensCount.Builderbuilder()Returns a mutable builder for constructing an instance of MessageTokensCount. -
-
Method Detail
-
inputTokens
final Long inputTokens()
The total number of tokens across the provided list of messages, system prompt, and tools.
-
_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 MessageTokensCount.Builder toBuilder()
-
validate
final MessageTokensCount 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 MessageTokensCount.Builder builder()
Returns a mutable builder for constructing an instance of MessageTokensCount.
The following fields are required:
.inputTokens()
-
-
-
-