(self)
| 122 | # --- 工具执行器 (Tutorial 03 精简版) --- |
| 123 | class ToolExecutor: |
| 124 | def __init__(self): |
| 125 | self._handlers: dict[str, Callable[[str], str]] = {} |
| 126 | |
| 127 | def register(self, name: str, handler: Callable[[str], str]) -> "ToolExecutor": |
| 128 | self._handlers[name] = handler |
nothing calls this directly
no outgoing calls
no test coverage detected