(self)
| 634 | 对应 Rust: BTreeMap<String, Box<dyn FnMut(&str) -> Result<String, ToolError>>> |
| 635 | """ |
| 636 | def __init__(self): |
| 637 | self._handlers: dict[str, Callable[[str], str]] = {} |
| 638 | |
| 639 | def register(self, name: str, handler: Callable[[str], str]): |
| 640 | """注册一个工具: 名字 → 处理函数""" |
nothing calls this directly
no outgoing calls
no test coverage detected