Python: Sessions | Policy Engine | Concepts: Policy Engine
Session tracking
RAILSession tracks scores across a multi-turn conversation with configurable deep-eval frequency and quality threshold alerts.
Policy engine
Enforce content quality policies with four modes:LOG_ONLY, BLOCK, REGENERATE, CUSTOM.
Middleware
Wrap any async function with pre/post RAIL evaluation:What’s next
Providers and Reference
LLM provider wrappers, error handling, and TypeScript types.
Concepts: Policy Engine
How policy rules work under the hood.