(self, query="", **kwargs)
| 11 | |
| 12 | class SearchEngine(Tool): |
| 13 | async def execute(self, query="", **kwargs): |
| 14 | |
| 15 | |
| 16 | searxng_result = await self.searxng_search(query) |
| 17 | |
| 18 | await self.agent.handle_intervention( |
| 19 | searxng_result |
| 20 | ) # wait for intervention and handle it, if paused |
| 21 | |
| 22 | return Response(message=searxng_result, break_loop=False) |
| 23 | |
| 24 | |
| 25 | async def searxng_search(self, question): |
nothing calls this directly
no test coverage detected