Replies: 2 comments 1 reply
-
I found a similar discussion that might help you resolve the issue with missing state keys in your Here's a potential solution based on that discussion:
By ensuring that all placeholders are correctly defined and that the state is properly managed and passed, you should be able to resolve the missing key error. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
@dosu The question you referred to doesn't answer the problem I have. As seen in the log trace below
2024-12-23 18:51:18,994 - core.Logger - INFO - State prints the content of the state just before invocation of the AgentExecutor.from_agent_and_tools abject and as seen it have all the required variables. Still why am I getting this missing keys error |
Beta Was this translation helpful? Give feedback.
-
I have constructed an agent as follows.
This AgentExecutor is a node in a LangGraph graph. I am invoking the graph as
Every time I run the code it gives me an error as follows
The verbose logs from AgentExecutor.from_agent_and_tools are as follows.
As seen while going from [0:tasks] Starting 1 task for step 0: to [0:writes] Finished step 0 with writes to 1 channel: all keys except messages are dropped. Can you halp me resolve the missing key error.
Beta Was this translation helpful? Give feedback.
All reactions