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

Method get_api_info

bmtools/tools/tool.py:88–92  ·  view source on GitHub ↗
(request : fastapi.Request)

Source from the content-addressed store, hash-verified

86
87 @self.get("/.well-known/ai-plugin.json", include_in_schema=False)
88 def get_api_info(request : fastapi.Request):
89 openapi_path = str(request.url).replace("/.well-known/ai-plugin.json", "/openapi.json")
90 info = copy.deepcopy(self.api_info)
91 info["api"]["url"] = str(openapi_path)
92 return info

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected