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

Method __init__

bmtools/tools/serve.py:66–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64 """ This class host your own API backend.
65 """
66 def __init__(self) -> None:
67 # define the root API server
68 self.api = fastapi.FastAPI(
69 title="BMTools",
70 description="Tools for bigmodels",
71 )
72 self.loaded_tools = dict()
73 self.retriever = Retriever()
74 _bind_tool_server(self)
75
76 def load_tool(self, name: str, config: Dict = {}):
77 if self.is_loaded(name):

Callers

nothing calls this directly

Calls 2

RetrieverClass · 0.85
_bind_tool_serverFunction · 0.85

Tested by

no test coverage detected