Skip to content

Swarm Agency πŸ€–πŸŒ: Build a team of autonomous AI agents 🧠 that work together like a swarm 🐝 to handle tasks in real-time. These agents will self-organize, collaborate, and adapt to various challenges πŸ’Ό. Applications include automated decision-making πŸ“Š, operations management βš™οΈ, and task delegation πŸ—‚οΈ.

License

Notifications You must be signed in to change notification settings

HasanulRafi/Autonomous-AI-Agency-Swarms

Repository files navigation

Here's a rewritten project description for Swarm Agency based on your concept and framework:


🐝 Swarm Agency

Framework

Overview

Swarm Agency is an evolved concept where autonomous AI agents collaborate seamlessly within a dynamic ecosystem. Initially inspired by Arsenii Shatokhin’s (aka VRSEN) AI Agency automation effort, we’ve rebuilt the framework to allow you to effortlessly create your own swarm of specialized agentsβ€”each with unique roles, skills, and tools. This approach makes automating tasks through AI more intuitive by defining roles like a virtual assistant, developer, and CEO, making collaboration fluid across agents.

Whether you're looking to optimize business operations, manage a team of virtual assistants, or create complex automated workflows, Swarm Agency lets you configure agents that communicate and collaborate to get tasks done efficiently. Get started with a fully deployable, customizable AI agency swarm!

Open in Colab
Docs
Subscribe on YouTube
Follow on Twitter
Join our Discord!
Agents-as-a-Service


Key Features

  • Customizable Agent Roles: Tailor agents to specific roles like CEO, virtual assistant, or developer with complete functionality customization using the Assistants API.
  • Full Control Over Prompts: Freedom to customize prompts without constraints, allowing full adaptability for complex tasks.
  • Tool Creation: Build tools that integrate smoothly with your agents using Instructor for auto type-validation and easy interface setup.
  • Efficient Communication: Built-in messaging system ensures seamless interaction between agents for optimal collaboration.
  • State Management: Track and manage the state of your agents automatically with settings.json, ensuring smooth task execution and minimal downtime.
  • Production-Ready: Designed to scale with your business needs and deploy in real-world environments.

Installation

pip install -U agency-swarm

Getting Started

  1. Set Your OpenAI Key:

    from agency_swarm import set_openai_key
    set_openai_key("YOUR_API_KEY")
  2. Create Custom Tools: Define custom tools with Instructor:

    from agency_swarm.tools import BaseTool
    from pydantic import Field
    
    class MyCustomTool(BaseTool):
        # Define fields and logic for your custom tool here
        example_field: str = Field(..., description="Description of the example field")
    
        def run(self):
            # Implement your tool's logic
            do_something(self.example_field)
            return "Result of MyCustomTool operation"
  3. Define Agent Roles: Create specialized agents like CEO or developer, each with its set of instructions and tools.

    from agency_swarm import Agent
    
    ceo = Agent(name="CEO", description="Task manager and decision maker.")
  4. Define Agency Communication: Set up how agents will communicate and collaborate across different roles.

    from agency_swarm import Agency
    agency = Agency([ceo, developer, assistant], shared_instructions='agency_manifesto.md')

Future Enhancements

  • Autonomous agency creation.
  • Asynchronous communication.
  • Inter-agency communication to create self-expanding systems.

Contributing

For details on how to contribute to the Swarm Agency, check out our Contributing Guide.


License

Swarm Agency is open-source and licensed under the MIT.


Need Help?

For custom AI swarm setup, consult our Agents-as-a-Service subscription or schedule a consultation at Calendly.


This version is designed to showcase the features and capabilities of the Swarm Agency with a clear emphasis on its role as an advanced, modular AI framework. It also highlights that this is a rebirth of an idea, integrating ease of customization, collaboration, and efficiency. Let me know if you'd like to refine it further! 😊

About

Swarm Agency πŸ€–πŸŒ: Build a team of autonomous AI agents 🧠 that work together like a swarm 🐝 to handle tasks in real-time. These agents will self-organize, collaborate, and adapt to various challenges πŸ’Ό. Applications include automated decision-making πŸ“Š, operations management βš™οΈ, and task delegation πŸ—‚οΈ.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published