Skip to content

cayu.sessions.TranscriptSnapshot

Part of cayu.sessions.base. Read the Python API overview and install the required extra.

from cayu.sessions import TranscriptSnapshot

Retained transcript records plus the permanent append cursor.

Bases: BaseModel.

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
records list[TranscriptRecord] Field(default_factory=list)
cursor StrictInt Field(ge=0, le=MAX_DURABLE_JSON_INTEGER)
TranscriptSnapshot.validate_record_order() -> TranscriptSnapshot
TranscriptSnapshot.retained_position(cursor: int) -> int

Map an exact absolute cursor to this snapshot’s retained positions.

A removed cursor raises ValueError, even if later records survive. The snapshot’s append cursor maps to the end, including empty retention. Unlike load_transcript_window, this does not skip missing history.

Release source · Runtime guarantees · Capability guides