支持开发热重载插件,支持独立测试函数

This commit is contained in:
2024-12-17 20:51:42 +08:00
parent 87b18c424b
commit 99c113833e
9 changed files with 211 additions and 14 deletions

View File

@ -47,6 +47,13 @@ class MarshoContext:
if target_id in target_dict:
target_dict[target_id].clear()
def reset_all(self):
"""
重置所有上下文
"""
self.contents["private"].clear()
self.contents["non-private"].clear()
def build(self, target_id: str, is_private: bool) -> list:
"""
构建返回的上下文,不包括系统消息