新增接口

This commit is contained in:
meng_xi_pan
2025-04-11 00:30:54 +08:00
parent 45763cf070
commit 02b747015d
3 changed files with 21 additions and 0 deletions

View File

@@ -148,6 +148,16 @@ class BaseWillingManager(ABC):
async with self.lock:
self.chat_reply_willing[chat_id] = willing
@abstractmethod
async def get_variable_parameters(self) -> Dict[str, str]:
"""抽象方法:获取可变参数"""
pass
@abstractmethod
async def set_variable_parameters(self, parameters: Dict[str, any]):
"""抽象方法:设置可变参数"""
pass
def init_willing_manager() -> BaseWillingManager:
"""