Class InputTokenCountResponse
-
- All Implemented Interfaces:
public final class InputTokenCountResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classInputTokenCountResponse.BuilderA builder for InputTokenCountResponse.
-
Method Summary
Modifier and Type Method Description final LonginputTokens()final JsonValue_object_()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("response.input_tokens")final JsonField<Long>_inputTokens()Returns the raw JSON value of inputTokens. final Map<String, JsonValue>_additionalProperties()final InputTokenCountResponse.BuildertoBuilder()final InputTokenCountResponsevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static InputTokenCountResponse.Builderbuilder()Returns a mutable builder for constructing an instance of InputTokenCountResponse. -
-
Method Detail
-
inputTokens
final Long inputTokens()
-
_object_
final JsonValue _object_()
Expected to always return the following:
JsonValue.from("response.input_tokens")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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 InputTokenCountResponse.Builder toBuilder()
-
validate
final InputTokenCountResponse validate()
-
builder
final static InputTokenCountResponse.Builder builder()
Returns a mutable builder for constructing an instance of InputTokenCountResponse.
The following fields are required:
.inputTokens()
-
-
-
-