await intervention in knowledge tool

frdel committed Sep 8, 2024 at 21:53 UTC 1d545772377cc7a3f3222b73d4bd62f9278f74d8
1 file changed +1 -1
python/tools/knowledge_tool.py
+1 -1
@@ -50,6 +50,6 @@ class Knowledge(Tool):
50 online_sources = ((perplexity_result + "\n\n") if perplexity else "") + str(duckduckgo_result),
51 memory = memory_result )
52
53 - if self.agent.handle_intervention(msg): pass # wait for intervention and handle it, if paused
53 + await self.agent.handle_intervention(msg) # wait for intervention and handle it, if paused
54
55 return Response(message=msg, break_loop=False)