Skip to main content

AUTOMA-AI - Autonomous Multi-Agent Network (Formerly BEM-AI)

AUTOMA-AI is an open-source framework for building production-ready AI agents powered by modern language models such as Gemini, ChatGPT, and Claude.

It provides a structured way to turn LLMs from simple chat interfaces into task-oriented agents that can plan, reason, and interact with external systems. Out of the box, AUTOMA-AI equips agents with capabilities such as:

  • Tool and API integration (via MCP or AUTOMA-AI tool interface)
  • Retrieval pipelines for grounding responses in data
  • Memory systems for session and long-term context
  • Skills and workflows for structured task execution
  • Multi-agent orchestration for complex problem-solving

AUTOMA-AI is designed with real-world deployment in mind. It supports AWS-based architectures and integrates with major cloud services, enabling teams to move from prototype to production quickly.

Under the hood, the framework builds on emerging standards like Google’s A2A (Agent-to-Agent) and Anthropic’s MCP (Model Context Protocol), and leverages ecosystems such as LangChain and modern orchestration patterns to coordinate agents in engineering workflows.

Ready to use automa-ai? do:

pip install automa-ai

Wanna start a AI development with automa-ai? Don't miss the sim_chat_stream_demo example to help you bootstrap an AI chatbot.

NOTE: BEM-AI has moved to an example folder: bem-ai

⚠️ Project Status

This project is in its early development phase and is considered highly unstable. APIs, interfaces, and core functionality are subject to significant changes. Use for development and experimentation only.

🚀 Overview

AUTOMA-AI creates a distributed multi-agent system that enables intelligent agents to communicate, collaborate, and coordinate using industry-standard protocols. The system leverages:

  • Google A2A Protocol: For agent-to-agent communication
  • Anthropic MCP Protocol: For model context management
  • LangChain / LangGraph: For LLM-based agent orchestration and workflow management
  • Google GenAI: For AI model integration

🛠️ Technology Stack

Core Dependencies

  • LangChain / LangGraph: Agent framework and orchestration
  • Google GenAI: AI model integration
  • Google A2A: Agent-to-agent communication protocol
  • Anthropic MCP: Model context protocol implementation

Development Tools

  • uv: Modern Python package management
  • Python 3.12: Runtime environment

📁 Project Structure

BEM-AI/
├── examples/                           # Example engineering applications built with the foundational framework
├── automa_ai/
│   ├── agent_test/                     # Test implementations and examples
│   ├── agents/                         # Generic agent classes
│   │   ├── react_langgraph_agent.py    # langchain/langgraph based agent
│   │   ├── agent_factor.py             # Agent factory - recommend utility to initialize an agent
│   │   ├── orchestrator_agent.py       # An agent that orchestrates the task workflow
│   │   └── adk_agent.py                # Google ADK based agent
│   ├── client/                         # Under development
│   ├── mcp_servers/                    # MCP library
│   ├── network/                        # Network
│   ├── common/                         # Common utilities
│   └── prompts/                        # Shared prompt templates
├── pyproject.toml                      # Project configuration
├── uv.lock                             # Dependency lock file
└── README.md                           # This file

🔧 Installation

We recommend install AUTOMA-AI through PYPI:

pip install automa-ai

This will install all packages needed under automa_ai folder.

Prerequisites

  • Python 3.12+
  • uv package manager

Setup

  1. Clone the repository

    git clone <repository-url>
    cd bem-ai
    
  2. Install dependencies using uv

    uv sync
    
  3. Activate the virtual environment

    uv shell
    

🧪 Running Tests

TBD

🏗️ Architecture

System Architecture
  • Orchestrator: Assemble workflow, access agent card storage
  • Task Memory: Task memory including shared blackboard and conversation history
  • Planner: A planner agent
  • Summary: A summary agent
  • Specialized agents: Domain specific agents
  • Agent Card Service: A RAG pipeline stores agent cards
  • Tool and Resources: External tool and resource access through MCPs

📝 Configuration

Project configuration is managed through pyproject.toml. Key configuration areas include:

  • Dependencies: Core and development packages
  • Build System: uv-based build configuration
  • Project Metadata: Version, description, and author information
  • Optional: optional packages to use for UI integration and running examples.

Default tools configuration

You can enable built-in tools directly from config using a tools list.

tools:
  - type: web_search
    config:
      provider: auto
      serper:
        api_key: ${SERPER_API_KEY}
      firecrawl:
        api_key: ${FIRECRAWL_API_KEY}
      scrape:
        enabled: true
        max_pages: 5
      rerank:
        provider: opensource
        top_k: 5
  - type: run_python
    config:
      runner: local_subprocess
      timeout_s: 20
      workspace_root: .
      allow_network: false  # Import-policy toggle only; not runtime network isolation.

Then pass this to AgentFactory(..., tools_config=tools) for LANGGRAPHCHAT agents. See docs/tools.md, examples/web_search_demo.py, and examples/run_python_demo.py for runnable examples.

Checkpointer configuration

LANGGRAPHCHAT agents can also be configured with an explicit checkpointer backend through AgentFactory. The default backend is in-memory. Redis is opt-in and requires a connection URL.

There are two Redis backends:

  • redis_plain: Uses only core Redis commands. Choose this for standard Redis-compatible deployments, including typical Amazon ElastiCache deployments that do not expose RediSearch and RedisJSON.
  • redis_stack: Uses LangGraph's Redis saver and requires both RediSearch and RedisJSON support. Choose this only when your Redis deployment supports commands such as FT._LIST and JSON.GET.

Use type: default to force the in-memory saver explicitly.

redis_plain

checkpointer:
  type: redis_plain
  redis_url: redis://localhost:6379

redis_plain is intended for deployments where you want Redis-backed checkpoint persistence without Redis module dependencies. This is the safest choice for plain ElastiCache Redis/Valkey deployments.

redis_stack

checkpointer:
  type: redis_stack
  redis_url: redis://localhost:6379

Then pass this to AgentFactory(..., checkpointer_config=checkpointer).

At startup, AUTOMA-AI validates that the configured Redis server supports:

  • FT._LIST for RediSearch
  • JSON.GET for RedisJSON

If either command is unavailable, startup fails with a clear error and tells you to switch to redis_plain.

Choosing the backend

  • Choose redis_plain when your deployment target is standard Redis or ElastiCache and you do not specifically need Redis Stack modules.
  • Choose redis_stack only when the Redis service is known to support RediSearch and RedisJSON.
  • Do not use the old ambiguous redis label. The backend must be selected explicitly.

A2A Server Configuration

Base Path

You can mount an A2A agent server under a URL prefix by passing base_url_path to A2AAgentServer. This is useful when serving behind a reverse proxy or when you want a dedicated path segment for the agent.

from automa_ai.common.agent_registry import A2AAgentServer

chatbot_a2a = A2AAgentServer(chatbot, public_agent_card, base_url_path="/permit")

Notes:

  • Include a trailing slash in client URLs to avoid 307 redirects (SSE does not follow redirects): e.g.,
SimpleClient(agent_url=f"{A2A_SERVER_URL}/permit/")

Health Check Endpoint

Every A2A server automatically includes a health check endpoint that returns the agent's status. By default, it's available at /health, but you can customize the path:

chatbot_a2a = A2AAgentServer(
    chatbot, 
    public_agent_card, 
    health_check_path="/status"
)

The health check returns a JSON response:

{
  "status": "healthy",
  "agent": "Your Agent Name"
}

The status is "healthy" when the agent is initialized and ready, or "unhealthy" during startup.

Retriever configuration

Automa-AI retrieval uses a provider-based spec (by name or dotted import path). Registry names must be registered with register_retriever_provider(...), and only the embedding section is standardized; retrieval_provider_config is passed through to the selected provider.

Registered provider (registry name)

retriever:
  enabled: true
  provider: "helpdesk_chroma"
  top_k: 6
  embedding:
    provider: "ollama"
    model: "nomic-embed-text"
    api_key: null
    base_url: "http://localhost:11434"
    extra: {}
  retrieval_provider_config:
    db_path: "/data/chroma"
    collection_name: "my_collection"

Custom provider (dotted import path)

retriever:
  enabled: true
  impl: "my_project.retrieval:MyRetrieverProvider"
  top_k: 10
  embedding:
    provider: "openai"
    model: "text-embedding-3-large"
    api_key: "${OPENAI_API_KEY}"
    base_url: null
    extra:
      dimensions: 3072
  retrieval_provider_config:
    index_name: "prod-index"
    namespace: "tenant-a"
    pinecone_api_key: "${PINECONE_API_KEY}"
    pinecone_env: "us-west-2"

Examples

Single Agent Chatbot with Streamlit UI interface

This example demonstrates the use of automa-ai for creating a live-streaming chatbot. The example uses QWEN3:4B as the language model and a sample MCP server is built to connect with the agent, demonstrating the capabilities of streaming and tool calling using a single chat bot. See README

Simple BEM typical building Network

This example is the prototype of BEM-AI, which consists of multiple agents collaboratively completing a building energy modeling task together. See README

EnergyPlus Chatbot with EnergyPlus MCP server

This example shows automa-ai integrates with EnergyPlus MCP, developed by LBNL. See README

🔍 Development Guidelines

Code Organization

TBD

Dependency Management

  • Use uv add <package> to add new dependencies
  • Update uv.lock with uv lock after dependency changes
  • Keep dependencies minimal and focused

Testing Strategy

TBD

🤝 Contributing

TBD

📄 License

see LICENSE


Note: This project is experimental and under active development. Use in production environments is not recommended at this time.

📚 Citation

If you use this framework in your research or projects, please cite the following paper:

@article{xu5447218development,
  title={Development of a dynamic multi-agent network for building energy modeling: A case study towards scalable and autonomous energy modeling},
  author={Xu, Weili and Wan, Hanlong and Antonopoulos, Chrissi and Goel, Supriya},
  journal={Available at SSRN 5447218}
}

Metadata

Release files for automa_ai 0.6.2

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

Source distribution (sdist)

Source distribution for automa_ai 0.6.2
File Size Uploaded Provenance Actions
automa_ai-0.6.2.tar.gz 2.5 MB Without provenance Details for automa_ai-0.6.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for automa_ai 0.6.2
File Interpreter ABI Platform Actions
automa_ai-0.6.2-py3-none-any.whl Python 3 none any Details for automa_ai-0.6.2-py3-none-any.whl

Total release size: 2.7 MB

Release files / automa_ai-0.6.2.tar.gz

Download URL automa_ai-0.6.2.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
1aef10a501565be52916b8c7374d7983ab83c248b87797b66072c2d06f846da0
BLAKE2b-256 checksum
How to use checksums
729a378a09dcab84c1c4da0da87a3bf5f17ae840d9293ab8cc2eba5cb6814a0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / automa_ai-0.6.2-py3-none-any.whl

Download URL automa_ai-0.6.2-py3-none-any.whl
Size 174.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82b8a94c936be039603ee471e125bfb48a673c9c4b5af1fa23ce799b569a1310
BLAKE2b-256 checksum
How to use checksums
db24652bddf08e922ca63dcfd04b1887d607e6aabd29e744f5698ef2a703e76c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for automa_ai 0.6.2

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.6.2 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