Skip to content

cayu.sessions.TranscriptSearchHit

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

from cayu.sessions import TranscriptSearchHit

One exact transcript record matched through its non-thinking text parts.

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
session_id str required
transcript_index int required
interaction_id str | None None
role MessageRole required
text str required
text_complete bool required
content_hash str required
text_part_indexes tuple[int, ...] required
raw_score float | None None
TranscriptSearchHit.validate_session_id(value: str) -> str
TranscriptSearchHit.validate_interaction_id(value: str | None) -> str | None
TranscriptSearchHit.validate_transcript_index(value) -> int
TranscriptSearchHit.validate_hit_text(value: str) -> str
TranscriptSearchHit.validate_text_complete(value) -> bool
TranscriptSearchHit.validate_content_hash(value: str) -> str
TranscriptSearchHit.validate_text_part_indexes(value) -> tuple[int, ...]
TranscriptSearchHit.validate_raw_score(value) -> float | None

Release source · Runtime guarantees · Capability guides