Skip to main content
CascadeAgent runs the least expensive suitable model first and escalates when validation or routing requires it.

Constructor

Models are sorted by cost. A single model produces direct execution, while two or more models enable cascading.

run()

The input can be a string or an array of universal Message objects.

RunOptions

Tools

See Tools for complete setup.

Batch Execution

Streaming

See Streaming.

Inspection

Methods