Skip to content

Base conversation memory driver

BaseConversationMemoryDriver

Bases: ABC

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

    @abstractmethod
    def load(self, *args, **kwargs) -> ConversationMemory | None:
        ...

load(*args, **kwargs) abstractmethod

Source code in griptape/griptape/drivers/memory/conversation/base_conversation_memory_driver.py
@abstractmethod
def load(self, *args, **kwargs) -> ConversationMemory | None:
    ...

store(*args, **kwargs) abstractmethod

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