Replies: 3 comments 4 replies
-
To resolve the from langchain_core.messages import HumanMessage
agent_executor.invoke({"messages": [HumanMessage(content="who is the winner of the US Open")]}) This should resolve the |
Beta Was this translation helpful? Give feedback.
-
@dosu No luck same error. |
Beta Was this translation helpful? Give feedback.
-
@dosu... It got work after taking out prompt "state_modifier=prompt". the below one did work. However, what I am missing due to this change? Thoughts? |
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
At initial steps,
agent_executor.invoke({"messages": [("user", "who is the winnner of the us open")]})
I am getting this error. Please help:
KeyError: "Input to ChatPromptTemplate is missing variables {'{messages}'}. Expected: ['{messages}'] Received: ['messages', 'is_last_step']\nNote: if you intended {{messages}} to be part of the string and not a variable, please escape it with double curly braces like: '{{{messages}}}'."
System Info
Name: langgraph
Version: 0.2.23
Beta Was this translation helpful? Give feedback.
All reactions