mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-08-28 05:25:04 +00:00
19 lines
430 B
Python
19 lines
430 B
Python
from abc import ABCMeta, abstractmethod
|
|
|
|
from memory_scope.chat.memory_service import MemoryService
|
|
|
|
|
|
class BaseMemoryChat(metaclass=ABCMeta):
|
|
|
|
def __init__(self, chat_name: str, **kwargs):
|
|
self.memory_service = MemoryService(chat_name=chat_name, **kwargs)
|
|
|
|
@abstractmethod
|
|
def chat_with_memory(self, query: str):
|
|
"""
|
|
:param query:
|
|
:return:
|
|
"""
|
|
|
|
def run(self):
|
|
pass
|