MCPcopy
hub / github.com/agent0ai/agent-zero / execute

Method execute

tools/search_engine.py:13–22  ·  view source on GitHub ↗
(self, query="", **kwargs)

Source from the content-addressed store, hash-verified

11
12class 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):

Callers

nothing calls this directly

Calls 3

searxng_searchMethod · 0.95
ResponseClass · 0.90
handle_interventionMethod · 0.45

Tested by

no test coverage detected