From 946685d786cd1be013445e755606613204811adb Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Wed, 29 Apr 2026 03:00:24 +0800 Subject: [PATCH] fix: re-export BACKGROUND_TASK_WOKE_USER_PROMPT and CONVERSATION_HISTORY_INJECT_PREFIX from astr_main_agent_resources --- astrbot/core/astr_main_agent_resources.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/astrbot/core/astr_main_agent_resources.py b/astrbot/core/astr_main_agent_resources.py index 821ece702..bf7d5b381 100644 --- a/astrbot/core/astr_main_agent_resources.py +++ b/astrbot/core/astr_main_agent_resources.py @@ -1,5 +1,10 @@ import base64 +from astrbot.core.tools.prompts import ( # noqa: F401 — re-export for backward compatibility + BACKGROUND_TASK_WOKE_USER_PROMPT, + CONVERSATION_HISTORY_INJECT_PREFIX, +) + LLM_SAFETY_MODE_SYSTEM_PROMPT = """You are running in Safe Mode. Rules: