> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cascadeflow.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Example Catalog

> Broader catalog of cascadeflow examples across Python, integrations, TypeScript, and deployment patterns.

The complete index of cascadeflow examples across Python, TypeScript, integrations, and deployment. Every example links directly to the GitHub source.

## Start Here

| If you need...         | Example                                                                                                                | Docs page                                            |
| ---------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| First cascade setup    | [basic\_usage.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/basic_usage.py)                          | [Basic Usage](/examples/basic-usage)                 |
| Budget enforcement     | [basic\_enforcement.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/enforcement/basic_enforcement.py)  | [Budget Enforcement](/examples/budget-enforcement)   |
| Multi-agent with tools | [agentic\_multi\_agent.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/agentic_multi_agent.py)         | [Multi-Agent](/examples/multi-agent)                 |
| LangChain integration  | [langchain\_harness.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/langchain_harness.py) | [LangChain](/integrations/langchain)                 |
| Production patterns    | [production\_patterns.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/production_patterns.py)          | [Enterprise Patterns](/examples/enterprise-patterns) |

## Python Examples

| Topic              | Example                                                                                                                                       |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Basic cascade      | [basic\_usage.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/basic_usage.py)                                                 |
| Batch processing   | [batch\_processing.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/batch_processing.py)                                       |
| Cost tracking      | [cost\_tracking.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/cost_tracking.py)                                             |
| Cost forecasting   | [cost\_forecasting\_anomaly\_detection.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/cost_forecasting_anomaly_detection.py) |
| Multi-provider     | [multi\_provider.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/multi_provider.py)                                           |
| Multi-step cascade | [multi\_step\_cascade.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/multi_step_cascade.py)                                  |
| Reasoning models   | [reasoning\_models.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/reasoning_models.py)                                       |
| Guardrails         | [guardrails\_usage.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/guardrails_usage.py)                                       |
| Streaming text     | [streaming\_text.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/streaming_text.py)                                           |
| Streaming tools    | [streaming\_tools.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/streaming_tools.py)                                         |
| Tool execution     | [tool\_execution.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/tool_execution.py)                                           |
| Multi-agent        | [agentic\_multi\_agent.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/agentic_multi_agent.py)                                |
| User budgets       | [user\_budget\_tracking.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/user_budget_tracking.py)                              |
| User profiles      | [user\_profile\_usage.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/user_profile_usage.py)                                  |
| Profile DB         | [profile\_database\_integration.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/profile_database_integration.py)              |
| Custom cascade     | [custom\_cascade.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/custom_cascade.py)                                           |
| Custom validation  | [custom\_validation.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/custom_validation.py)                                     |
| Semantic quality   | [semantic\_quality\_domain\_detection.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/semantic_quality_domain_detection.py)   |
| Rate limiting      | [rate\_limiting\_usage.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/rate_limiting_usage.py)                                |

## Deployment And Ops Examples

| Topic                      | Example                                                                                                                    |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| Production patterns        | [production\_patterns.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/production_patterns.py)              |
| FastAPI                    | [fastapi\_integration.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/fastapi_integration.py)              |
| Gateway client (OpenAI)    | [gateway\_client\_openai.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/gateway_client_openai.py)         |
| Gateway client (Anthropic) | [gateway\_client\_anthropic.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/gateway_client_anthropic.py)   |
| Gateway embeddings         | [gateway\_client\_embeddings.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/gateway_client_embeddings.py) |
| Proxy service              | [proxy\_service\_basic.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/proxy_service_basic.py)             |
| Edge devices               | [edge\_device.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/edge_device.py)                              |
| vLLM example               | [vllm\_example.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/vllm_example.py)                            |
| Multi-instance Ollama      | [multi\_instance\_ollama.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/multi_instance_ollama.py)         |
| Multi-instance vLLM        | [multi\_instance\_vllm.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/multi_instance_vllm.py)             |

## Enforcement And Integrations

| Topic                     | Example                                                                                                                                               |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| Basic enforcement         | [examples/enforcement/basic\_enforcement.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/enforcement/basic_enforcement.py)            |
| Stripe integration        | [examples/enforcement/stripe\_integration.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/enforcement/stripe_integration.py)          |
| OpenAI Agents SDK         | [examples/integrations/openai\_agents\_harness.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/openai_agents_harness.py) |
| LangChain harness         | [examples/integrations/langchain\_harness.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/langchain_harness.py)          |
| Google ADK                | [examples/integrations/google\_adk\_harness.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/google_adk_harness.py)       |
| CrewAI                    | [examples/integrations/crewai\_harness.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/crewai_harness.py)                |
| Local providers setup     | [examples/integrations/local\_providers\_setup.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/local_providers_setup.py) |
| LiteLLM providers         | [examples/integrations/litellm\_providers.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/litellm_providers.py)          |
| LiteLLM cost tracking     | [examples/integrations/litellm\_cost\_tracking.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/litellm_cost_tracking.py) |
| OpenTelemetry and Grafana | [examples/integrations/opentelemetry\_grafana.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/opentelemetry_grafana.py)  |
| Paygentic                 | [examples/integrations/paygentic\_usage.py](https://github.com/lemony-ai/cascadeflow/blob/main/examples/integrations/paygentic_usage.py)              |

## TypeScript Examples

| Area                          | Directory                                                                                                                             |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| Core Node.js examples         | [packages/core/examples/nodejs](https://github.com/lemony-ai/cascadeflow/tree/main/packages/core/examples/nodejs)                     |
| Browser and edge examples     | [packages/core/examples/browser](https://github.com/lemony-ai/cascadeflow/tree/main/packages/core/examples/browser)                   |
| LangChain TypeScript examples | [packages/langchain-cascadeflow/examples](https://github.com/lemony-ai/cascadeflow/tree/main/packages/langchain-cascadeflow/examples) |
| Vercel AI example app         | [examples/vercel-ai-nextjs](https://github.com/lemony-ai/cascadeflow/tree/main/examples/vercel-ai-nextjs)                             |
