Skip to content

Usage

Source code in docs_src/capo_bedrock_agent_runtime/types/usage.py
class Usage(TypedDict, closed=True):
    input_tokens: NotRequired["int"]
    """<p>Contains information about the input tokens from the foundation model usage.</p>"""
    output_tokens: NotRequired["int"]
    """<p>Contains information about the output tokens from the foundation model usage.</p>"""

input_tokens instance-attribute

input_tokens: NotRequired[int]

Contains information about the input tokens from the foundation model usage.

output_tokens instance-attribute

output_tokens: NotRequired[int]

Contains information about the output tokens from the foundation model usage.