Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Multi-agent Workers don't access Supervisor instructions #3512

Open
taras-svystun opened this issue Nov 14, 2024 · 2 comments
Open

[BUG] Multi-agent Workers don't access Supervisor instructions #3512

taras-svystun opened this issue Nov 14, 2024 · 2 comments
Labels
question Further information is requested

Comments

@taras-svystun
Copy link

taras-svystun commented Nov 14, 2024

Describe the bug

In a multi-agent setup using agentflow, the workers rely solely on chat history and do not access Supervisor instructions.

To Reproduce

Refer to the attached agentflow, which consists of a simple multi-agent system: one worker (dishes_browser_agent) displays dishes, while another (make_order_agent) handles orders.
image

Expected behavior

When a user enters a query such as "I want something Jamaican/Canadian/etc.," the Supervisor directs the dishes_browser worker, which generates three relevant dishes.

For a specific case:
If the user input is "I want something Italian," it should be interpreted as a request for Japanese dishes. The Supervisor’s instruction correctly specifies "Retrieve Japanese dishes ...," but the dishes_browser worker outputs Italian dishes instead. It seems that Supervisor instructions are not accessible to the workers.

Screenshots

Ordinary flow:

image

Special case with "I want something Italian."

image

Flow

Refer to the attached agentflow.

Setup

  • Installation: Docker on Digital Ocean droplet
  • Flowise Version: 2.1.2
  • OS: Linux
  • Browser: Safari

I would appreciate any support. Thanks!

simple-multi-agent Agents.json

@HenryHengZJ
Copy link
Contributor

This is the behaviour by design, workers are the lowest level, and they do not have context about supervisor instruction, this is because workers are designed to only execute the task given by supervisor: https://docs.flowiseai.com/using-flowise/agentflows/multi-agents#id-1.-system-architecture

@HenryHengZJ HenryHengZJ added the question Further information is requested label Nov 15, 2024
@taras-svystun
Copy link
Author

Thanks for the answer, @HenryHengZJ.

"workers are designed to only execute the task given by supervisor". How (if the workers do not have context about supervisor instruction)?

From my example the worker doesn't seem to execute the task given by supervisor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants