AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Drop AbstractSingleton as a parent class of the vector memory (#4901)
James Collinsf6da992b3e52
diff --git a/autogpt/memory/vector/providers/base.py b/autogpt/memory/vector/providers/base.pyindex dc4dbf3cc3..aa233228f3 100644--- a/autogpt/memory/vector/providers/base.py+++ b/autogpt/memory/vector/providers/base.py@@ -6,13 +6,12 @@ import numpy as npfrom autogpt.config.config import Configfrom autogpt.logs import logger-from autogpt.singleton import AbstractSingletonfrom .. import MemoryItem, MemoryItemRelevancefrom ..utils import Embedding, get_embedding-class VectorMemoryProvider(MutableSet[MemoryItem], AbstractSingleton):+class VectorMemoryProvider(MutableSet[MemoryItem]):@abc.abstractmethoddef __init__(self, config: Config):passdiff --git a/tests/integration/memory/test_json_file_memory.py b/tests/integration/memory/test_json_file_memory.pyindex e60a076676..38cd26c894 100644--- a/tests/integration/memory/test_json_file_memory.py+++ b/tests/integration/memory/test_json_file_memory.py@@ -8,12 +8,6 @@ from autogpt.memory.vector import JSONFileMemory, MemoryItemfrom autogpt.workspace import Workspace[email protected](autouse=True)-def cleanup_sut_singleton():- if JSONFileMemory in JSONFileMemory._instances:- del JSONFileMemory._instances[JSONFileMemory]--def test_json_memory_init_without_backing_file(config: Config, workspace: Workspace):index_file = workspace.root / f"{config.memory_index}.json"