Create systems where AI agents can intelligently collaborate while keeping humans in control
Built on the principles of extensibility, intelligent context sharing, and human oversight, mahilo lets you build sophisticated multi-agent AI apps with ease.
Enable simultaneous interactions between multiple users and AI agents in a shared intelligent space.
Keep humans in control while AI agents handle complex interactions seamlessly.
Natural voice interactions powered by OpenAI's cutting-edge Realtime API.
AI agents that autonomously share context and information when needed.
Adapt and extend the framework for any collaborative AI use case.
Built with advanced agent communication patterns in mind.
Discover the diverse range of multi-agents apps that mahilo can help you create
Collaborative Content Creation
Critical Response Coordination
Real Estate Matchmaking
Collaborative Content Creation
Multi-player storytelling game where users create stories while AI agents intelligently blend narratives.
Use the BaseAgent class or create custom agent classes
Add agents to the AgentManager. Think of it as a team of agents
Create and run the AgentWebSocketServer
1from mahilo.agent import BaseAgent
2from mahilo.agent_manager import AgentManager
3from mahilo.server import ServerManager
4
5class BuyerAgent(BaseAgent):
6 def __init__(self, name, preferences):
7 super().__init__(
8 name=name,
9 description=PROMPT + preferences
10 )
11 ...
12
13buyer_agent = BuyerAgent(name="BuyerAgentJayesh", preferences="I'm looking for a house in Koramangala")
14seller_agent = BaseAgent(name="SellerAgent", description=SELLER_AGENT_PROMPT)
15
16# Create Agent Manager
17manager = AgentManager()
18manager.register_agent(seller_agent)
19manager.register_agent(buyer_agent)
20
21# initialize the server manager
22server = ServerManager(manager)
23# Start WebSocket Server
24server.run()
$ python client.py --agent-name buyer_agent
Connects to the mahilo WebSocket server for the buyer_agent and starts interaction