[docs]classBaseChatLoader(ABC):"""Base class for chat loaders."""
[docs]@abstractmethoddeflazy_load(self)->Iterator[ChatSession]:"""Lazy load the chat sessions. Returns: An iterator of chat sessions. """
[docs]defload(self)->List[ChatSession]:"""Eagerly load the chat sessions into memory. Returns: A list of chat sessions. """returnlist(self.lazy_load())