Class BetaManagedAgentsCacheCreationUsage
-
- All Implemented Interfaces:
public final class BetaManagedAgentsCacheCreationUsagePrompt-cache creation token usage broken down by cache lifetime.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsCacheCreationUsage.BuilderA builder for BetaManagedAgentsCacheCreationUsage.
-
Method Summary
Modifier and Type Method Description final Optional<Integer>ephemeral1hInputTokens()Tokens used to create 1-hour ephemeral cache entries. final Optional<Integer>ephemeral5mInputTokens()Tokens used to create 5-minute ephemeral cache entries. final JsonField<Integer>_ephemeral1hInputTokens()Returns the raw JSON value of ephemeral1hInputTokens. final JsonField<Integer>_ephemeral5mInputTokens()Returns the raw JSON value of ephemeral5mInputTokens. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsCacheCreationUsage.BuildertoBuilder()final BetaManagedAgentsCacheCreationUsagevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsCacheCreationUsage.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsCacheCreationUsage. -
-
Method Detail
-
ephemeral1hInputTokens
final Optional<Integer> ephemeral1hInputTokens()
Tokens used to create 1-hour ephemeral cache entries.
-
ephemeral5mInputTokens
final Optional<Integer> ephemeral5mInputTokens()
Tokens used to create 5-minute ephemeral cache entries.
-
_ephemeral1hInputTokens
final JsonField<Integer> _ephemeral1hInputTokens()
Returns the raw JSON value of ephemeral1hInputTokens.
Unlike ephemeral1hInputTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_ephemeral5mInputTokens
final JsonField<Integer> _ephemeral5mInputTokens()
Returns the raw JSON value of ephemeral5mInputTokens.
Unlike ephemeral5mInputTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsCacheCreationUsage.Builder toBuilder()
-
validate
final BetaManagedAgentsCacheCreationUsage 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 BetaManagedAgentsCacheCreationUsage.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsCacheCreationUsage.
-
-
-
-