Hello, community!
I am working on creating a system similar to the one implemented in the n8n service, and I would like to get advice on developing a module that will include several multi-agents.
System Description:
My goal is to create a manager agent that will accept requests from users and determine which functions and tools need to be used for processing them. For example, these could include:
-
Performing calculations using a calculator
-
Making API requests to retrieve data
-
Sending emails or creating documents using third-party APIs
What I Want to Implement:
-
Manager Agent: The main agent that will receive requests from users and route them to the appropriate sub-agents for specific tasks.
-
Sub-Agents: These agents will perform specific functions, such as:
-
Processing text requests
-
Performing mathematical calculations
-
Interacting with external APIs to retrieve or send data
- Interaction Structure: I want to understand how to organize the interaction between the manager agent and the sub-agents. How can I properly pass requests and data between them to ensure efficient task execution?
Example Use Case:
I envision that a user might ask a question like, “Create a document with the sales report.” The manager agent should:
-
Determine that a sub-agent for document creation is needed to fulfill this request.
-
Gather the necessary data using other sub-agents (e.g., to retrieve sales information via an API).
-
Return the final response to the user, such as sending the document via email.
Questions:
-
What is the best way to organize the architecture of such a system?
-
What tools and technologies would you recommend for implementing a multi-agent system like this?
-
Are there any examples or resources that could help me in the development?
I would appreciate any advice and ideas!
Thank you!