fix:对replyer tool reuslt格式修改,改动插件备份文件位置

This commit is contained in:
SengokuCola
2026-05-08 13:54:35 +08:00
parent fb3f4c28ef
commit ca667ee601
2 changed files with 4 additions and 2 deletions

View File

@@ -291,7 +291,7 @@ async def handle_tool(
)
return tool_ctx.build_success_result(
invocation.tool_name,
"回复已生成并发送。",
f'已生成并发送回复"{combined_reply_text}"\n发送对象:{target_user_name}',
structured_content={
"msg_id": target_message_id,
"set_quote": set_quote,

View File

@@ -269,7 +269,9 @@ def backup_file(file_path: Path, action: str, move_file: bool = False) -> Option
return None
backup_name = f"{file_path.name}.{action}.{datetime.now().strftime('%Y%m%d%H%M%S')}"
backup_path = file_path.parent / backup_name
backup_dir = file_path.parent / "config_back"
backup_dir.mkdir(parents=True, exist_ok=True)
backup_path = backup_dir / backup_name
if move_file:
shutil.move(file_path, backup_path)
else: