Skip to content

Bedrock Agent Runtime  >  Structures  >  Usage

Usage

Structure Class

Usage dataclass

Contains information of the usage of the foundation model.

Attributes

input_tokens class-attribute instance-attribute
input_tokens: int | None = None

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

output_tokens class-attribute instance-attribute
output_tokens: int | None = None

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