Replies: 1 comment 1 reply
-
Facing the same error. Did you able to fix this? |
Beta Was this translation helpful? Give feedback.
-
Facing the same error. Did you able to fix this? |
Beta Was this translation helpful? Give feedback.
-
I've tried new version of
information-gather-prompting.ipynb
Link: https://github.com/langchain-ai/langgraph/blob/main/examples/chatbots/information-gather-prompting.ipynb
When I run the graph with code bellow:
.....
user_question = messages[-1].content
inputs = { "messages": [HumanMessage(content=user_question)] }
async for event in chatbot.astream_events(
inputs,
config,
stream_mode="updates",
version="v2"
):
...
it throw out errors show bellow:
ValueError: Message dict must contain 'role' and 'content' keys, got {'messages': [HumanMessage(content='What could you do?', id='950572ce-d259-41fa-9c21-c70a3d88365c')]}
I've using the packages dependencies as followings:
langchain-chroma = "^0.1.2"
langchain = "^0.2.12"
langchain-community = "^0.2.11"
langchainhub = "^0.1.20"
langgraph = "^0.2.3"
langgraph-checkpoint-sqlite = "^1.0.0"
Have you got any ideas or suggestion for workaround this issues?
Thank in advance.
Richard
Beta Was this translation helpful? Give feedback.
All reactions