Class ResponseUsageMetadata
java.lang.Object
uno.anahata.asi.agi.message.ResponseUsageMetadata
Metadata about the token usage for a single API response.
- Author:
- anahata
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) intThe number of tokens in the cached content.(package private) intThe number of tokens in the generated candidates.(package private) intThe number of tokens in the prompt.A map detailing the prompt token breakdown by modality (e.g.(package private) StringThe raw JSON representation of the native usage metadata object.(package private) intThe number of tokens used for model thoughts (internal processing).(package private) intThe number of tokens in the results from tool executions, which are provided back to the model as input, if applicable.(package private) intThe total number of tokens used for the entire interaction. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
promptTokenCount
int promptTokenCountThe number of tokens in the prompt. -
candidatesTokenCount
int candidatesTokenCountThe number of tokens in the generated candidates. -
cachedContentTokenCount
int cachedContentTokenCountThe number of tokens in the cached content. -
thoughtsTokenCount
int thoughtsTokenCountThe number of tokens used for model thoughts (internal processing). -
toolUsePromptTokenCount
int toolUsePromptTokenCountThe number of tokens in the results from tool executions, which are provided back to the model as input, if applicable. -
totalTokenCount
int totalTokenCountThe total number of tokens used for the entire interaction. -
promptTokensDetails
-
rawJson
String rawJsonThe raw JSON representation of the native usage metadata object.
-
-
Constructor Details
-
ResponseUsageMetadata
public ResponseUsageMetadata()
-

