feat: add directory context tool and refresh system message across assistant flows

This commit is contained in:
2025-11-11 11:34:41 +00:00
parent abf1240d37
commit 87f0769f59
14 changed files with 394 additions and 58 deletions
+2 -1
View File
@@ -44,13 +44,14 @@ class TestAssistant(unittest.TestCase):
assistant = MagicMock()
assistant.verbose = False
assistant.syntax_highlighting = True
assistant.graph_memory = MagicMock()
mock_render.return_value = "rendered"
response = {"choices": [{"message": {"content": "content"}}]}
result = Assistant.process_response(assistant, response)
self.assertEqual(result, "rendered")
self.assertEqual(result, "content")
assistant.messages.append.assert_called_with({"content": "content"})
@patch("rp.core.assistant.call_api")