Releases
0.3.23
Compare
Sorry, something went wrong.
No results found
langgraph 0.3.23
Summary of Changes
Added a special REMOVE_ALL_MESSAGES identifier to allow clearing all messages in a MessageGraph conversation in one operation #4117
Moved empty_checkpoint function from being imported from a base module to being defined in the pregel checkpoint module #4126
Detailed Changes
langgraph.graph.message.add_messages
Added a special REMOVE_ALL_MESSAGES constant identifier ("__remove_all__")
Enhanced the message merging logic to detect when a RemoveMessage with this special ID is included
When this special removal message is detected, all previous messages are discarded and only messages after this special message are returned
This provides a convenient way to clear an entire conversation history in one operation #4117
langgraph.pregel.checkpoint.empty_checkpoint
Moved the function definition from being imported from langgraph.checkpoint.base to being directly defined in langgraph.pregel.checkpoint
Redefined LATEST_VERSION = 2 in the same module
Updated imports in relevant files to reference the new location
No change in functionality, purely a code organization improvement #4126
You can’t perform that action at this time.