how do i let the agent respond in between tool calls? #31529
Replies: 1 comment
-
Hi @gutbash! I'm Dosu and I’m helping the langchain team. LangChain's AgentExecutor does support streaming and iterating over steps, which lets you surface intermediate reasoning and tool actions as they happen—similar to how chatgpt.com alternates between responding and tool use. This is done via the If you want even more flexibility (like pausing, branching, or richer control flow), LangChain now recommends using langgraph, which is designed for advanced agent workflows and dynamic interactions. If your current AgentExecutor setup isn't yielding intermediate responses as expected, make sure you're using the Let me know if you want a code example or more details on migrating to langgraph! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
for example chatgpt.com can dynamically...
how do i do this with langchain? currently i am streaming async events from AgentExecutor with tools and it has never behaved like this.
Beta Was this translation helpful? Give feedback.
All reactions