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 Workflow Execution Engine

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

Overview

Engine for executing multi-agent workflow DAGs by scheduling nodes, executing actions, tracking environment state, and collecting outputs.

Description

A Workflow Execution Engine traverses a directed acyclic graph (DAG) of task nodes, scheduling each node based on its predecessors' completion. For each node, it either executes via agent-based execution (looking up the agent from AgentManager, passing execution data) or action-graph execution (calling the graph's execute method directly). An Environment tracks all execution data (inputs, outputs, trajectories) across nodes, enabling downstream nodes to access upstream outputs. The engine supports both sync and async execution, with optional output extraction via LLM.

Usage

Use this principle when executing multi-agent workflows. The `WorkFlow` class is the standard implementation:

  • Auto-generated workflows: Execute graphs from `WorkFlowGenerator` with `AgentManager`
  • Sequential workflows: Execute `SequentialWorkFlowGraph` instances
  • HITL integration: Pass an active `HITLManager` for human checkpoints
  • Benchmark evaluation: The `Evaluator` internally creates `WorkFlow` instances

Theoretical Basis

The execution engine follows a DAG traversal pattern:

# Abstract algorithm (not real implementation)
env = Environment()
while not graph.is_complete():
    task = scheduler.next_task(graph, env)
    if task is None:
        break
    for action in task.actions:
        agent = agent_manager.acquire(action.agent_name)
        result = agent.execute(action, env.get_all_data())
        env.update(task, result)
        agent_manager.release(agent.name)
output = env.extract_output(graph.output_names)

Key properties:

  • Data flow: Execution data flows between nodes via the Environment
  • Scheduling: A WorkFlowManager schedules tasks and actions within tasks
  • State tracking: Node statuses (pending, executing, completed) tracked in graph
  • Error handling: Failures captured in WorkflowResult with displayable errors
  • Reusability: Graph reset allows re-execution of the same WorkFlow instance

Related Pages

Implemented By

Page Connections

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