cayu.sessions.SessionLineageOrigin
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import SessionLineageOriginPayload-free durable identity for one session start or fork event.
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 |
|---|---|---|
sequence |
StrictInt |
Field(ge=1, le=MAX_DURABLE_JSON_INTEGER) |
event_id |
str |
Field(max_length=EVENT_ID_MAX_CHARS) |
event_type |
EventType |
required |
validate_event_id (method)
Section titled “validate_event_id (method)”SessionLineageOrigin.validate_event_id(value: str) -> strvalidate_event_type (method)
Section titled “validate_event_type (method)”SessionLineageOrigin.validate_event_type(value: EventType) -> EventType