Model Fallback & Circuit Breaker
A 3-provider fallback chain that automatically cascades through OpenAI, Anthropic, and Google when failures occur.Full Example
examples/models/fallback-chain.tsSmart Model Router
Route requests to the cheapest capable model based on query complexity:Full Example
examples/models/smart-router.tsAgent Reflection & Self-Correction
Enable agents to critique their own outputs and detect tool call loops:Full Example
examples/agents/reflection.tsA/B Testing Agent Versions
Deterministic traffic splitting with metric tracking:Full Example
examples/agents/ab-testing.tsCompliance & Audit Trail
Hash-chained audit logging for EU AI Act compliance:Full Example
examples/compliance/audit-trail.tsMulti-Tenant Isolation
Transparent tenant-scoped storage:Full Example
examples/multi-tenant/isolation.tsToken-Aware Rate Limiting
Sliding-window rate limiting with per-tenant scoping:Full Example
examples/rate-limiting/token-aware.tsScheduled Agents
Cron-based scheduling with event-driven triggers:Full Example
examples/scheduling/cron-agent.tsConversational Testing
Multi-turn conversation testing with synthetic users:Full Example
examples/eval/conversational-test.tsContext Pollution Prevention
Automatically clean failed results and stale messages:Full Example
examples/agents/context-curator.tsStreaming Progress Protocol
Rich progress events for real-time UI updates:Full Example
examples/agents/progress-stream.ts