Class MessageDeltaUsage
-
- All Implemented Interfaces:
public final class MessageDeltaUsage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMessageDeltaUsage.BuilderA builder for MessageDeltaUsage.
-
Method Summary
Modifier and Type Method Description final Optional<Long>cacheCreationInputTokens()The cumulative number of input tokens used to create the cache entry. final Optional<Long>cacheReadInputTokens()The cumulative number of input tokens read from the cache. final Optional<Long>inputTokens()The cumulative number of input tokens which were used. final LongoutputTokens()The cumulative number of output tokens which were used. final Optional<ServerToolUsage>serverToolUse()The number of server tool requests. final JsonField<Long>_cacheCreationInputTokens()Returns the raw JSON value of cacheCreationInputTokens. final JsonField<Long>_cacheReadInputTokens()Returns the raw JSON value of cacheReadInputTokens. final JsonField<Long>_inputTokens()Returns the raw JSON value of inputTokens. final JsonField<Long>_outputTokens()Returns the raw JSON value of outputTokens. final JsonField<ServerToolUsage>_serverToolUse()Returns the raw JSON value of serverToolUse. final Map<String, JsonValue>_additionalProperties()final MessageDeltaUsage.BuildertoBuilder()final MessageDeltaUsagevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static MessageDeltaUsage.Builderbuilder()Returns a mutable builder for constructing an instance of MessageDeltaUsage. -
-
Method Detail
-
cacheCreationInputTokens
final Optional<Long> cacheCreationInputTokens()
The cumulative number of input tokens used to create the cache entry.
-
cacheReadInputTokens
final Optional<Long> cacheReadInputTokens()
The cumulative number of input tokens read from the cache.
-
inputTokens
final Optional<Long> inputTokens()
The cumulative number of input tokens which were used.
-
outputTokens
final Long outputTokens()
The cumulative number of output tokens which were used.
-
serverToolUse
final Optional<ServerToolUsage> serverToolUse()
The number of server tool requests.
-
_cacheCreationInputTokens
final JsonField<Long> _cacheCreationInputTokens()
Returns the raw JSON value of cacheCreationInputTokens.
Unlike cacheCreationInputTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_cacheReadInputTokens
final JsonField<Long> _cacheReadInputTokens()
Returns the raw JSON value of cacheReadInputTokens.
Unlike cacheReadInputTokens, 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.
-
_outputTokens
final JsonField<Long> _outputTokens()
Returns the raw JSON value of outputTokens.
Unlike outputTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_serverToolUse
final JsonField<ServerToolUsage> _serverToolUse()
Returns the raw JSON value of serverToolUse.
Unlike serverToolUse, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final MessageDeltaUsage.Builder toBuilder()
-
validate
final MessageDeltaUsage validate()
-
builder
final static MessageDeltaUsage.Builder builder()
Returns a mutable builder for constructing an instance of MessageDeltaUsage.
The following fields are required:
.cacheCreationInputTokens() .cacheReadInputTokens() .inputTokens() .outputTokens() .serverToolUse()
-
-
-
-