Manager Agent
Manager Agent in Lyzr Agents
Overview
The Manager Agent architecture in Lyzr allows for modular, composable workflows where one agent (the manager) can coordinate and delegate tasks to multiple other specialized agents (called managed agents). This enables powerful, flexible automation where complex multi-step operations can be executed efficiently by splitting responsibilities between agents.
For example, in a fitness assistant setup:
- The main agent provides personalized fitness advice.
- A managed agent like
Mail Generator
can take the generated diet plan or fitness routine and email it to the user.
How It Works
Structure in Agent JSON
In the agent JSON configuration, the managed_agents
field is used to declare and reference one or more agents that the main agent can call to perform specific sub-tasks.
Fields Breakdown
Field | Type | Description |
---|---|---|
id | string | Unique identifier of the managed agent (retrieved from the Lyzr Agent database). |
name | string | Human-readable name of the agent for referencing and understanding purpose. |
usage_description | string | Description of how and when to invoke this agent. Acts as a system-level guide to help orchestrate agent responsibilities. |