graph invoke always throws error No message found in input
#3197
Unanswered
malikusman
asked this question in
Q&A
Replies: 1 comment
-
hey i was also getting this error when i was my tools But i am using the Langgraph StateGraph to make my agents how i solved it was changing the name to messages form any thing else like message it so appears that toolNode of Langgraph requires that * in LangGraph, the ToolNode (and some other nodes) expect the key to be "messages" in the state so it can parse them for tool calls.** i hope that solves yours as well so i am suggesting this solution like my code was something like this class AgentState(TypedDict): this has to be speacially messages |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have created a Graph and added node (a tool) and another node (as a agent)
Some how its throwing error no matter what and how i query.
Above is the main where i am calling the function to create a graph
And this is how i am initializing graph
Beta Was this translation helpful? Give feedback.
All reactions