Implementation:ANative Lab EvoAgentX WorkflowCorpus
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Workflows, Examples |
| Last Updated | 2026-10-21 00:00 GMT |
Overview
Concrete workflow graph definitions for pre-built multi-agent workflows including Feng Shui consultation, investment analysis, recipe planning, Tetris game generation, and travel recommendation.
Description
The Wonderful_workflow_corpus directory contains pre-built `WorkFlowGraph` JSON definitions that can be loaded and executed by the EvoAgentX workflow engine. Each workflow defines a multi-node DAG with agents, inputs, outputs, and data-flow edges:
- Fengshui_analysis/workflow.json (343 lines) — Feng Shui consultation workflow with nodes for input analysis, issue identification, remedy recommendation, and summary generation. AI Feng Shui advisor providing personalized home consultation.
- invest/workflow.json (401 lines) — Investment analysis workflow with nodes for data loading, financial analysis, risk assessment, and report generation. Integrates custom Python functions for CATL stock analysis. Most complex corpus workflow.
- invest/workflow_windows.json (401 lines) — Windows-compatible variant of the investment workflow.
- recipe_meal_plan/workflow.json (419 lines) — Recipe and meal planning workflow with nodes for dietary preference analysis, recipe generation, meal plan creation, and shopping list production.
- tetris_game/workflow.json (388 lines) — Tetris game generation workflow with nodes for game design, code generation, testing, and refinement.
- travel_recommendation/workflow.json (450 lines) — Travel recommendation workflow with nodes for travel preference analysis, destination search, itinerary generation, and travel plan production.
Usage
- Load and execute: Use `WorkFlowGraph.from_file(path)` to load a corpus workflow and execute it with `WorkFlow`.
- Template reference: Use as templates for building custom multi-agent workflows.
- Testing: Use for testing the workflow execution engine without writing custom graphs.
Code Reference
Source Location
- Repository: EvoAgentX
- Fengshui: Wonderful_workflow_corpus/Fengshui_analysis/workflow.json
- Invest: Wonderful_workflow_corpus/invest/workflow.json
- Invest (Windows): Wonderful_workflow_corpus/invest/workflow_windows.json
- Recipe: Wonderful_workflow_corpus/recipe_meal_plan/workflow.json
- Tetris: Wonderful_workflow_corpus/tetris_game/workflow.json
- Travel: Wonderful_workflow_corpus/travel_recommendation/workflow.json
Signature
// workflow.json structure
{
"goal": "Natural language goal description",
"nodes": [
{
"name": "node_name",
"description": "What this node does",
"inputs": [{"name": "input_name", "type": "str", "description": "..."}],
"outputs": [{"name": "output_name", "type": "str", "description": "..."}],
"agents": [...] // agent config dicts
}
],
"edges": [
{"source": "node_a", "target": "node_b", "priority": 0}
]
}
Import
from evoagentx.workflow.workflow_graph import WorkFlowGraph
from evoagentx.workflow.workflow import WorkFlow
from evoagentx.agents.agent_manager import AgentManager
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| workflow.json | JSON file | Yes | WorkFlowGraph definition |
| inputs | dict | Yes | Runtime inputs matching workflow_inputs |
Outputs
| Name | Type | Description |
|---|---|---|
| WorkflowResult | str | Workflow execution result |
Usage Examples
Load and Execute a Corpus Workflow
from evoagentx.workflow.workflow_graph import WorkFlowGraph
from evoagentx.workflow.workflow import WorkFlow
from evoagentx.agents.agent_manager import AgentManager
from evoagentx.models.model_configs import OpenAILLMConfig
# 1. Load the investment workflow graph
graph = WorkFlowGraph.from_file(
"Wonderful_workflow_corpus/invest/workflow.json"
)
# 2. Configure LLM and agent manager
llm_config = OpenAILLMConfig(model="gpt-4o-mini", openai_key="sk-...")
agent_manager = AgentManager()
agent_manager.add_agents_from_workflow(graph, llm_config=llm_config)
# 3. Execute the workflow
llm = OpenAILLM(config=llm_config)
workflow = WorkFlow(graph=graph, llm=llm, agent_manager=agent_manager)
result = workflow.execute(inputs={"stock_symbol": "300750"})
print(result.result)
Related Pages
Implements Principle
- Principle:ANative_Lab_EvoAgentX_Workflow_Execution_Engine
- Principle:ANative_Lab_EvoAgentX_Automated_Task_Decomposition
Requires Environment
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment