Coder Social home page Coder Social logo

agentcy's Introduction

Agentcy: Multi-Agent Collaboration with AutoGen

This code demonstrates the power of multi-agent collaboration using the AutoGen library. Instead of relying on a single agent to handle tasks, multiple specialized agents work together, each bringing its expertise to the table.

๐Ÿ“– Overview

The code sets up a collaborative environment where multiple agents, each with its unique role and expertise, come together to discuss, plan, and execute tasks. This collaboration ensures that different aspects of a task are handled by the most qualified agent, leading to more efficient and accurate outcomes.

๐Ÿ•ต๐Ÿฝ Agents

The agents involved in the collaboration include:

  1. Agency Researcher: Conducts research on user pain points, market opportunities, and prevailing market conditions.
  2. Writing Assistant: Utilizes research and content writing functions to generate content.
  3. Agency Strategist: Drafts strategic briefs for effective brand positioning in the market.
  4. Agency Copywriter: Crafts compelling narratives and messages that align with the brand's strategy.
  5. Agency Media Planner: Identifies the best mix of media channels for advertising.
  6. Agency Marketer: Transforms strategy and insights into marketable ideas.
  7. Agency Manager: Oversees the entire project lifecycle.
  8. Agency Director: Guides the creative vision of the project.
  9. User Proxy: Acts as an intermediary between the human user and the agents.

(Note: Some agents from the original list like Designer and Account Manager were commented out in the provided code updates.)

๐Ÿค Collaboration Flow

  1. The GroupChat class establishes a collaborative environment for agent communication.
  2. The GroupChatManager oversees group chat, ensuring smooth agent interaction.
  3. The initiate_chat method kickstarts the collaboration process.

โš™๏ธ Setup & Configuration

  1. Ensure required libraries are installed:
pip install pyautogen
  1. Set up the OpenAI configuration list by either providing an environment variable OAI_CONFIG_LIST or specifying a file path.
[
    {
        "model": "gpt-3.5-turbo", #or whatever model you prefer
        "api_key": "INSERT_HERE"
    }
]
  1. Setup api keys in .env:
OPENAI_API_KEY="XXX"
SERPAPI_API_KEY="XXX"
SERPER_API_KEY="XXX"
BROWSERLESS_API_KEY="XXX"
  1. Launch in CLI:
python3 main.py

โฏ๏ธ Conclusion

In the realm of creative agencies, the multi-agent collaboration approach revolutionizes the way projects are handled. By tapping into the distinct expertise of various agency roles, from strategists to media planners, we can guarantee that each facet of a project is managed by those best suited for the task. This methodology not only ensures precision and efficiency but also showcases its versatility, as it can be tailored to suit diverse project requirements, whether it's brand positioning, content creation, or any other creative endeavor.

Credit to Jason Zhou's RAG example.

๐Ÿ“ˆ Roadmap

  1. Refine workflow and data pass through to agents
  2. Reduce unnecessaery back and forth
  3. Save files to local folder
  4. Implement other agents, see commented out agents
  5. Create and train fine-tuned agents for each domain specific task

๐Ÿ“ License

MIT License. See LICENSE for more information.

agentcy's People

Contributors

amadad avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.