Skip to main content

Evi - Multi-Agent Framework Generator

Evi is a flexible, modular code generator for multi-agent systems that supports multiple agent frameworks (CrewAI, LangGraph, ReAct) and LLM providers (OpenAI, Gemini).

Features

  • Multiple Agent Frameworks

    • CrewAI - Create agent crews with specialized roles and tasks
    • LangGraph - Create agent workflows using directed graphs
    • ReAct - Build agents using the Reasoning+Acting pattern
  • Multiple LLM Providers

    • OpenAI (GPT-3.5, GPT-4)
    • Google Gemini (Pro, Pro Vision)
  • Dual Interfaces

    • Command-line interface (CLI) for scripting and automation
    • Streamlit web interface with visualization and interactive controls
  • Modular, Pluggable Architecture

    • Easily extend with new providers or frameworks
    • Customizable templates using Jinja2
  • Advanced Features

    • Multiple output formats (Python code or JSON configuration)
    • Agent workflow visualization
    • Configurable model parameters

Installation

Basic Installation

pip install evi

With GUI Support

pip install evi[streamlit]

With Framework-Specific Dependencies

pip install evi[crewai]  # For CrewAI support
pip install evi[langgraph]  # For LangGraph support
pip install evi[react]  # For ReAct support

Full Installation

pip install evi[all]

For Development

pip install evi[dev]

Usage

Command-Line Interface

# Generate CrewAI code using OpenAI
evi --prompt "Create a team of researchers to analyze climate data" --framework crewai --provider openai

# Generate LangGraph configuration using Gemini
evi --prompt "Create a customer service workflow" --framework langgraph --provider gemini --output json

# Save output to a file
evi --prompt "Create a team of researchers to analyze climate data" --output-file my_agents.py

Streamlit Interface

# Launch the Streamlit web interface
evi-gui

Python API

from evi.core import EviGenerator

# Create a generator instance
generator = EviGenerator(provider="openai", framework="crewai")

# Generate code from a prompt
code = generator.generate(
    "Create a research team with three agents that analyze financial data",
    output_format="code"
)

# Generate JSON configuration
config = generator.generate(
    "Create a research team with three agents that analyze financial data",
    output_format="json"
)

# Print or save the generated code
print(code)
with open("my_agents.py", "w") as f:
    f.write(code)

API Key Configuration

Evi requires API keys for accessing LLM providers:

Environment Variables

# For OpenAI
export OPENAI_API_KEY=your_api_key_here

# For Gemini
export GEMINI_API_KEY=your_api_key_here

Using .env File

Create a .env file in your project directory:

OPENAI_API_KEY=your_api_key_here
GEMINI_API_KEY=your_api_key_here

Then in your Python code:

from dotenv import load_dotenv

load_dotenv()  # This loads the .env file

Framework-Specific Examples

CrewAI Example

from evi.core import EviGenerator

prompt = """
Create a research crew with two agents:
1. A data collector that finds information online
2. An analyst that summarizes and provides insights
The crew should analyze recent developments in quantum computing.
"""

generator = EviGenerator(provider="openai", framework="crewai")
code = generator.generate(prompt, output_format="code")

# Save the generated code
with open("quantum_research_crew.py", "w") as f:
    f.write(code)

LangGraph Example

from evi.core import EviGenerator

prompt = """
Create a customer support workflow that:
1. Classifies the initial customer query
2. Routes to either technical support or billing department
3. Generates a response based on the department's knowledge base
"""

generator = EviGenerator(provider="openai", framework="langgraph")
code = generator.generate(prompt, output_format="code")

# Save the generated code
with open("customer_support_workflow.py", "w") as f:
    f.write(code)

ReAct Example

from evi.core import EviGenerator

prompt = """
Create a reasoning agent that can:
1. Answer questions about physics
2. Break down complex problems into steps
3. Generate analogies to explain difficult concepts
"""

generator = EviGenerator(provider="gemini", framework="react")
code = generator.generate(prompt, output_format="code")

# Save the generated code
with open("physics_tutor_agent.py", "w") as f:
    f.write(code)

Architecture

Evi is built with a modular, pluggable architecture:

  • Core: Central controller that orchestrates the generation process
  • Providers: Interfaces to LLM providers (OpenAI, Gemini)
  • Frameworks: Handlers for different agent frameworks (CrewAI, LangGraph, ReAct)
  • Templates: Jinja2 templates for code generation

This architecture makes it easy to extend Evi with new providers or frameworks by implementing the appropriate interfaces.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details on how to contribute to Evi.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for evi-ai 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for evi-ai 0.1.0
File Size Uploaded Provenance Actions
evi_ai-0.1.0.tar.gz 18.6 kB Without provenance Details for evi_ai-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for evi-ai 0.1.0
File Interpreter ABI Platform Actions
evi_ai-0.1.0-py3-none-any.whl Python 3 none any Details for evi_ai-0.1.0-py3-none-any.whl

Total release size: 47.9 kB

Release files / evi_ai-0.1.0.tar.gz

Download URL evi_ai-0.1.0.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4c5ea46be6f56aed8890620e07b277baab415701bd619ee1de72efadd22a9dff
BLAKE2b-256 checksum
How to use checksums
d4c80f5a72a01a91f7e2ba342b509970d2d380ca917c6a7fd789614b4fc2827f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / evi_ai-0.1.0-py3-none-any.whl

Download URL evi_ai-0.1.0-py3-none-any.whl
Size 29.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ea1d39f90ce59965318ae5147590c107f89437080fb4f46282115a4bb797630
BLAKE2b-256 checksum
How to use checksums
5844e20711f5891d09fe9ba0a68979d07c4bfc97160c46a08045c939645050ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Security for evi-ai 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page