Skip to main content

Presets

Create a CascadeAgent with a single function call using preset profiles that configure models, quality thresholds, and routing strategies.

Preset Functions

Cost Optimized

Maximizes savings by using the cheapest models first with aggressive cascading.

Balanced

Default tradeoff between cost, quality, and speed.

Speed Optimized

Prioritizes low latency — prefers fast models and direct routing.

Quality Optimized

Prioritizes response quality — higher thresholds, more willing to escalate to verifier.

Development

Uses free/local models for development and testing.

Auto Agent

Create from a profile name string.

From Profile

CascadeAgent.from_profile() is the class method equivalent:

From Environment

Auto-detect available providers from environment variables: