cayu.sessions.TranscriptSearchHit
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import TranscriptSearchHitOne exact transcript record matched through its non-thinking text parts.
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 |
|---|---|---|
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 |
validate_session_id (method)
Section titled “validate_session_id (method)”TranscriptSearchHit.validate_session_id(value: str) -> strvalidate_interaction_id (method)
Section titled “validate_interaction_id (method)”TranscriptSearchHit.validate_interaction_id(value: str | None) -> str | Nonevalidate_transcript_index (method)
Section titled “validate_transcript_index (method)”TranscriptSearchHit.validate_transcript_index(value) -> intvalidate_hit_text (method)
Section titled “validate_hit_text (method)”TranscriptSearchHit.validate_hit_text(value: str) -> strvalidate_text_complete (method)
Section titled “validate_text_complete (method)”TranscriptSearchHit.validate_text_complete(value) -> boolvalidate_content_hash (method)
Section titled “validate_content_hash (method)”TranscriptSearchHit.validate_content_hash(value: str) -> strvalidate_text_part_indexes (method)
Section titled “validate_text_part_indexes (method)”TranscriptSearchHit.validate_text_part_indexes(value) -> tuple[int, ...]validate_raw_score (method)
Section titled “validate_raw_score (method)”TranscriptSearchHit.validate_raw_score(value) -> float | None