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