Replies: 1 comment
-
@dosu can you explain and give a resolution to the issue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use AgentExecutor.from_agent_and_tools with create_react_agent as the agent inside a LangGraph node, but the graph state gets automatically modified before it's passed to the AgentExecutor object.
I create a agent node with the code below
This agent is then called within the below method
I am invoking the graph as follows
I get the following error
As seen I have printed the state in the log timed 2024-12-24 16:23:04,252 and it has all the input variable. This logging logic is present before the agent.invoke call in the agent_node method.
I have turned the debugging and verbose on in create_react_agent and AgentExecutor.from_agent_and_tools respectively with the following output:
As observed between [0:tasks] Starting 1 task for step 0: and [0:writes] Finished step 0 with writes to 1 channel: only the message key is retained
Can anyone help me understand what is happening and can I tackle the issue
Beta Was this translation helpful? Give feedback.
All reactions