TokenUsageOutput
rboto-bedrock-runtime==0.4.0 · Service index · Types
Public import: from rboto_bedrock_runtime.types import TokenUsageOutput.
Used in: output. Read-only native object. Use attributes; to_dict() materializes a dictionary.
class TokenUsageOutput:
@property
def input_tokens(self) -> int: ...
@property
def output_tokens(self) -> int: ...
@property
def total_tokens(self) -> int: ...
@property
def cache_read_input_tokens(self) -> int | None: ...
@property
def cache_write_input_tokens(self) -> int | None: ...
@property
def cache_details(self) -> list[CacheDetailOutput] | None: ...