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.6.tar.gz (45.4 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.6-py3-none-any.whl (52.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for unisonai-0.6.tar.gz
Algorithm Hash digest
SHA256 3126dd4993f5cc6d283bd3598bf19ac9fb683915655b0cbedc485d619bb4afaf
MD5 0735028432d0348f9510492baf7a1ede
BLAKE2b-256 99e676c601ec9b35b3bfbe2571bb099e26a31b668c6e99ab3738b5449611c03d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unisonai-0.6-py3-none-any.whl
  • Upload date:
  • Size: 52.3 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4fd928034a9ef9e3b04b5e08e5a8e6d8efb4d788c13acb71a435bea12b21e555
MD5 cea8aca1badcc7d809bcbb06e74fd8c4
BLAKE2b-256 0287dbf8791781bc25cf0d16e5e9e5460f28264f9bcaaecd8c027b741861474f

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