-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Unknown
-
Affects Version/s: None
-
None
-
Python Drivers
Context
All of our classes that use a collection object should either expose the collection object or have a close method that closes the collection object. There is no standard way of handling the cleanup of resources in LangChain, because not every backend requires a cleanup. For example, the SqlStore creates on-demand sessions for each operation.
Definition of done
Expose and document a consistent API for cleaning up resources.
Pitfalls
None