01 / MODEL CALL
The agent chooses how to reason
Model router
cascadeflow runtime
A model router chooses where one request goes. cascadeflow stays inside agent execution—seeing every model call, tool call, and handoff, then enforcing policy and KPIs as the run changes.
$ pip install cascadeflow$ npm install @cascadeflow/coreMIT open source · sub-5ms overhead · full per-step audit trail
$ pip install cascadeflow$ python run_agent.py[cascadeflow] analyzing step… predicted cost > threshold, quality > min[cascadeflow] ACTION: switch_model(cost-optimized)[cascadeflow] sub-agent call optimized and routed✓ agent run complete — final cost 0.0001 (92% reduction)
// SIDE-BY-SIDE
The difference is not whether a tool can route models. It is whether control ends after the first recommendation or continues through every consequential agent decision.
// BOTTOM_LINE Model routers recommend a model before a request. cascadeflow can keep observing, deciding, and enforcing after the agent starts running.
// THE RUNTIME GAP
Model routers optimize the request boundary. Agents keep making consequential decisions after that boundary—calling tools, delegating work, spending more budget, and producing results that may fail policy or quality checks.
01 / MODEL CALL
Model router
cascadeflow runtime
02 / TOOL CALL
Model router
cascadeflow runtime
03 / HANDOFF
Model router
cascadeflow runtime
04 / QUALITY CHECK
Model router
cascadeflow runtime
// WHY CASCADEFLOW
cascadeflow does not stop at recommending a model. It keeps the agent aligned with the policies and outcomes the business actually cares about.
Observe every model call, tool call, and sub-agent handoff with the run's cumulative budget, policy, and quality state attached.
A policy can switch a model, deny a tool, require approval, redact data, or stop the run before the costly or non-compliant action happens.
Score each step across cost, latency, quality, budget, compliance, and energy, plus custom dimensions defined in cascadeflow Studio.
Classify the query domain and use a specialist model cascade, then validate the result instead of trusting one up-front prediction.
// AFTER THE ROUTE
A routing decision cannot stop a later tool call, react to cumulative spend, or explain why the run changed course. cascadeflow evaluates and records each of those decisions in-process.
// FAQ
A model router recommends a model for a request. cascadeflow stays inside agent execution, evaluates model calls, tool calls, and handoffs against live policy and KPI state, then enforces what happens next.
The first model choice cannot account for later tool calls, sub-agent handoffs, cumulative spend, changing policy state, or a failed quality check. cascadeflow evaluates those decisions as they occur.
Yes. cascadeflow can allow a step, switch the model, deny a tool, require approval, redact data, retry, serve from cache, or stop execution according to configured policies and KPIs.
Yes. A team can keep gateway infrastructure for provider access while cascadeflow adds in-process runtime governance. cascadeflow also includes model cascading and domain-aware routing when a separate router is unnecessary.
cascadeflow uses quality-validated model cascading and domain-aware routing to handle more work with smaller specialist models, escalating only when quality thresholds or runtime policy require it.
cascadeflow records the action, reason, model, step, cost, and budget state for runtime decisions, creating an audit trail of what was allowed, changed, denied, or stopped.
// SOURCES
// MOVE INSIDE THE AGENT
Add cascadeflow to your existing agent stack and start with observe mode. Measure every step first, then enforce the policies and KPIs that matter.