Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] Agents not invoked?

Open codenamics opened this issue 1 year ago • 58 comments

Describe the bug I have setup agnets like on screenshot. Also the bug is no response form agents like in screenshot

To Reproduce Refer to screenshot

Expected behavior Anser from agents

Screenshots image image

Flow

Setup

  • Installation npx
  • Flowise Version latates
  • OS: Windows
  • Browser Chrome

Additional context

codenamics avatar Jun 02 '24 21:06 codenamics

I get a similar error as can be seen here: https://smith.langchain.com/public/59c442a4-854d-4e5c-9643-46abe64551ca/r

The error occurs when a worker with an attached tool is called. If no tools are attached to any worker the chat runs through.

OS: Ubuntu Deployement: docker compose Flowise: 1.8.1 Browser: Firefox

This bug makes tool usage impossible in Agent workflows.

dentroai avatar Jun 02 '24 23:06 dentroai

@codenamics you are connecting the ChatMistralAI node to the Supervisor and the Worker at the same time.

In theory, the Worker node would inherit whatever model the Supervisor has attached, no need to add it again.

Workers have their own model connection in case you want to use a different model than the Supervisor has in use.

Ex:

Supervisor →Mistral Worker→Gemini 1.5

toi500 avatar Jun 03 '24 04:06 toi500

@toi500 nope still not working

image

codenamics avatar Jun 03 '24 16:06 codenamics

btw i was watching this tutoral https://www.youtube.com/watch?v=284Z8k7yJRE&ab_channel=LeonvanZyl

and he attachted tools and it worked

@HenryHengZJ can you take a look what is going on?

codenamics avatar Jun 03 '24 16:06 codenamics

@HenryHengZJ I am having the same issue. Hosting on Render if that matters.

It seems like the supervisor commands are not being passed to the worker when there are tools.

2024-06-03_14-39-44

bigredcoder avatar Jun 03 '24 21:06 bigredcoder

I am having the same issue. Hosting on Render if that matters.

It seems like the supervisor commands are not being passed to the worker when there are tools.

This issue was submitted a while ago https://github.com/FlowiseAI/Flowise/issues/2472 and was reported as fixed, but it still persists in the latest version 1.8.1

toi500 avatar Jun 03 '24 21:06 toi500

strange.. can't seem to replicate the issue. Have FW deployed on Render and Railway, both works fine:

image

On 1.8.1 image

Flow used: test.Agents.json

HenryHengZJ avatar Jun 03 '24 22:06 HenryHengZJ

@HenryHengZJ just tested and it works now. I tried your flow and other a bit more complex using the web browser tool and worked too.

For some reason this last evening did not work.

Working right now, using both Workers as expected:

-- image

toi500 avatar Jun 04 '24 01:06 toi500

Still doesn't work for me as soon as I add any tool

image

dentroai avatar Jun 04 '24 16:06 dentroai

What should I do to troubleshoot?

dentroai avatar Jun 04 '24 16:06 dentroai

@dentro-innovation Please share ur flow, so I can test it.

toi500 avatar Jun 04 '24 16:06 toi500

I too am still having issues. I have recreated the screenshot @HenryHengZJ shared and I am still getting the same. Attached is what I have tried. I am going to check some logs and see if that can gleen anything.

Here is some information that may be helpful: I am using render to host. I am using a custom domain. I tried the direct render url and got the same result. Going to try to ping via API and embed on a page and see if anything different happens.

2024-06-04_09-15-14 2024-06-04_09-16-46

bigredcoder avatar Jun 04 '24 16:06 bigredcoder

I tested by embedding on my server and I do not get any response from the bot. I thought maybe it was a browser issue. I have also tried restarting the service and did a new deploy. Tools test Gitbub example Agents.json

bigredcoder avatar Jun 04 '24 16:06 bigredcoder

I tested by embedding on my server and I do not get any response from the bot. I thought maybe it was a browser issue. I have also tried restarting the service and did a new deploy. Tools test Gitbub example Agents.json

Working locally for me. Flowise is up to date (today).

image

toi500 avatar Jun 04 '24 16:06 toi500

#2472

I wonder if its something with the render configuration? Or maybe with OpenAI as they are currently down. I did have the same issues yesterday. Not sure how to troubleshoot this.

bigredcoder avatar Jun 04 '24 17:06 bigredcoder

When I test with an old GPT model gpt-3.5-turbo-16k-0613 it works... hmm. Still testing more

These are the models ist works on:

gpt-3.5-turbo-16k-0613 gpt-4-turbo-preview gpt-3.5-turbo-16k

This is so strange.

image

bigredcoder avatar Jun 04 '24 17:06 bigredcoder

@bigredcoder

On Render the 4o worked too.

image

Is your instance up to date?

image image

toi500 avatar Jun 04 '24 17:06 toi500

@bigredcoder

On Render the 4o worked too.

image Is your instance up to date?

image image

image

I did a fresh pull and deploy this morning.

bigredcoder avatar Jun 04 '24 17:06 bigredcoder

@bigredcoder it is so strange. Yesterday I had the same issue you reported and today it is working just fine.

toi500 avatar Jun 04 '24 17:06 toi500

@bigredcoder On Render the 4o worked too. image Is your instance up to date? image image

image

I did a fresh pull and deploy this morning. 2024-06-04_10-22-30 2024-06-04_10-22-24 2024-06-04_10-22-11 2024-06-04_10-22-05 2024-06-04_10-21-57 2024-06-04_10-21-44 2024-06-04_10-21-37

bigredcoder avatar Jun 04 '24 17:06 bigredcoder

@bigredcoder it is so strange. Yesterday I had the same issue you reported and today it is working just fine.

What I am finding is that some models are working for me, but most are not. This is very bizarre.

bigredcoder avatar Jun 04 '24 17:06 bigredcoder

When I test with an old GPT model gpt-3.5-turbo-16k-0613 it works... hmm. Still testing more

These are the models ist works on:

gpt-3.5-turbo-16k-0613 gpt-4-turbo-preview gpt-3.5-turbo-16k

This is so strange.

image

Now those models do not work. I am sure its something with my set up. I appreciate all of the help.

bigredcoder avatar Jun 04 '24 17:06 bigredcoder

I am hosting it on an ubuntu server. Deployed using my own tutorial https://www.youtube.com/watch?v=Y-YsPVblUK0

I just created a new Agent Flow and tried out a Mistral Model instead of OpenAI, also doesn't work.

This is my Flow: Debug Agent Flow Agents.json

dentroai avatar Jun 04 '24 17:06 dentroai

Screenshot from 2024-06-04 23-24-56

Hey guys, yesterday I got this error: message stopped. today I got this error. I followed Leon's agent tutorial Any idea what's going on?

avst650 avatar Jun 04 '24 17:06 avst650

for what its worth I see this message when it does not work

image

bigredcoder avatar Jun 04 '24 17:06 bigredcoder

for what its worth I see this message when it does not work

image

yes me too

dentroai avatar Jun 04 '24 17:06 dentroai

Screenshot from 2024-06-04 23-24-56

Hey guys, yesterday I got this error: message stopped. today I got this error. I followed Leon's agent tutorial Any idea what's going on?

Its strange, when I try different models it sometimes works and then breaks again. I can try 1+1 and it works and then try 2+2 it does not. I think the only reason its working is because its not using the tool to get a response and is using the LLM.

I am on render and followed Leon's tutorials as well. I am stuck.

bigredcoder avatar Jun 04 '24 17:06 bigredcoder

So frustrating, I got a webinar on LLM agents on sat and now this breaks!

avst650 avatar Jun 04 '24 18:06 avst650

I am hosting it on an ubuntu server. Deployed using my own tutorial https://www.youtube.com/watch?v=Y-YsPVblUK0

I just created a new Agent Flow and tried out a Mistral Model instead of OpenAI, also doesn't work.

This is my Flow: Debug Agent Flow Agents.json

@dentro-innovation just tested your flow using OpenAI (i dont have Mistral) and it worked if you change the name of the worker and supervisor to lowercase, like this:

image

FLOW: TEST2 Agents.json

toi500 avatar Jun 04 '24 18:06 toi500

I am hosting it on an ubuntu server. Deployed using my own tutorial https://www.youtube.com/watch?v=Y-YsPVblUK0 I just created a new Agent Flow and tried out a Mistral Model instead of OpenAI, also doesn't work. This is my Flow: Debug Agent Flow Agents.json

@dentro-innovation just tested your flow using OpenAI (i dont have Mistral) and it worked if you change the name of the worker and supervisor to lowercase, like this:

image FLOW: [TEST2 Agents.json](https://github.com/user-attachments/files/15568635/TEST2.Agents.json)

@toi500 did you get the error when you had a capital letter?

bigredcoder avatar Jun 04 '24 18:06 bigredcoder