Skip to content

cayu.evals.capture_policy

Public Cayu API. Definitions are grouped by their public source module, and definitions from private implementation modules appear on their package’s page; adding a symbol does not move existing links. The import shown at each entry is a supported public namespace. Read the Python API overview and install the required extra.

from cayu.evals import SessionTrajectoryBounds

Global retained-evidence limits for one production-session trajectory.

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
max_sessions StrictInt Field(default=_SESSION_TRAJECTORY_DEFAULT_MAX_SESSIONS, ge=1, le=_SESSION_TRAJECTORY_HARD_MAX_SESSIONS)
max_depth StrictInt Field(default=_SESSION_TRAJECTORY_DEFAULT_MAX_DEPTH, ge=1, le=_SESSION_TRAJECTORY_HARD_MAX_DEPTH)
max_events StrictInt Field(default=TERMINAL_SESSION_EVIDENCE_DEFAULT_MAX_EVENTS, ge=1, le=TERMINAL_SESSION_EVIDENCE_HARD_MAX_EVENTS)
max_transcript_records StrictInt Field(default=TERMINAL_SESSION_EVIDENCE_DEFAULT_MAX_TRANSCRIPT_RECORDS, ge=0, le=TERMINAL_SESSION_EVIDENCE_HARD_MAX_TRANSCRIPT_RECORDS)
max_record_bytes StrictInt Field(default=TERMINAL_SESSION_EVIDENCE_DEFAULT_MAX_RECORD_BYTES, ge=1, le=TERMINAL_SESSION_EVIDENCE_HARD_MAX_RECORD_BYTES)
max_total_bytes StrictInt Field(default=TERMINAL_SESSION_EVIDENCE_DEFAULT_MAX_TOTAL_BYTES, ge=1, le=TERMINAL_SESSION_EVIDENCE_HARD_MAX_TOTAL_BYTES)
memory_attribution_bounds MemoryAttributionBounds Field(default_factory=MemoryAttributionBounds)

Release source · Runtime guarantees · Capability guides

from cayu.evals import SessionTrajectoryErrorCode

Stable reason a durable session tree cannot become exact eval evidence.

Bases: StrEnum.

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
DEADLINE_EXCEEDED class attribute 'deadline_exceeded'
STORE_UNSUPPORTED class attribute 'store_unsupported'
EVIDENCE_READ_FAILED class attribute 'evidence_read_failed'
TERMINAL_EVIDENCE_REJECTED class attribute 'terminal_evidence_rejected'
DESCENDANT_ENUMERATION_FAILED class attribute 'descendant_enumeration_failed'
ORIGIN_EVIDENCE_REJECTED class attribute 'origin_evidence_rejected'
PARENT_CONTRADICTION class attribute 'parent_contradiction'
CYCLE_DETECTED class attribute 'cycle_detected'
SESSION_LIMIT_EXCEEDED class attribute 'session_limit_exceeded'
DEPTH_LIMIT_EXCEEDED class attribute 'depth_limit_exceeded'
CLOSURE_CHANGED class attribute 'closure_changed'
EVIDENCE_INCONSISTENT class attribute 'evidence_inconsistent'

Release source · Runtime guarantees · Capability guides