Skip to main content
@cascadeflow/core contains two complementary runtime APIs:
  • CascadeAgent performs speculative model cascading and quality validation.
  • The harness observes or enforces policy around OpenAI and Anthropic SDK calls.

Install

Node.js 18 or newer is required.

Cascade API

See CascadeAgent, Configuration, and CascadeResult.

Harness API

See Harness.

Main Export Groups

Next Steps

Build a cascade

Configure models, quality checks, routing, streaming, and batch execution.

Add runtime policy

Observe or enforce budgets, tool caps, energy, latency, and compliance.

Execute tools

Define tools and run automatic multi-step tool loops.

Check feature parity

Compare the current Python and TypeScript surfaces.