mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-05-09 23:02:09 +08:00
refine non-verbose prompt wording
This commit is contained in:
@@ -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. "
|
||||
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user