Skip to content

Cost

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.base
Base class for generated models.

⋔ Inheritance diagram

graph TD
  95970848372416["session_updates.Cost"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970848372416
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Cost information for a session.

Source code in src/aclientp/schema/session_updates.py
class Cost(AnnotatedObject):
    """Cost information for a session."""

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

    currency: str
    """Unit of ``amount``: an ISO 4217 currency code (e.g. ``USD``), or e.g. ``credits``."""

amount instance-attribute

amount: float

Total cumulative cost for session.

currency instance-attribute

currency: str

Unit of amount: an ISO 4217 currency code (e.g. USD), or e.g. credits.

:fa-brands-github: Show source on GitHub