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

Implementation:ANative Lab EvoAgentX WorkflowCorpus

From Leeroopedia
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

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

Requires Environment

Page Connections

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