cayu.sessions.SessionLineageNode
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import SessionLineageNodeMinimal byte-bounded identity used to enumerate one child branch.
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 |
parent_session_id |
str |
required |
created_at |
datetime |
required |
origin_events |
tuple[SessionLineageOrigin, ...] |
Field(default=(), max_length=SESSION_LINEAGE_MAX_ORIGIN_EVENTS) |
validate_identifiers (method)
Section titled “validate_identifiers (method)”SessionLineageNode.validate_identifiers(value: str, info) -> strnormalize_created_at (method)
Section titled “normalize_created_at (method)”SessionLineageNode.normalize_created_at(value: datetime) -> datetimecopy_origin_events (method)
Section titled “copy_origin_events (method)”SessionLineageNode.copy_origin_events(value: tuple[SessionLineageOrigin, ...]) -> tuple[SessionLineageOrigin, ...]