-
Notifications
You must be signed in to change notification settings - Fork 16.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An error occurred while attempting to delete the message . #29086
Comments
This comment was marked as resolved.
This comment was marked as resolved.
@minmie I don't understand why you are trying to do this since you are using |
thanks,I forgot to remove it. |
|
@minmie i am facing issue, while deleting the messages for a subgraph. Did you find a solution ? |
@bhupendra171 I was also stumped. |
@minmie the purpose of MemorySaver is to save the messages in-memory (RAM). The messages are volatile and will automatically be cleared once your process ends. That is why it is a little confusing to understand why you'd want to delete messages from an already ephemeral storage. As mentioned in the docstrings of MemorySaver, it is mostly used for testing. If you shift to PostgresSaver, you could directly delete the messages from the linked db. |
If for some reason, you are unable to shift to a different MemorySaver, your error can be fixed simply using: graph.update_state(CONFIG, {"messages": [RemoveMessage(id=m.id) for m in messages]}, as_node="tools") ExplanationIn your original code, you ran: graph.update_state(CONFIG,{"messages": [RemoveMessage(id=m.id) for m in messages]}) Without any mention of |
@SyedBaqarAbbas Thanks for your help. |
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I try to delete messages and this error occur.
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
The text was updated successfully, but these errors were encountered: