From 90245a13e15d6195869204cf2a9d458fb8a79df0 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 26 Apr 2026 08:54:07 +0800 Subject: [PATCH] refine non-verbose prompt wording --- app/agent/prompt/__init__.py | 2 +- tests/test_agent_prompt_style.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/agent/prompt/__init__.py b/app/agent/prompt/__init__.py index 0b0b8584..e1ea7b19 100644 --- a/app/agent/prompt/__init__.py +++ b/app/agent/prompt/__init__.py @@ -82,7 +82,7 @@ class PromptManager: verbose_spec = "" if not settings.AI_AGENT_VERBOSE: verbose_spec = ( - "\n\n[Important Instruction] STRICTLY ENFORCED WHEN VERBOSE MODE IS OFF: " + "\n\n[Important Instruction] STRICTLY ENFORCED: " "If tools are needed, DO NOT output any conversational text, explanations, progress updates, " "or acknowledgements before the first tool call or between tool calls. " "Call tools directly without any transitional phrases. " diff --git a/tests/test_agent_prompt_style.py b/tests/test_agent_prompt_style.py index 5605d314..93a463a6 100644 --- a/tests/test_agent_prompt_style.py +++ b/tests/test_agent_prompt_style.py @@ -31,7 +31,7 @@ class TestAgentPromptStyle(unittest.TestCase): prompt = prompt_manager.get_agent_prompt() self.assertIn( - "STRICTLY ENFORCED WHEN VERBOSE MODE IS OFF", + "[Important Instruction] STRICTLY ENFORCED:", prompt, ) self.assertIn( @@ -48,7 +48,7 @@ class TestAgentPromptStyle(unittest.TestCase): prompt = prompt_manager.get_agent_prompt() self.assertNotIn( - "STRICTLY ENFORCED WHEN VERBOSE MODE IS OFF", + "DO NOT output any conversational text, explanations, progress updates, or acknowledgements before the first tool call or between tool calls", prompt, )