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

Function load_rapidapi_tool

host_local_tools.py:66–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 # server.load_tool("baidu_map", {"subscription_key": BAIDU_MAP_KEY, "baidu_secret_key": BAIDU_SECRET_KEY})
65
66 def load_rapidapi_tool():
67 RAPIDAPI_KEY = os.environ.get('RAPIDAPI_KEY', None)
68 if not RAPIDAPI_KEY:
69 raise RuntimeError("RAPIDAPI_KEY not provided, please register one from https://rapidapi.com/ and add it to environment variables.")
70 server.load_tool("zillow", {"subscription_key": RAPIDAPI_KEY})
71 server.load_tool("airbnb", {"subscription_key": RAPIDAPI_KEY})
72 server.load_tool("job_search", {"subscription_key": RAPIDAPI_KEY})
73
74 # def load_nllb_translation_tool():
75 # server.load_tool("nllb-translation")

Callers 1

run_tool_serverFunction · 0.85

Calls 1

load_toolMethod · 0.80

Tested by

no test coverage detected