Principle:ANative Lab EvoAgentX Workflow Execution Engine
| 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
- Implementation:ANative_Lab_EvoAgentX_WorkFlow
- Implementation:ANative_Lab_EvoAgentX_WorkflowCorpus
- Implementation:ANative_Lab_EvoAgentX_InvestWorkflowFunctions
- Implementation:ANative_Lab_EvoAgentX_AsyncUtils
- Implementation:ANative_Lab_EvoAgentX_CoreInfrastructure
- Implementation:ANative_Lab_EvoAgentX_WorkflowExamples