MCPcopy Create free account
hub / github.com/LangGraph-GUI/LangGraph-GUI-backend / tool

Function tool

src/WorkFlow.py:24–30  ·  view source on GitHub ↗
(func: Callable)

Source from the content-addressed store, hash-verified

22
23# Decorator to register tools
24def tool(func: Callable) -> Callable:
25 signature = inspect.signature(func)
26 docstring = func.__doc__ or ""
27 tool_info = f"{func.__name__}{signature} - {docstring}"
28 tool_registry[func.__name__] = func
29 tool_info_registry[func.__name__] = tool_info
30 return func
31
32def parse_nodes_from_json(graph_data: Dict[str, Any]) -> Dict[str, NodeData]:
33 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected