Agent v3 is Directly Streaming Output of Sub-AI Agent Tools (v2.2 didn't stream output)

Describe the problem/error/question

I have a streaming workflow that has a main AI Agent (v3) that calls a number of sub AI Agent Tools (v2.2 latest). Prior to v3, the sub agents would not stream their output directly and would return their response to the main agent. Since switching to v3, the sub agents are directly streaming their output. I can’t figure out a way to change that behavior. (Return Intermediate steps is OFF, I have tried returning the response as JSON and even a structured output - but then it streams the JSON back to the user]

Information on your n8n setup

  • n8n version: 1.119.2
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud

Any ideas/suggestions would be much appreciated!

1 Like

same, you have 2 solutions
Revert to v2.2 AI agent,
or just use a non streaming workflow (with v3): it works fine, you can even see the tool calls properly

when using streaming workflow and agent v3 the sub agent tool writes the output directly into the chat.

That doesn’t happen on v2.2 .
In fact v2.2 and v3 communicates in a different way with the sub-agent, and that causes the subagent output to “leak”.

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