Single Agent with Multiple Workers
A worker is a specialized agent designed to perform a narrowly defined task or skill, and act as a modular building block for supervisor and workflow agents. Each worker is configured with specific instructions and has access to the tools required to perform that role effectively. Workers don't make high-level decisions or independently orchestrate tasks; instead, they perform well-scoped operations with precision.
Workers are designed to operate as part of a single or multi-agent system, and not as standalone entities. Workers are typically embedded within supervisor or workflow agents that coordinate their usage. This includes deciding when and how to initiate workers, pass appropriate context, and integrate the output from the worker into the overall task operation.
For example, a supervisor agent, based on the problem context, might dynamically select and initiate workers in a non-deterministic manner. A workflow agent might call workers in a predefined, deterministic sequence. In both cases, workers remain task-focused and don't control the broader flow of operations.
In this pattern, a Benefits Advisor acts as a central agent, helping employees understand and make the most of their benefits packages. The agent coordinates several specialized workers to provide a personalized support for medical, dental, and vision coverage.
- The Benefits Advisor agent serves as the initial contact, helping the employee understand their benefits, and answers any preliminary questions.
- The Policy Information worker provides the employee with detailed information on available medical, dental, and vision benefits.
- The Personal Enrollment worker uses the employee’s enrollment details to offer tailored advice on how they can optimize their benefits package.
- The Eligibility and Assistance worker answers queries regarding eligibility, coverage, helping to resolve issues related to benefits.
