This notebook demonstrates how to set up and leverage CAMELβs ability to create your first agent society through
RolePlaying()
class.
In this notebook, youβll explore:
- CAMEL: A powerful multi-agent framework that enables Retrieval-Augmented Generation and multi-agent role-playing scenarios, allowing for sophisticated AI-driven tasks.
- Agent Society: Enabling multi-agent communication for the task solving.
Philosophical Bits
What magical trick makes us intelligent? The trick is that there is no trick. The power of intelligence stems from our vast diversity, not from any single, perfect principle. β Marvin Minsky, The Society of Mind, p. 308In this section, we will take a spite of the task-oriented
RolePlaying()
class. We design this in an instruction-following manner. The essence is that to solve a complex task, you can enable two communicative agents collaboratively working together step by step to reach solutions. The main concepts include:
- Task: a task can be as simple as an idea, initialized by an inception prompt.
- AI User: the agent who is expected to provide instructions.
- AI Assistant: the agent who is expected to respond with solutions that fulfills the instructions.
π¦ Installation
π Setting Up API Keys
Youβll need to set up your API keys for OpenAI.Quick Start
πΉ Step 1: Configure the Role-Playing Session
Set the Task
Arguments
Set the User
Arguments
You may think the user as the instruction sender
.
Set the Assistant
Arguments
Again, you may think the assistant as the instruction executor
.
Step 2: Kickstart Your Society
Putting them altogether β your role-playing session is ready to go!Step 3: Solving Tasks with Your Society
Hold your bytes. Prior to our travel, letβs define a small helper function.π Highlights
In this notebook, This notebook has guided you through setting up and use agent society for task solving. Key tools utilized in this notebook include:- CAMEL: A powerful multi-agent framework that enables Retrieval-Augmented Generation and multi-agent role-playing scenarios, allowing for sophisticated AI-driven tasks.
- Agent Society: Enabling multi-agent communication for the task solving.
- π« Creating Your First CAMEL Agent free Colab
- Graph RAG Cookbook free Colab
- π§ββοΈ Create A Hackathon Judge Committee with Workforce free Colab
- π₯ 3 ways to ingest data from websites with Firecrawl & CAMEL free Colab
- π¦₯ Agentic SFT Data Generation with CAMEL and Mistral Models, Fine-Tuned with Unsloth free Colab