nat.data_models.token_usage#
Classes#
Shared token usage counters emitted by LLM/tool events. |
Module Contents#
- class TokenUsageBaseModel(/, **data: Any)#
Bases:
pydantic.BaseModelShared token usage counters emitted by LLM/tool events.
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.selfis explicitly positional-only to allowselfas a field name.