cayu.sessions.SessionLineageQuery
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import SessionLineageQueryOne independently pageable, payload-free direct-child lineage read.
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 |
|---|---|---|
parent_session_id |
str |
required |
cursor |
str | None |
None |
limit |
StrictInt |
Field(default=SESSION_LINEAGE_DEFAULT_CHILD_LIMIT, ge=1, le=SESSION_LINEAGE_MAX_CHILD_LIMIT) |
validate_parent_session_id (method)
Section titled “validate_parent_session_id (method)”SessionLineageQuery.validate_parent_session_id(value: str) -> strvalidate_cursor (method)
Section titled “validate_cursor (method)”SessionLineageQuery.validate_cursor(value: str | None) -> str | None