tauist
November 4, 2025, 3:52pm
1
Describe the problem/error/question
The agent node doesn’t send the intermediate step during run. When turn on the intermediate steps option and the streaming option, it only send back all intermediate steps at the end.
So the question is how to make it output intermediate steps during run?
Thanks!
opened 03:52PM - 02 Apr 25 UTC
in linear
team:ai
### Bug Description
The current implementation of the AI Agent and the Memory n… odes stores only the input and output messages, not the Tool messages.
**Why is this important?**
Have you noticed the agent claiming that it called a tool but didn't? Despite the flaws of the models, this is greatly aggravated by this problem. The context window gets filled with messages where the user asks for an action, the AI replies with success and the user replies with positive feedback. Without the tool messages, the LLM will learn the pattern and repeat it, so the next time it won't call a tool and instead will just reply directly to the user.
I have a fork with a working suggestion on how to fix it: https://github.com/fjrdomingues/n8n/commit/1af9450f3ff04aba16388c06ce8a48b2d17c351b
### To Reproduce
Use the Simple Memory node, or the Postgres one (the only ones I tested) and check the messages that were saved. The tool calls are always an empty array, on save and load.
### Expected behavior
The tools_call array should be populated when saving memories
### Operating System
NA
### n8n Version
1.83.2
### Node.js Version
20.18.3
### Database
PostgreSQL
### Execution mode
main (default)
At the moment, you can’t, but there’s an workaround if you check the link.
tauist
November 5, 2025, 4:20am
3
Thanks for the answer. Hope a official feature can be impelmented soon.
1 Like
Did the answer helped?
Please mark as solved for others.
1 Like
system
Closed
November 12, 2025, 4:44am
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.