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 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 = 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.9.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.9-py3-none-any.whl (52.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: unisonai-0.9.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.9.tar.gz
Algorithm Hash digest
SHA256 aa12d06c99a8b2bf48c6d627a905df1e448822ff69a11704c180ff6a71d77c4d
MD5 fa3b01c66e6f4f8936847ccc5dbf50ac
BLAKE2b-256 ac7683dacbd010db4dadb85eb146b785f07b435855737a18ffedddd38557e97a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unisonai-0.9-py3-none-any.whl
  • Upload date:
  • Size: 52.0 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 70c3cc733a870e9b803547539447f5fd0b23e6c83a00bb4b95b9e3f7b4039dbf
MD5 1a8652efd6c5d66d93c53d2d26b4cba4
BLAKE2b-256 7e4f8bd8e75643f93ceb3a1ec70c1a9aeb68c3b2f174a0e574e655c4c802d000

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