Concept: Policy Engine | API: Evaluation API
RAILSession tracks every turn of a conversation, computes aggregate statistics, and can enforce session-level policies that fire when overall quality drifts, not just on individual turns.
Session properties
| Property | Type | Description |
|---|---|---|
session.session_id | str | Unique session identifier |
session.turn_count | int | Number of turns recorded |
session.average_score | float | Average RAIL score across all turns |
session.min_score | float | Lowest turn score in the session |
session.summary | dict | Per-dimension aggregate stats |