(func: Callable)
| 22 | |
| 23 | # Decorator to register tools |
| 24 | def 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 | |
| 32 | def parse_nodes_from_json(graph_data: Dict[str, Any]) -> Dict[str, NodeData]: |
| 33 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected