Key Modules
Societies
Collaborative agent frameworks in CAMEL: autonomous social behaviors, role-based task solving, and turn-based agent societies.
The society module simulates agent social behaviors and collaborative workflows.
It powers autonomous, multi-role agents that can plan, debate, critique, and solve tasks together, minimizing human intervention while maximizing alignment with your goals.
Society Concepts: How Do AI Agents Interact?
Task: An objective or idea, given as a simple prompt.
AI User: The role responsible for providing instructions or challenges.
AI Assistant: The role tasked with generating solutions, plans, or step-by-step responses.
Critic (optional): An agent that reviews or critiques the assistant’s responses for quality control.
RolePlaying
Turn-based, prompt-engineered, zero-role-flip agent collaboration.
- Guards against role-flipping, infinite loops, vague responses
- Structured, strict turn-taking—user and assistant never switch
- Supports optional task planners, critics, and meta-reasoning
- Every message follows a system-enforced structure
Built-in Prompt Rules:
- Never forget you are
<ASSISTANT_ROLE>
, I am<USER_ROLE>
- Never flip roles or instruct me
- Decline impossible or unsafe requests, explain why
- Always answer as:
Solution: <YOUR_SOLUTION>
- Always end with:
Next request.
🧩 RolePlaying Attributes
Get Started: RolePlaying in Action
Example: Turn-based multi-agent chat with custom roles and live output colors.