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

Method build

bmtools/tools/registry.py:16–20  ·  view source on GitHub ↗
(self, tool_name, config)

Source from the content-addressed store, hash-verified

14 self.tools[tool_name] = tool
15
16 def build(self, tool_name, config) -> Tool:
17 ret = self.tools[tool_name]()(config)
18 if isinstance(ret, Tool):
19 return ret
20 raise ValueError("Tool builder {} did not return a Tool instance".format(tool_name))
21
22 def list_tools(self) -> List[str]:
23 return list(self.tools.keys())

Callers 1

build_toolFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected