Gemini 2.0 flash and Tool Use

Is anyone facing an issue where gemini flash models aren’t able to call tools with the tools agent node? they also struggle to return responses with vector store as tools. Sometimes using the normal conversation agent would work for tool calling, but after a few times more error occurs, or the agent just simply ignores tool usage and says that it has used the tools.

1 Like

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Yep I have the same issue … Seems like there’s a number of threads on the GitHub repo and on this board about it

1 Like

Yes I’m facing the same issue

1 Like

Same here with 2.0 flash.

1 Like

Would very much LOVE to solve for this as the context window makes a HUGE difference!

Yes, and it is also returning this kind of responses in the text user will see:

print(default_api.Guardar_datos(producto=‘hoodies’, unidades=40, color=‘negro’)) print(default_api.Prenda_gratis())

Instead of calling the tool.

At the beginning it works fine, but after some messages, the agent starts having this critical mistakes…

How can be possible to solve this? It seems to be a bug on N8N side right?

Something similar, my function calls apparently show up in the chat response instead of actually triggering tools?

Both with gemini 2.0 flash and pro exp

anyone solve?