Class SessionExecuteResponse.Data.Result.Usage
-
- All Implemented Interfaces:
public final class SessionExecuteResponse.Data.Result.Usage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSessionExecuteResponse.Data.Result.Usage.BuilderA builder for Usage.
-
Method Summary
-
-
Method Detail
-
inferenceTimeMs
final Double inferenceTimeMs()
-
inputTokens
final Double inputTokens()
-
outputTokens
final Double outputTokens()
-
cachedInputTokens
final Optional<Double> cachedInputTokens()
-
reasoningTokens
final Optional<Double> reasoningTokens()
-
_inferenceTimeMs
final JsonField<Double> _inferenceTimeMs()
Returns the raw JSON value of inferenceTimeMs.
Unlike inferenceTimeMs, this method doesn't throw if the JSON field has an unexpected type.
-
_inputTokens
final JsonField<Double> _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<Double> _outputTokens()
Returns the raw JSON value of outputTokens.
Unlike outputTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_cachedInputTokens
final JsonField<Double> _cachedInputTokens()
Returns the raw JSON value of cachedInputTokens.
Unlike cachedInputTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_reasoningTokens
final JsonField<Double> _reasoningTokens()
Returns the raw JSON value of reasoningTokens.
Unlike reasoningTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SessionExecuteResponse.Data.Result.Usage.Builder toBuilder()
-
validate
final SessionExecuteResponse.Data.Result.Usage 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 SessionExecuteResponse.Data.Result.Usage.Builder builder()
Returns a mutable builder for constructing an instance of Usage.
The following fields are required:
.inferenceTimeMs() .inputTokens() .outputTokens()
-
-
-
-