Skip to content

cayu.sessions.SessionInspectionUsageSummary

Part of cayu.sessions.base. Read the Python API overview and install the required extra.

from cayu.sessions import SessionInspectionUsageSummary

Lossless usage totals for bounded operator inspection.

Bases: BaseModel.

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)
SessionInspectionUsageSummary.validate_session_id(value: str, info) -> str
SessionInspectionUsageSummary.copy_string_lists(value: list[str], info) -> list[str]

Release source · Runtime guarantees · Capability guides