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 WorkflowExamples

From Leeroopedia
Knowledge Sources
Domains Examples, Workflows
Last Updated 2026-10-21 00:00 GMT

Overview

Concrete example scripts and output JSON files demonstrating workflow execution with LiteLLM/Azure and investment workflow generation.

Description

These example files demonstrate workflow setup, execution, and output:

  • workflow_demo_lite_azure.py (238 lines) — Complete workflow setup using `LiteLLM` configured for Azure OpenAI. Demonstrates the full pipeline from config to execution with Azure-hosted models.
  • examples/output/invest/invest_demo_4o_mini.json (401 lines) — Sample investment workflow output JSON using GPT-4o-mini. Contains generated workflow graph, agent configs, and execution results.
  • examples/workflow/invest/invest_demo_4o_mini.json (490 lines) — Complete workflow JSON with graph nodes, agent configs, and tool definitions for the investment analysis workflow.
  • examples/workflow/invest/invest_demo_4o_mini_v1.json (401 lines) — Earlier version of the investment workflow JSON configuration.
  • examples/workflow/invest/catl_data_functions.py (764 lines) — Duplicate of the corpus CATL data functions for workflow examples.
  • examples/workflow/invest/csv_to_llm_converter.py (341 lines) — Duplicate of the corpus CSV converter for workflow examples.
  • examples/workflow/invest/html_report_generator.py (1636 lines) — Duplicate of the corpus HTML report generator for workflow examples.
  • examples/workflow/invest/stock_chart_tools.py (541 lines) — Duplicate of the corpus stock chart tools for workflow examples.

Usage

  • Azure setup: Use `workflow_demo_lite_azure.py` as a template for Azure OpenAI workflow integration.
  • Workflow output: Study the `invest_demo_4o_mini.json` files to understand auto-generated workflow structure.
  • Investment examples: The `examples/workflow/invest/` files mirror the corpus investment workflow for standalone execution.

Code Reference

Source Location

Signature

# workflow_demo_lite_azure.py
from evoagentx.models.model_configs import LiteLLMConfig
from evoagentx.models.litellm_model import LiteLLM
from evoagentx.workflow.workflow import WorkFlow

# Configure LiteLLM for Azure OpenAI
config = LiteLLMConfig(model="azure/my-deployment", api_base="...", ...)
llm = LiteLLM(config)
# Build and execute workflow...

Import

from evoagentx.models.model_configs import LiteLLMConfig
from evoagentx.models.litellm_model import LiteLLM
from evoagentx.workflow.workflow_graph import WorkFlowGraph
from evoagentx.workflow.workflow import WorkFlow

I/O Contract

Inputs

Name Type Required Description
Azure config dict Yes Azure OpenAI endpoint, key, deployment
workflow.json JSON Yes Workflow graph definition

Outputs

Name Type Description
WorkflowResult str Workflow execution output
invest_demo.json JSON Auto-generated workflow structure

Usage Examples

Azure Workflow Demo

# python examples/models/workflow_demo_lite_azure.py
# Demonstrates complete workflow with Azure OpenAI via LiteLLM

Related Pages

Implements Principle

Requires Environment

Page Connections

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