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: 添加时间信息

Haowei_Du12728971e0fc
diff --git a/jiuwenclaw/agentserver/prompt_builder.py b/jiuwenclaw/agentserver/prompt_builder.py
index 921cb1dab5..e842137f4d 100644
--- a/jiuwenclaw/agentserver/prompt_builder.py
+++ b/jiuwenclaw/agentserver/prompt_builder.py
@@ -808,6 +808,8 @@ def build_system_prompt(mode: str, language: str, channel: str) -> str:
"""
system_prompt = _start_prompt(language) + '\n'
+ # Inject current time so the model can reason about "now"
+ system_prompt += _time_prompt(language) + '\n'
system_prompt += _context_prompt(language) + '\n'
system_prompt += _skills_prompt(language) + '\n'
system_prompt += _tool_prompt(mode, language) + '\n'