cayu.evals.session_inspection
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.
EvalDiagnosticV1
Section titled “EvalDiagnosticV1”from cayu.evals import EvalDiagnosticV1Bases: 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 |
event_id |
str |
required |
sequence |
int |
required |
timestamp |
datetime |
required |
event_type |
str |
required |
agent |
str | None |
None |
tool |
str | None |
None |
tool_call_id |
str | None |
None |
code |
str | None |
None |
message |
str | None |
Field(default=None, max_length=4096) |
retry_scheduled |
bool |
False |
manual_settlement_reported |
bool |
False |
Release source · Runtime guarantees · Capability guides
EvalSessionInspectionV1
Section titled “EvalSessionInspectionV1”from cayu.evals import EvalSessionInspectionV1Bases: 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 |
|---|---|---|
schema_version |
Literal[1] |
1 |
root_session_id |
str |
required |
observed_at |
datetime |
required |
sessions |
tuple[EvalSessionObservationV1, ...] |
() |
diagnostics |
tuple[EvalDiagnosticV1, ...] |
() |
limitations |
tuple[str, ...] |
() |
owner_liveness |
Literal['not_checked'] |
'not_checked' |
observation_note |
str |
'Session state and recent activity do not prove worker liveness. Session completion is not a scored case result. Settlement observations do not authorize retry or recovery.' |
Release source · Runtime guarantees · Capability guides
EvalSessionObservationV1
Section titled “EvalSessionObservationV1”from cayu.evals import EvalSessionObservationV1Bases: 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 |
parent_session_id |
str | None |
required |
agent |
str |
required |
status |
str |
required |
last_activity_at |
datetime |
required |
activity |
Literal['recent', 'stale', 'terminal', 'clock_skew'] |
required |
model_calls |
int |
Field(ge=0) |
tool_calls |
int |
Field(ge=0) |
event_count |
int |
Field(ge=0) |
pending_action_count |
int |
Field(ge=0) |
pending_action_kinds |
tuple[str, ...] |
() |
latest_model_event |
str | None |
None |
manual_settlement_reported |
bool |
False |
Release source · Runtime guarantees · Capability guides
inspect_eval_sessions
Section titled “inspect_eval_sessions”from cayu.evals import inspect_eval_sessionsInspect one root and a bounded descendant set without schema-specific SQL.
The caller owns the store and should open it read-only for operator use. Live records are independent observations, not a transaction-wide snapshot. Unsupported, missing, oversized, or truncated evidence is explicit.
async inspect_eval_sessions(store: SessionStore, root_session_id: str, *, max_sessions: int=100, max_diagnostics: int=20, recent_seconds: int=120, now: datetime | None=None) -> EvalSessionInspectionV1