Master-Slave
Problem: How do you delegate subtasks and coordinate their execution?
Context: You decide to partition a task to increase reliability, performance or accuracy.
Solution:
- The master agent divides the task into subtasks, delegates the subtasks to slave agents and computes a final result from the partial results returned.
- The master agent creates a slave agent for each subtask and dispatches it. The master can continue its work in parallel with its slaves.