Skip to main content
A Compound Flow is an advanced flow type designed for complex, multi-stage processing pipelines. Unlike Elemental Flows which perform single, focused tasks, Compound Flows can create sophisticated decision trees, implement custom processing logic, and orchestrate multiple processing stages. 🎯

Compound Flow Attributes

Version ⚡

Metadata

Input Configuration

Workflow Configuration

Each Compound Flow must define a workflow consisting of multiple processing stages. There are two types of workflow stages:

Elemental Stage Configuration

Custom Stage Configuration

Dependency Configuration

Execution Behavior

  • Stages without depends_on can execute in parallel
  • Stages with depends_on will wait for specified stages to complete
  • Multiple stages can depend on the same previous stage

Output Configuration

Basic Flow Structure

Implementation Structure 🛠️

Compound Flows can either define custom processing logic within their workflow or integrate existing Elemental Flows, providing maximum flexibility for solving complex challenges. The workflow allows for:
  1. Advanced Decision Making with conditional processing paths 🧠
  2. Custom Processing stages with direct model and prompt configurations ⚙️
  3. Integration of existing Elemental Flows for reusability 🔄
  4. Parallel execution of independent stages ⚡
  5. Sequential execution through depends_on configurations 🔗
  6. Flexible input/output mapping between stages 🔀