Implementation:ANative Lab EvoAgentX WorkflowExamples
Appearance
| 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
- Repository: EvoAgentX
- Azure Demo: examples/models/workflow_demo_lite_azure.py (L1-238)
- Invest Output: examples/output/invest/invest_demo_4o_mini.json (L1-401)
- Invest Demo: examples/workflow/invest/invest_demo_4o_mini.json (L1-490)
- Invest Demo v1: examples/workflow/invest/invest_demo_4o_mini_v1.json (L1-401)
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
- Principle:ANative_Lab_EvoAgentX_Workflow_Execution_Engine
- Principle:ANative_Lab_EvoAgentX_LLM_Configuration
Requires Environment
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment