Class BetaManagedAgentsSpanModelUsage
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSpanModelUsageToken usage for a single model request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsSpanModelUsage.BuilderA builder for BetaManagedAgentsSpanModelUsage.
public final classBetaManagedAgentsSpanModelUsage.SpeedInference speed mode.
fastprovides significantly faster output token generation at premium pricing. Not all models supportfast; invalid combinations are rejected at create time.
-
Method Summary
Modifier and Type Method Description final IntegercacheCreationInputTokens()Tokens used to create prompt cache in this request. final IntegercacheReadInputTokens()Tokens read from prompt cache in this request. final IntegerinputTokens()Input tokens consumed by this request. final IntegeroutputTokens()Output tokens generated by this request. final Optional<BetaManagedAgentsSpanModelUsage.Speed>speed()Inference speed mode. final JsonField<Integer>_cacheCreationInputTokens()Returns the raw JSON value of cacheCreationInputTokens. final JsonField<Integer>_cacheReadInputTokens()Returns the raw JSON value of cacheReadInputTokens. final JsonField<Integer>_inputTokens()Returns the raw JSON value of inputTokens. final JsonField<Integer>_outputTokens()Returns the raw JSON value of outputTokens. final JsonField<BetaManagedAgentsSpanModelUsage.Speed>_speed()Returns the raw JSON value of speed. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsSpanModelUsage.BuildertoBuilder()final BetaManagedAgentsSpanModelUsagevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsSpanModelUsage.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsSpanModelUsage. -
-
Method Detail
-
cacheCreationInputTokens
final Integer cacheCreationInputTokens()
Tokens used to create prompt cache in this request.
-
cacheReadInputTokens
final Integer cacheReadInputTokens()
Tokens read from prompt cache in this request.
-
inputTokens
final Integer inputTokens()
Input tokens consumed by this request.
-
outputTokens
final Integer outputTokens()
Output tokens generated by this request.
-
speed
final Optional<BetaManagedAgentsSpanModelUsage.Speed> speed()
Inference speed mode.
fastprovides significantly faster output token generation at premium pricing. Not all models supportfast; invalid combinations are rejected at create time.
-
_cacheCreationInputTokens
final JsonField<Integer> _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<Integer> _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<Integer> _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<Integer> _outputTokens()
Returns the raw JSON value of outputTokens.
Unlike outputTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_speed
final JsonField<BetaManagedAgentsSpanModelUsage.Speed> _speed()
Returns the raw JSON value of speed.
Unlike speed, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsSpanModelUsage.Builder toBuilder()
-
validate
final BetaManagedAgentsSpanModelUsage 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 BetaManagedAgentsSpanModelUsage.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsSpanModelUsage.
The following fields are required:
.cacheCreationInputTokens() .cacheReadInputTokens() .inputTokens() .outputTokens()
-
-
-
-