TokenUsage
¶
Source code in docs_src/capo_bedrock_runtime/types/token_usage.py
cache_details
instance-attribute
¶
cache_details: NotRequired[CacheDetailsList]
Detailed breakdown of cache writes by TTL. Empty if no cache creation occurred. Sorted by TTL duration (1h before 5m).
cache_read_input_tokens
instance-attribute
¶
cache_read_input_tokens: NotRequired[int]
The number of input tokens read from the cache for the request.
cache_write_input_tokens
instance-attribute
¶
cache_write_input_tokens: NotRequired[int]
The number of input tokens written to the cache for the request.
input_tokens
instance-attribute
¶
input_tokens: int
The number of tokens sent in the request to the model.