Replies: 1 comment
-
Hey @markpeace, great to see you back! Hope everything's been going well on your end. The issue you're experiencing with the In your provided code, it seems like you're invoking the Here's a simplified example to illustrate this: inputs = [HumanMessage(content="My name is Mark")]
response = app.invoke(inputs, {"configurable": {"thread_id": memory.thread_id} } )
print(response[-1].content)
inputs = [HumanMessage(content="What is my name?")]
response = app.invoke(inputs, {"configurable": {"thread_id": memory.thread_id} } )
print(response[-1].content) In this example, the To prevent this, you could clear the If you want to maintain the conversation context while preventing the repetition of Please review your For more information on how the Sources
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
When I inspect the cumulative content of MessageGraph, I find that the HumanMessage is always repeated twice? How do stop this happening?
System Info
langchain==0.1.9
langchain-community==0.0.24
langchain-core==0.1.26
langchain-fireworks==0.0.1
langchain-openai==0.0.7
Beta Was this translation helpful? Give feedback.
All reactions