Releases
0.3.18
Compare
Sorry, something went wrong.
No results found
langgraph 0.3.18
Summary of Changes
Improved memory usage in task execution by using weak references for task objects (#3924 )
Enhanced tracing context handling with proper cleanup to avoid memory leaks and improve LangSmith integration (#3922 )
Detailed Changes
langgraph.types.PregelExecutableTask
Changed from NamedTuple to dataclass to support weak references (#3924 )
Added memory optimization with weakref_slot=True for Python 3.11+ to reduce memory footprint during execution
langgraph.pregel.runner.PregelRunner
Modified task handling to use weak references instead of direct references to reduce memory usage and potential memory leaks (#3924 )
Updated internal _call and _acall methods to properly handle weak references to tasks
langgraph.pregel.loop.PregelLoop
Updated task update logic to use dataclasses.replace() instead of _replace() to be compatible with the new task implementation (#3924 )
langgraph.utils.runnable.set_config_context
Implemented as a proper context manager that correctly sets up and cleans up tracing context (#3922 )
Ensures proper handling of LangChain tracers and LangSmith integration for better monitoring and debugging
langgraph.utils.runnable.RunnableCallable
Updated to use the new set_config_context context manager for better context handling (#3922 )
Improved tracing and context cleanup to prevent potential memory leaks
You can’t perform that action at this time.