cayu.sessions.SessionTopologyBranch
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import SessionTopologyBranchOne independently pageable direct-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 |
|---|---|---|
parent_session_id |
str |
required |
children |
tuple[SessionTopologyNode, ...] |
Field(default=(), max_length=SESSION_TOPOLOGY_MAX_CHILD_LIMIT) |
next_cursor |
str | None |
None |
has_more |
StrictBool |
False |
validate_parent_session_id (method)
Section titled “validate_parent_session_id (method)”SessionTopologyBranch.validate_parent_session_id(value: str) -> strvalidate_next_cursor (method)
Section titled “validate_next_cursor (method)”SessionTopologyBranch.validate_next_cursor(value: str | None) -> str | Nonevalidate_continuation (method)
Section titled “validate_continuation (method)”SessionTopologyBranch.validate_continuation() -> SessionTopologyBranch