Skip to main content

UnisonAI Multi-Agent Framework provides a flexible, light-weight experience and extensible environment for creating and coordinating multiple AI agents.

Project description

UnisonAI Banner

UnisonAI

GitHub stars

License: Apache 2.0

Python

LLM Support

Architecture


UnisonAI is a flexible Python framework to build and manage multiple AI agents—either solo or in clans. Each agent is powered by the LLM of your choice, with agent-to-agent (A2A) communication capabilities.

✨ Key Features

  • 🔗 Multi-LLM Support: OpenAI, Grok, Gemini, Cohere, Anthropic, and more

  • 🧩 Modular & Extensible: Add your own tools, logic, and models

  • 🤖 Single or Multi-Agent: Solo agents or collaborative Clan agents

  • ⛨️ Error Handling: Built-in retries and format repairs

  • 📃 Clear Docs & Examples: Easy to start and extend

  • Production Ready: Ideal for real-world automation & chatbots


🚀 Installation

pip install unisonai

Requires Python >=3.10 and <3.13


🧠 Core Concepts

Single_Agent

Run focused tasks with isolated agents using any LLM and tools.

Agent (for Clans)

A specialized agent that communicates and collaborates with others.

Clan

A group of agents working together with a manager and a shared goal.

Tool System

Add your own pluggable tools with parameters and logic.


🔧 Usage Example (Single Agent)

from unisonai import Single_Agent

from unisonai.llms import Gemini

from unisonai.tools.websearch import WebSearchTool

from unisonai import config



config.set_api_key("gemini", "your-api-key")



agent = Single_Agent(

  llm=Gemini(model="gemini-2.0-flash"),

  identity="Web Explorer",

  description="Agent to fetch stock prices",

  tools=[WebSearchTool],

  history_folder="history",

  output_file="output.txt"

)



agent.unleash(task="Get the current price of Apple stocks")

🗺 Usage Example (Clan Agent)

from unisonai import Agent, Clan

from unisonai.llms import Gemini

from unisonai.tools.websearch import WebSearchTool

from unisonai import config



config.set_api_key("gemini", "your-api-key")



planner = Agent(...)  # Define your clan leader agent



web_agent = Agent(...)

time_agent = Agent(...)



clan = Clan(

  clan_name="Travel Experts",

  manager=planner,

  members=[web_agent, time_agent],

  shared_instruction="Plan a 7-day budget trip in India",

  goal="Create an itinerary under 10,000 INR",

  history_folder="trip_history",

  output_file="trip_plan.txt"

)



clan.unleash()

🔑 API Key Setup

from unisonai import config

config.set_api_key("gemini", "your-gemini-key")

config.set_api_key("openai", "your-openai-key")

You can also use environment variables:

export GEMINI_API_KEY="your-key"

❓ FAQ

What is UnisonAI?

A multi-agent AI framework using your favorite LLMs.

Why Clans?

Break tasks into parts and assign agents to solve each collaboratively.

Can I use custom models/tools?

Yes! Just extend the BaseLLM or BaseTool classes.

Where are logs stored?

In the folder you define using history_folder.

What can I build?

Chatbots, planners, assistants, automation systems, and more.


👥 Contributors & License

License: Apache 2.0

GitHub: https://github.com/UnisonAIInc/UnisonAI


UnisonAI — Orchestrate the Future of Multi-Agent AI

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unisonai-0.4.tar.gz (37.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unisonai-0.4-py3-none-any.whl (41.7 kB view details)

Uploaded Python 3

File details

Details for the file unisonai-0.4.tar.gz.

File metadata

  • Download URL: unisonai-0.4.tar.gz
  • Upload date:
  • Size: 37.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for unisonai-0.4.tar.gz
Algorithm Hash digest
SHA256 0003c589d62794be99331886602020350b7f418c0a8460a952ebb155ed89cb48
MD5 147347306c49090f1cfad9d6e7be6763
BLAKE2b-256 0ad853a2ff4905494abb22327ea5c4def1ffe4585427fefaf455e679e11c5086

See more details on using hashes here.

File details

Details for the file unisonai-0.4-py3-none-any.whl.

File metadata

  • Download URL: unisonai-0.4-py3-none-any.whl
  • Upload date:
  • Size: 41.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for unisonai-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9f5c72197a59ee9eafbad9aee1881c833d4466990ed2264ec096bcb8c3cf0e70
MD5 7336471f4675fd16c62ed43cb47f80af
BLAKE2b-256 78a84511dc81cf1afa76b6f4f70c45e16e3a785da1c5847c54f512863122bf38

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page