Start Here
| If you need… | Example | Docs page |
|---|---|---|
| First cascade setup | basic_usage.py | Basic Usage |
| Budget enforcement | basic_enforcement.py | Budget Enforcement |
| Multi-agent with tools | agentic_multi_agent.py | Multi-Agent |
| LangChain integration | langchain_harness.py | LangChain |
| Production patterns | production_patterns.py | Enterprise Patterns |
Python Examples
| Topic | Example |
|---|---|
| Basic cascade | basic_usage.py |
| Batch processing | batch_processing.py |
| Cost tracking | cost_tracking.py |
| Cost forecasting | cost_forecasting_anomaly_detection.py |
| Multi-provider | multi_provider.py |
| Multi-step cascade | multi_step_cascade.py |
| Reasoning models | reasoning_models.py |
| Guardrails | guardrails_usage.py |
| Streaming text | streaming_text.py |
| Streaming tools | streaming_tools.py |
| Tool execution | tool_execution.py |
| Multi-agent | agentic_multi_agent.py |
| User budgets | user_budget_tracking.py |
| User profiles | user_profile_usage.py |
| Profile DB | profile_database_integration.py |
| Custom cascade | custom_cascade.py |
| Custom validation | custom_validation.py |
| Semantic quality | semantic_quality_domain_detection.py |
| Rate limiting | rate_limiting_usage.py |
Deployment And Ops Examples
| Topic | Example |
|---|---|
| Production patterns | production_patterns.py |
| FastAPI | fastapi_integration.py |
| Gateway client (OpenAI) | gateway_client_openai.py |
| Gateway client (Anthropic) | gateway_client_anthropic.py |
| Gateway embeddings | gateway_client_embeddings.py |
| Proxy service | proxy_service_basic.py |
| Edge devices | edge_device.py |
| vLLM example | vllm_example.py |
| Multi-instance Ollama | multi_instance_ollama.py |
| Multi-instance vLLM | multi_instance_vllm.py |
Enforcement And Integrations
| Topic | Example |
|---|---|
| Basic enforcement | examples/enforcement/basic_enforcement.py |
| Stripe integration | examples/enforcement/stripe_integration.py |
| OpenAI Agents SDK | examples/integrations/openai_agents_harness.py |
| LangChain harness | examples/integrations/langchain_harness.py |
| Google ADK | examples/integrations/google_adk_harness.py |
| CrewAI | examples/integrations/crewai_harness.py |
| Local providers setup | examples/integrations/local_providers_setup.py |
| LiteLLM providers | examples/integrations/litellm_providers.py |
| LiteLLM cost tracking | examples/integrations/litellm_cost_tracking.py |
| OpenTelemetry and Grafana | examples/integrations/opentelemetry_grafana.py |
| Paygentic | examples/integrations/paygentic_usage.py |
TypeScript Examples
| Area | Directory |
|---|---|
| Core Node.js examples | packages/core/examples/nodejs |
| Browser and edge examples | packages/core/examples/browser |
| LangChain TypeScript examples | packages/langchain-cascadeflow/examples |
| Vercel AI example app | examples/vercel-ai-nextjs |