Skip to content

Base conversation memory driver

BaseConversationMemoryDriver

Bases: SerializableMixin, ABC

Source code in griptape/drivers/memory/conversation/base_conversation_memory_driver.py
class BaseConversationMemoryDriver(SerializableMixin, ABC):
    @abstractmethod
    def store(self, memory: BaseConversationMemory) -> None: ...

    @abstractmethod
    def load(self) -> Optional[BaseConversationMemory]: ...

load() abstractmethod

Source code in griptape/drivers/memory/conversation/base_conversation_memory_driver.py
@abstractmethod
def load(self) -> Optional[BaseConversationMemory]: ...

store(memory) abstractmethod

Source code in griptape/drivers/memory/conversation/base_conversation_memory_driver.py
@abstractmethod
def store(self, memory: BaseConversationMemory) -> None: ...