refine non-verbose prompt wording

This commit is contained in:
jxxghp
2026-04-26 08:54:07 +08:00
parent b5979b9b09
commit 90245a13e1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ class PromptManager:
verbose_spec = "" verbose_spec = ""
if not settings.AI_AGENT_VERBOSE: if not settings.AI_AGENT_VERBOSE:
verbose_spec = ( 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, " "If tools are needed, DO NOT output any conversational text, explanations, progress updates, "
"or acknowledgements before the first tool call or between tool calls. " "or acknowledgements before the first tool call or between tool calls. "
"Call tools directly without any transitional phrases. " "Call tools directly without any transitional phrases. "
+2 -2
View File
@@ -31,7 +31,7 @@ class TestAgentPromptStyle(unittest.TestCase):
prompt = prompt_manager.get_agent_prompt() prompt = prompt_manager.get_agent_prompt()
self.assertIn( self.assertIn(
"STRICTLY ENFORCED WHEN VERBOSE MODE IS OFF", "[Important Instruction] STRICTLY ENFORCED:",
prompt, prompt,
) )
self.assertIn( self.assertIn(
@@ -48,7 +48,7 @@ class TestAgentPromptStyle(unittest.TestCase):
prompt = prompt_manager.get_agent_prompt() prompt = prompt_manager.get_agent_prompt()
self.assertNotIn( 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, prompt,
) )