HarnessTokenUsage
Token usage counts for the invocation.
Contents
- inputTokens
-
The number of input tokens consumed.
Type: Integer
Valid Range: Minimum value of 0.
Required: Yes
- outputTokens
-
The number of output tokens generated.
Type: Integer
Valid Range: Minimum value of 0.
Required: Yes
- totalTokens
-
The total number of tokens consumed.
Type: Integer
Valid Range: Minimum value of 0.
Required: Yes
- cacheReadInputTokens
-
The number of input tokens read from cache.
Type: Integer
Valid Range: Minimum value of 0.
Required: No
- cacheWriteInputTokens
-
The number of input tokens written to cache.
Type: Integer
Valid Range: Minimum value of 0.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: