Skip to content

cayu.sessions.TranscriptSearchQuery

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

from cayu.sessions import TranscriptSearchQuery

Bounded lexical search over explicitly selected authoritative transcripts.

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
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
TranscriptSearchQuery.validate_text(value: str) -> str
TranscriptSearchQuery.validate_session_ids(value) -> tuple[str, ...]
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]
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]
TranscriptSearchQuery.validate_before_index_scope() -> TranscriptSearchQuery
TranscriptSearchQuery.validate_bounds(value, info) -> int
TranscriptSearchQuery.validate_cursor(value: str | None) -> str | None

Release source · Runtime guarantees · Capability guides