Usage metadata dictionary extracted from a run.
Should be the same as UsageMetadata, but does not require all keys to be present.
ExtractedUsageMetadata()| Name | Type |
|---|---|
| input_tokens | int |
| output_tokens | int |
| total_tokens | int |
| input_token_details | InputTokenDetails |
| output_token_details | OutputTokenDetails |
| input_cost | float |
| output_cost | float |
| total_cost | float |
| input_cost_details | InputCostDetails |
| output_cost_details | OutputCostDetails |
The number of tokens used for the prompt.
The number of tokens generated as output.
The total number of tokens used.
The details of the input tokens.
The details of the output tokens.
The cost of the input tokens.
The cost of the output tokens.
The total cost of the tokens.
The cost details of the input tokens.
The cost details of the output tokens.