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

Function load_google_places_tool

host_local_tools.py:95–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 server.load_tool("arxiv")
94
95 def load_google_places_tool():
96 GPLACES_API_KEY = os.environ.get('GPLACES_API_KEY', '')
97 if not GPLACES_API_KEY:
98 raise RuntimeError("GPLACES_API_KEY not provided, please register one from https://developers.google.com/maps/documentation/elevation/get-api-key and add it to environment variables.")
99 server.load_tool("google_places", {"subscription_key": GPLACES_API_KEY})
100
101 def load_google_serper_tool():
102 SERPER_API_KEY = os.environ.get('SERPER_API_KEY', None)

Callers 1

run_tool_serverFunction · 0.85

Calls 1

load_toolMethod · 0.80

Tested by

no test coverage detected