mirror of
https://github.com/crewAIInc/crewAI.git
synced 2025-12-16 04:18:35 +00:00
Updated Collaboration and Delegation (markdown)
@@ -12,15 +12,8 @@ Collaboration is embedded in the DNA of CrewAI, enabling a dynamic and adaptive
|
||||
|
||||
## Delegation: Dividing to Conquer
|
||||
|
||||
Delegation is the process by which an agent assigns a task to another agent. In CrewAI, delegation is not just a feature; it's an intelligent decision-making process that enhances the crew's functionality.
|
||||
|
||||
### Delegation Strategies:
|
||||
|
||||
- **Skill-Based Assignment**: Tasks are delegated to agents with the most relevant skills, ensuring high efficiency and quality of outcomes.
|
||||
- **Load Balancing**: Tasks are distributed evenly among agents to prevent overburdening any single agent, promoting optimal workload management.
|
||||
- **Priority Handling**: Agents can prioritize tasks and delegate accordingly, ensuring that the most critical tasks are completed first.
|
||||
|
||||
Delegation is handled through a set of rules and protocols that all agents follow, enabling them to make autonomous decisions about who should do what and when.
|
||||
Delegation is the process by which an agent assigns a task to another agent, or just ask another agent, it's an intelligent decision-making process that enhances the crew's functionality.
|
||||
By default all agents can delegate work and ask questions, so if you want an agent to work alone make sure to set that option when initializing an Agent, this is useful to prevent deviations if the task is supposed to be straightforward.
|
||||
|
||||
## Implementing Collaboration and Delegation
|
||||
|
||||
@@ -28,13 +21,7 @@ When setting up your crew, you'll define the roles and capabilities of each agen
|
||||
|
||||
### Example Scenario:
|
||||
|
||||
Imagine a scenario where you have a researcher agent that gathers data and a writer agent that compiles reports. The researcher can autonomously delegate the writing task to the writer agent once the data collection is complete.
|
||||
|
||||
```python
|
||||
# Pseudocode for a delegation scenario
|
||||
if researcher.has_data():
|
||||
writer.take_over(task='Compile Report', data=researcher.data)
|
||||
```
|
||||
Imagine a scenario where you have a researcher agent that gathers data and a writer agent that compiles reports. The writer can autonomously ask question or delegate more in depth research work depending on its needs as it tries to complete its task.
|
||||
|
||||
## Conclusion
|
||||
|
||||
Reference in New Issue
Block a user