mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 08:26:53 +08:00
fix: prefer rg in agent prompts
This commit is contained in:
@@ -61,6 +61,10 @@ class TestAgentPromptStyle(unittest.TestCase):
|
||||
self.assertIn("- 可用系统命令(可通过 `execute_command` 调用):", prompt)
|
||||
self.assertIn(" - ssh: /usr/bin/ssh", prompt)
|
||||
self.assertIn(" - rg: /opt/homebrew/bin/rg", prompt)
|
||||
self.assertIn(
|
||||
"When searching files or text, prefer `rg` / `rg --files`",
|
||||
prompt,
|
||||
)
|
||||
self.assertNotIn(" - git:", prompt)
|
||||
|
||||
def test_base_prompt_omits_shell_command_section_when_none_available(self):
|
||||
|
||||
Reference in New Issue
Block a user