Skip to content

Quota

Base classes

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

⋔ Inheritance diagram

graph TD
  95970871587072["field_meta.Quota"]
  125067848556736["builtins.dict"]
  125067848591872["builtins.object"]
  125067848556736 --> 95970871587072
  125067848591872 --> 125067848556736

🛈 DocStrings

Bases: TypedDict

quota entry of :class:PromptResponseMeta.

Source code in src/aclientp/schema/field_meta.py
class Quota(TypedDict):
    """``quota`` entry of :class:`PromptResponseMeta`."""

    token_count: TokenCount
    """Tokens of the main agent loop."""

    model_usage: list[ModelTokenCount]
    """Tokens by model, including subagents."""

model_usage instance-attribute

model_usage: list[ModelTokenCount]

Tokens by model, including subagents.

token_count instance-attribute

token_count: TokenCount

Tokens of the main agent loop.

:fa-brands-github: Show source on GitHub