cayu.sessions.TranscriptSearchQuery
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import TranscriptSearchQueryBounded lexical search over explicitly selected authoritative transcripts.
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 |
|---|---|---|
text |
str |
required |
session_ids |
tuple[str, ...] |
required |
roles |
tuple[MessageRole, ...] |
(MessageRole.USER, MessageRole.ASSISTANT) |
before_transcript_indexes |
Mapping[str, int] |
Field(default_factory=dict) |
limit |
int |
TRANSCRIPT_SEARCH_DEFAULT_LIMIT |
max_bytes |
int |
TRANSCRIPT_SEARCH_DEFAULT_MAX_BYTES |
max_records_scanned |
int |
TRANSCRIPT_SEARCH_DEFAULT_SCAN_LIMIT |
cursor |
str | None |
None |
validate_text (method)
Section titled “validate_text (method)”TranscriptSearchQuery.validate_text(value: str) -> strvalidate_session_ids (method)
Section titled “validate_session_ids (method)”TranscriptSearchQuery.validate_session_ids(value) -> tuple[str, ...]validate_roles (method)
Section titled “validate_roles (method)”TranscriptSearchQuery.validate_roles(value) -> tuple[MessageRole, ...]validate_before_transcript_indexes (method)
Section titled “validate_before_transcript_indexes (method)”TranscriptSearchQuery.validate_before_transcript_indexes(value) -> dict[str, int]freeze_before_transcript_indexes (method)
Section titled “freeze_before_transcript_indexes (method)”TranscriptSearchQuery.freeze_before_transcript_indexes(value: Mapping[str, int]) -> Mapping[str, int]serialize_before_transcript_indexes (method)
Section titled “serialize_before_transcript_indexes (method)”TranscriptSearchQuery.serialize_before_transcript_indexes(value: Mapping[str, int]) -> dict[str, int]validate_before_index_scope (method)
Section titled “validate_before_index_scope (method)”TranscriptSearchQuery.validate_before_index_scope() -> TranscriptSearchQueryvalidate_bounds (method)
Section titled “validate_bounds (method)”TranscriptSearchQuery.validate_bounds(value, info) -> intvalidate_cursor (method)
Section titled “validate_cursor (method)”TranscriptSearchQuery.validate_cursor(value: str | None) -> str | None