cayu.sessions.SessionInspectionUsageSummary
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import SessionInspectionUsageSummaryLossless usage totals for bounded operator inspection.
Bases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
session_id |
str |
required |
model_steps |
StrictInt |
Field(default=0, ge=0, le=MAX_DURABLE_JSON_INTEGER) |
tool_calls |
StrictInt |
Field(default=0, ge=0, le=MAX_DURABLE_JSON_INTEGER) |
provider_names |
list[str] |
Field(default_factory=list) |
models |
list[str] |
Field(default_factory=list) |
usage |
AggregateUsageMetrics |
Field(default_factory=build_aggregate_usage_metrics) |
validate_session_id (method)
Section titled “validate_session_id (method)”SessionInspectionUsageSummary.validate_session_id(value: str, info) -> strcopy_string_lists (method)
Section titled “copy_string_lists (method)”SessionInspectionUsageSummary.copy_string_lists(value: list[str], info) -> list[str]