From 83a5f6ae5dc7f0dcafafc1f0c62a0e03883141c3 Mon Sep 17 00:00:00 2001 From: Asankilp Date: Mon, 23 Dec 2024 23:50:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E6=AC=A1=E4=BF=AE=E6=94=B9description?= =?UTF-8?q?=EF=BC=8C=E5=B0=9D=E8=AF=95=E9=87=8D=E6=96=B0isort?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_marshoai/plugins/marshoai_memory/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nonebot_plugin_marshoai/plugins/marshoai_memory/__init__.py b/nonebot_plugin_marshoai/plugins/marshoai_memory/__init__.py index 7cefa45a..c31ccee9 100644 --- a/nonebot_plugin_marshoai/plugins/marshoai_memory/__init__.py +++ b/nonebot_plugin_marshoai/plugins/marshoai_memory/__init__.py @@ -1,9 +1,9 @@ +import json from pathlib import Path from nonebot import require require("nonebot_plugin_localstore") -import json from nonebot_plugin_localstore import get_plugin_data_file @@ -23,7 +23,9 @@ if not Path(memory_path).exists(): # print(memory_path) -@on_function_call(description="存储记忆内容").params( +@on_function_call( + description="当你发现与你对话的用户的一些信息值得你记忆,或者用户让你记忆等时,调用此函数存储记忆内容" +).params( memory=String(description="你想记住的内容,概括并保留关键内容"), user_id=String(description="你想记住的人的id"), )