Skip to content

Cost

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.v2.base
A v2 object with the ``_meta`` extension point.

⋔ Inheritance diagram

graph TD
  95970868568400["common.Cost"]
  95970868359040["base.AnnotatedObject"]
  95970855946400["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970868359040 --> 95970868568400
  95970855946400 --> 95970868359040
  95970851503232 --> 95970855946400
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Cumulative cost of a session.

Source code in src/aclientp/schema/v2/common.py
class Cost(AnnotatedObject):
    """Cumulative cost of a session."""

    amount: float
    """Total cumulative cost."""

    currency: str
    """Unit of ``amount``: an ISO 4217 code such as ``USD``, or another unit such as ``credits``."""

amount instance-attribute

amount: float

Total cumulative cost.

currency instance-attribute

currency: str

Unit of amount: an ISO 4217 code such as USD, or another unit such as credits.

:fa-brands-github: Show source on GitHub