agent_streaming_overrideTier 1 · 70% confidence

ai-agents-agent-streaming-over-when-using-runnablemultiactionagent-with-an-llm-th-69a12c81

agent: ai_agents

When does this happen?

IF When using RunnableMultiActionAgent with an LLM that has streaming disabled, the agent's stream_runnable property defaults to True, ignoring the LLM setting.

How others solved it

THEN Manually set agent_executor.agent.stream_runnable = False after creating the AgentExecutor. This disables streaming, enabling caching for tool calls and preventing unintended streaming behavior.

agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True)
if hasattr(agent_executor.agent, 'stream_runnable'):
    agent_executor.agent.stream_runnable = False

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics