-
-
Notifications
You must be signed in to change notification settings - Fork 24k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Description
When using the ChatGemini (Google Generative AI) node in a chatflow connected to a Knowledge Base/Retriever Tool, the chat interface displays the raw AIMessage JSON object (including tool_calls and thoughtSignature) instead of hiding the intermediate thought process and showing only the final retrieved answer.
To Reproduce
Steps to Reproduce
- Create an Agentflow using the ChatGemini model.
- Add a Custom Tool or Retriever Tool (e.g., linked to a Vector Store knowledge base).
- Connect the tool to the Gemini Agent.
- Ask a question that triggers the knowledge base (e.g., asking for specific prices or data located in a PDF).
- Observe the chat output.
Expected behavior
Expected Behavior
The UI should only display the final natural language response. The tool_calls, kwargs, and thoughtSignature should be handled internally and not rendered in the chat bubble.
Actual Behavior
The chat displays the full technical response object:
{
"lc": 1,
"type": "constructor",
"id": [ "langchain_core", "messages", "AIMessage" ],
"kwargs": {
"content": [ { "functionCall": { ... }, "thoughtSignature": "..." } ],
"tool_calls": [...]
}
}
Followed by the actual answer.
Environment
- Flowise Version: Flowise Cloud [Latest]
- Node: ChatGemini / Multi-Prompt Selection / Agent
- Browser: [e.g., Chrome]
Screenshots
Flow
No response
Use Method
None
Flowise Version
No response
Operating System
None
Browser
None
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working