MCPcopy Create free account
hub / github.com/InternScience/InternAgent / register_tool

Function register_tool

internagent/mas/tools/tool_config.py:159–167  ·  view source on GitHub ↗

Register tool to global registry Args: definition: Tool definition function: Tool function

(definition: Dict[str, Any], function: Callable)

Source from the content-addressed store, hash-verified

157
158
159def register_tool(definition: Dict[str, Any], function: Callable) -> None:
160 """
161 Register tool to global registry
162
163 Args:
164 definition: Tool definition
165 function: Tool function
166 """
167 _global_registry.register(definition, function)

Callers 1

init_toolsFunction · 0.85

Calls 1

registerMethod · 0.45

Tested by

no test coverage detected