Class UsageEmbeddingsResponse.Data.Result.OrganizationUsageEmbeddingsResult
-
- All Implemented Interfaces:
public final class UsageEmbeddingsResponse.Data.Result.OrganizationUsageEmbeddingsResultThe aggregated embeddings usage details of the specific time bucket.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUsageEmbeddingsResponse.Data.Result.OrganizationUsageEmbeddingsResult.BuilderA builder for OrganizationUsageEmbeddingsResult.
-
Method Summary
Modifier and Type Method Description final LonginputTokens()The aggregated number of input tokens used. final LongnumModelRequests()The count of requests made to the model. final JsonValue_object_()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("organization.usage.embeddings.result")final Optional<String>apiKeyId()When group_by=api_key_id, this field provides the API key ID of the grouped usage result.final Optional<String>model()When group_by=model, this field provides the model name of the grouped usage result.final Optional<String>projectId()When group_by=project_id, this field provides the project ID of the grouped usage result.final Optional<String>userId()When group_by=user_id, this field provides the user ID of the grouped usage result.final JsonField<Long>_inputTokens()Returns the raw JSON value of inputTokens. final JsonField<Long>_numModelRequests()Returns the raw JSON value of numModelRequests. final JsonField<String>_apiKeyId()Returns the raw JSON value of apiKeyId. final JsonField<String>_model()Returns the raw JSON value of model. final JsonField<String>_projectId()Returns the raw JSON value of projectId. final JsonField<String>_userId()Returns the raw JSON value of userId. final Map<String, JsonValue>_additionalProperties()final UsageEmbeddingsResponse.Data.Result.OrganizationUsageEmbeddingsResult.BuildertoBuilder()final UsageEmbeddingsResponse.Data.Result.OrganizationUsageEmbeddingsResultvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UsageEmbeddingsResponse.Data.Result.OrganizationUsageEmbeddingsResult.Builderbuilder()Returns a mutable builder for constructing an instance of OrganizationUsageEmbeddingsResult. -
-
Method Detail
-
inputTokens
final Long inputTokens()
The aggregated number of input tokens used.
-
numModelRequests
final Long numModelRequests()
The count of requests made to the model.
-
_object_
final JsonValue _object_()
Expected to always return the following:
JsonValue.from("organization.usage.embeddings.result")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
apiKeyId
final Optional<String> apiKeyId()
When
group_by=api_key_id, this field provides the API key ID of the grouped usage result.
-
model
final Optional<String> model()
When
group_by=model, this field provides the model name of the grouped usage result.
-
projectId
final Optional<String> projectId()
When
group_by=project_id, this field provides the project ID of the grouped usage result.
-
userId
final Optional<String> userId()
When
group_by=user_id, this field provides the user ID of the grouped usage result.
-
_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.
-
_numModelRequests
final JsonField<Long> _numModelRequests()
Returns the raw JSON value of numModelRequests.
Unlike numModelRequests, this method doesn't throw if the JSON field has an unexpected type.
-
_apiKeyId
final JsonField<String> _apiKeyId()
Returns the raw JSON value of apiKeyId.
Unlike apiKeyId, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<String> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_projectId
final JsonField<String> _projectId()
Returns the raw JSON value of projectId.
Unlike projectId, this method doesn't throw if the JSON field has an unexpected type.
-
_userId
final JsonField<String> _userId()
Returns the raw JSON value of userId.
Unlike userId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageEmbeddingsResult.Builder toBuilder()
-
validate
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageEmbeddingsResult 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 UsageEmbeddingsResponse.Data.Result.OrganizationUsageEmbeddingsResult.Builder builder()
Returns a mutable builder for constructing an instance of OrganizationUsageEmbeddingsResult.
The following fields are required:
.inputTokens() .numModelRequests()
-
-
-
-