Policy pipeline
Every LLM request passes through this policy chain:Built-in profiles
Useprofile() to apply a curated set of policies:
Individual policies
Configure each policy independently withcreate_llm_client():
- Retry
- Circuit breaker
- Rate limiting
- Caching
- Timeout
Retry transient LLM failures with exponential backoff.
Fallback chains
Configure a chain of models to try when the primary model fails:Tuning cheat sheet
Next steps
Agent Integration
How agents resolve and use LLM clients.
Observability
Monitor LLM call latency, errors, and costs.