Skip to content

ModelTokenCount

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  95970871585296["field_meta.ModelTokenCount"]
  125067848556736["builtins.dict"]
  125067848591872["builtins.object"]
  125067848556736 --> 95970871585296
  125067848591872 --> 125067848556736

🛈 DocStrings

Bases: TypedDict

Token counts of one model in :class:Quota.

Source code in src/aclientp/schema/field_meta.py
class ModelTokenCount(TypedDict):
    """Token counts of one model in :class:`Quota`."""

    model: str
    """Model id."""

    token_count: TokenCount
    """Tokens spent by this model."""

model instance-attribute

model: str

Model id.

token_count instance-attribute

token_count: TokenCount

Tokens spent by this model.

:fa-brands-github: Show source on GitHub