Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix: enhance hint prompt of cron message

xiaotian07701d7878e64ee
diff --git a/jiuwenclaw/server/runtime/agent_adapter/interface.py b/jiuwenclaw/server/runtime/agent_adapter/interface.py
index 871acac31c..6685ff56ba 100644
--- a/jiuwenclaw/server/runtime/agent_adapter/interface.py
+++ b/jiuwenclaw/server/runtime/agent_adapter/interface.py
@@ -124,12 +124,12 @@ def build_user_prompt(content: str, files: dict, channel: str, language: str, *,
if language == "zh":
prompt = "你收到一条消息:\n"
if channel == "cron":
- prompt = "你收到一条消息,你的最终回复将直接发送给用户,请输出用户期望看到的内容,而非操作确认:\n"
+ prompt = "你收到一条消息,对于查询类任务必须输出查询到的内容,不要只回复确认或只记录到memory:\n"
else:
prompt = "You receive a new message:\n"
if channel == "cron":
- prompt = ("You receive a message. Your final reply will be sent directly to the user. "
- "Output the content the user expects to see, not just a confirmation:\n")
+ prompt = ("You receive a new message. For query tasks, you must output the queried content"
+ "—don't just reply with confirmation or only record to memory:\n")
msg_data: dict[str, Any] = {
"source": channel,
"preferred_response_language": language,