From eadc2f6a90c66f61fe4de505318603225fe94add Mon Sep 17 00:00:00 2001 From: Eric Pinzur <2641606+epinzur@users.noreply.github.com> Date: Wed, 13 Nov 2024 17:08:08 +0100 Subject: [PATCH] core: added DeleteResponse to the module (#28069) Description: * added `DeleteResponse` to the `langchain_core.indexing` module, for implementing DocumentIndex classes. --- libs/core/langchain_core/indexing/__init__.py | 2 ++ libs/core/tests/unit_tests/indexing/test_public_api.py | 1 + 2 files changed, 3 insertions(+) diff --git a/libs/core/langchain_core/indexing/__init__.py b/libs/core/langchain_core/indexing/__init__.py index 786914c00e1ea..472f41e11a846 100644 --- a/libs/core/langchain_core/indexing/__init__.py +++ b/libs/core/langchain_core/indexing/__init__.py @@ -7,6 +7,7 @@ from langchain_core.indexing.api import IndexingResult, aindex, index from langchain_core.indexing.base import ( + DeleteResponse, DocumentIndex, InMemoryRecordManager, RecordManager, @@ -15,6 +16,7 @@ __all__ = [ "aindex", + "DeleteResponse", "DocumentIndex", "index", "IndexingResult", diff --git a/libs/core/tests/unit_tests/indexing/test_public_api.py b/libs/core/tests/unit_tests/indexing/test_public_api.py index fce3d4f4f9623..24ac092eb2d4a 100644 --- a/libs/core/tests/unit_tests/indexing/test_public_api.py +++ b/libs/core/tests/unit_tests/indexing/test_public_api.py @@ -6,6 +6,7 @@ def test_all() -> None: assert __all__ == sorted(__all__, key=str.lower) assert set(__all__) == { "aindex", + "DeleteResponse", "DocumentIndex", "index", "IndexingResult",