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

Function register

bmtools/tools/registry.py:27–31  ·  view source on GitHub ↗
(tool_name)

Source from the content-addressed store, hash-verified

25tools_registry = ToolsRegistry()
26
27def register(tool_name):
28 def decorator(tool : FuncToolBuilder):
29 tools_registry.register(tool_name, tool)
30 return tool
31 return decorator
32
33def build_tool(tool_name : str, config : Any) -> Tool:
34 print(f"will build {tool_name}")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected