fix(filesystem): search workspace topic questions before clarifying

This commit is contained in:
BukeLy 2026-05-26 19:31:57 +08:00
parent 75acf5dce3
commit fe1c4aeb1c
2 changed files with 9 additions and 0 deletions

View file

@ -215,6 +215,9 @@ class PIFSAgentStreamTest(unittest.TestCase):
self.assertIn("current PageIndex FileSystem\nworkspace", AGENT_SYSTEM_PROMPT)
self.assertIn("unrelated to the current workspace", AGENT_SYSTEM_PROMPT)
self.assertIn("do not answer it as\na general-purpose assistant", AGENT_SYSTEM_PROMPT)
self.assertIn("workspace-related topic question", AGENT_SYSTEM_PROMPT)
self.assertIn("clarify only after a reasonable search", AGENT_SYSTEM_PROMPT)
self.assertIn("search for candidate documents before asking", AGENT_TOOL_POLICY)
if __name__ == "__main__":