Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:ANative Lab EvoAgentX Sequential Workflow Composition

From Leeroopedia
Knowledge Sources
Domains Workflow
Last Updated 2026-10-21 00:00 GMT

Overview

Technique for composing sequential multi-agent workflows from ordered task definitions with automatic dependency inference from shared input/output names.

Description

Sequential Workflow Composition simplifies the construction of linear (or branching) multi-agent workflows. Instead of manually defining graph nodes and edges, the user provides an ordered list of task dicts. Each task specifies its name, prompt, inputs, and outputs. The framework infers data-flow edges by matching one task's output parameter names to another's input parameter names, creating a DAG where data flows naturally from producers to consumers. This is the manual counterpart to Automated Task Decomposition.

Usage

Use this principle when you know the task sequence and want precise control over each task's prompt and I/O without auto-generation. Use `SequentialWorkFlowGraph(goal, tasks)`:

  • Each task becomes a `WorkFlowNode` with a `CustomizeAgent` config
  • Edges are inferred from shared parameter names (task A's output `key_points` feeds task B's input `key_points`)
  • Tasks can specify `tool_names`, `parse_mode`, and custom `parse_func`

Theoretical Basis

The composition pattern infers dependencies from data contracts:

# Abstract algorithm (not real implementation)
tasks = [{"name": "A", "outputs": ["x"]}, {"name": "B", "inputs": ["x"]}]
nodes = [create_node(task) for task in tasks]
edges = []
for a in nodes:
    for b in nodes:
        if a.name != b.name and shared(a.outputs, b.inputs):
            edges.append(Edge(a, b))
graph = DAG(nodes, edges)

Key properties:

  • Declarative: Tasks are dicts, not code
  • Automatic edge inference: No manual edge specification needed
  • Data contract: Tasks communicate through named input/output parameters
  • Parse mode inheritance: Each task can have its own parse_mode

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment