Principle:ANative Lab EvoAgentX Automated Task Decomposition
| Knowledge Sources | |
|---|---|
| Domains | Planning, Workflow, Agents |
| Last Updated | 2026-10-21 00:00 GMT |
Overview
Technique for decomposing high-level natural language goals into structured multi-agent workflow graphs via LLM-driven task planning and agent generation.
Description
Automated Task Decomposition is the process of taking a natural language goal (e.g., "search arxiv for papers on LLM agents and write a summary") and automatically producing a workflow graph with sub-tasks, dependency edges, and agents. A TaskPlanner agent decomposes the goal into sub-tasks with inputs and outputs; edges are inferred from shared input/output names between tasks; an AgentGenerator creates agent configurations for each sub-task. This eliminates the need for manual workflow construction when the goal can be expressed in natural language.
Usage
Use this principle when you want to automatically generate multi-agent workflows from high-level goals without manually defining each task and agent. Use `WorkFlowGenerator.generate_workflow(goal)` to get a complete `WorkFlowGraph`. This is ideal for:
- Rapid prototyping of complex workflows
- Scenarios where the task structure depends on the goal content
- Integration with tools (tools are passed to generated agents)
Theoretical Basis
The decomposition pipeline follows a plan-then-generate approach:
# Abstract algorithm (not real implementation)
plan = task_planner.decompose(goal) # -> [SubTask(name, desc, inputs, outputs)]
edges = infer_edges(plan) # match output names to input names across tasks
graph = build_graph(goal, plan, edges)
for node in graph.nodes:
agent_config = agent_generator.generate(goal, node.description, tools)
node.set_agents([agent_config])
return graph
Key properties:
- Edge inference: Dependencies are inferred from shared input/output parameter names
- Retry logic: Each phase (planning, building, agent generation) has configurable retries
- Validation: The generated graph is validated for structure and agent completeness
- Agent reuse: Pre-existing agents can be passed to avoid regenerating