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] Requires Approval always throws error when enabled in Tool or Agent nodes #4040

Open
amj18 opened this issue Feb 17, 2025 · 0 comments

Comments

@amj18
Copy link

amj18 commented Feb 17, 2025

Describe the bug
Requires Approval option in a Tool Node (or Agent node) always throws an error.

To Reproduce
Load/Import the attached Agent flow:

Requires Approval Bug Agents.json

Ask a simple question like "What is 2+2?".
The chatbot asks to approve before using calculator tool, but still shows the answer to the user.

If yes is selected:
Error buildAgentGraph - No tasks to run in graph.

If no is selected:
Error buildAgentGraph - Error: 400 Invalid parameter: messages with role 'tool' must be a response to a preceeding message with 'tool_calls'.

Expected behavior
If yes is selected, the chatbot should use the tool to retrieve the correct answer to the user (in this case it is 4).
If no is selected, the chatbot should ask the user to clarify the question or exit the sequence.

Screenshots

Image

Image

Image

Setup

Installation: Install flowise using docker
Flowise Version 2.2.5
OS: Windows 10
Browser: Chrome

@amj18 amj18 changed the title [BUG] [BUG] Requires Approval always throws error when enabled in Tool or Agent nodes Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant