You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using create_react_agent to create an agent executor that is supposed to call tools.
In the given example, I am not defining any tools, but just want to get back a 'normal' text response from the agent.
When running the script, I get the following output (manually formatted for better readability):
Based on the example output given in How to migrate from legacy LangChain agents to LangGraph, I would expect the content key to be populated with anything other than '' (an empty string).
In other places I have seen that for a correct response, the done_reason was 'stop', in my example it is 'load'.
Is this kind of an intermediate, streamed result? And if so, what can I do to wait for the full response?
What can I do to make this work?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Run Ollama
Example Code
Description
I am using
create_react_agent
to create an agent executor that is supposed to call tools.In the given example, I am not defining any tools, but just want to get back a 'normal' text response from the agent.
When running the script, I get the following output (manually formatted for better readability):
Based on the example output given in How to migrate from legacy LangChain agents to LangGraph, I would expect the
content
key to be populated with anything other than''
(an empty string).In other places I have seen that for a correct response, the
done_reason
was'stop'
, in my example it is'load'
.Is this kind of an intermediate, streamed result? And if so, what can I do to wait for the full response?
What can I do to make this work?
System Info
Dependency versions:
Beta Was this translation helpful? Give feedback.
All reactions