MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / results

Method results

bmtools/tools/google_serper/api.py:21–31  ·  view source on GitHub ↗

Run query through GoogleSearch.

(self, query: str, **kwargs: Any)

Source from the content-addressed store, hash-verified

19 self.aiosession: Optional[aiohttp.ClientSession] = None
20
21 def results(self, query: str, **kwargs: Any) -> Dict:
22 """Run query through GoogleSearch."""
23 return self._google_serper_search_results(
24 query,
25 gl=self.gl,
26 hl=self.hl,
27 num=self.k,
28 tbs=self.tbs,
29 search_type=self.type,
30 **kwargs,
31 )
32
33 def run(self, query: str, **kwargs: Any) -> str:
34 """Run query through GoogleSearch and parse result."""

Callers 1

Calls 1

Tested by

no test coverage detected