cayu.sessions.TranscriptRecord
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import TranscriptRecordOne retained message with its zero-based absolute transcript index.
Physical retention never renumbers this index; it is not a page offset.
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 |
|---|---|---|
index |
StrictInt |
Field(ge=0, le=MAX_DURABLE_JSON_INTEGER) |
interaction_id |
str | None |
None |
message |
Message |
required |
validate_interaction_id (method)
Section titled “validate_interaction_id (method)”TranscriptRecord.validate_interaction_id(value: str | None) -> str | Nonecopy_message (method)
Section titled “copy_message (method)”TranscriptRecord.copy_message(value: Message) -> Message