ReAct Agent with OpenAI does not call tools

Hi Dear Community!

I need some help with understanding how does ReAct Agent calls tools.

When I use OpenAI chat model (gpt-4o), sometimes Agent does not call tool, but tries to output final result, even though it is not final yet.

For example:

Here the output of model clearly says that sabre_command tool should be run. However the tool is not run, and agent tries to parse to JSON. And as result failes with error:

If I use Anthropic chat model everything works fine.

n8n version: 1.74.0

Please help!

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:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.