cayu.sessions.SessionStateSnapshot
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import SessionStateSnapshotBounded session state for status polling and control-plane coordination.
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 |
|---|---|---|
id |
str |
required |
status |
SessionStatus |
required |
updated_at |
datetime |
required |
last_activity_at |
datetime |
required |
validate_id (method)
Section titled “validate_id (method)”SessionStateSnapshot.validate_id(value: str) -> strnormalize_timestamp (method)
Section titled “normalize_timestamp (method)”SessionStateSnapshot.normalize_timestamp(value: datetime, info) -> datetime