What is a Task in CAMEL?
A task in CAMEL is a structured assignment that can be given to one or more agents. Tasks are higher-level than prompts and managed by modules like the Planner and Workforce.
Key ideas:
- Tasks can be collaborative, requiring multiple agents.
- Tasks can be decomposed into subtasks or evolved over time.
Task Attributes
Task Methods
Getting Started: Creating Tasks
Defining a task is simple: specify its content and a unique ID.
Hierarchical Tasks Example
You can build nested, hierarchical tasks using subtasks. Here’s an example:
Decomposing and Composing a Task
You can break down (decompose) a task into smaller subtasks, or compose the results from subtasks. Typically, you define an agent, prompt template, and response parser.TaskManager
TaskManager Overview
The TaskManager class helps you manage, sort, and evolve tasks—handling dependencies and progression automatically.
Conclusion
CAMEL offers a powerful, structured approach to task management. With support for task decomposition, composition, and deep hierarchies, you can automate everything from simple workflows to complex, multi-agent projects. Efficient, collaborative, and easy to integrate—this is next-level task orchestration for AI.