Flowise
Flowise copied to clipboard
[BUG] AgentflowV2 ChatGoogleGenerativeAI Tool Use
Describe the bug
Given an agentflow v2 created from the Supervisor Worker template in Flowise V3, when I switch the Model to any of the ChatGoogleGenerativeAI models, I get the following error when running a user query.
Error in LLM node: [GoogleGenerativeAI Error]: Error fetching from
https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro-preview-03-25:streamGenerateContent?alt=sse
: [400 Bad Request] Invalid JSON payload received. Unknown name "type" at 'tools[0].function_declarations[0]': Cannot find field.
Invalid JSON payload received. Unknown name "function" at 'tools[0].function_declarations[0]': Cannot find field. [{"@type":"type.googleapis.com/google.rpc.BadRequest","fieldViolations":[{"field":"tools[0].function_declarations[0]","description":"Invalid JSON payload received. Unknown name "type" at 'tools[0].function_declarations[0]': Cannot find field."},{"field":"tools[0].function_declarations[0]","description":"Invalid JSON payload received. Unknown name "function" at 'tools[0].function_declarations[0]': Cannot find field."}]}]
To Reproduce Steps to reproduce the behavior:
- Go to 'Marketplaces', filter the templates by 'AgentflowV2' type.
- Click on 'Supervisor Worker', then click 'Use Template'.
- Click on 'Save Agents' to save it with a name.
- Double-click on 'Supervisor' node.
- Click on 'Model' dropdown, then select 'ChatGoogleGeneratieAI'.
- Click on 'ChatGoogleGenerativeAI Parameters' dropdown, then fill up 'Connect Credential' and 'Model Name' fields correctly.
- Click on 'Save Agents'.
- Click on 'Chat' to open the chat, then type any user query.
- See error.
Expected behavior The execution should pass the Supervisor node without any errors.
Screenshots
Flow Directly created from Supervisor Worker template (v2).
Setup
- Installation: docker 'flowiseai/flowise:3.0.0',
- Flowise Version: 3.0.0
- OS: macOS with Silicon Processor
- Browser: Chrome
Additional context Nil.
https://github.com/FlowiseAI/Flowise/pull/4713