对应 .register(tool_name, handler) -> Self
(self, name: str, handler: Callable)
| 505 | self._handlers: dict[str, Callable] = {} |
| 506 | |
| 507 | def register(self, name: str, handler: Callable) -> StaticToolExecutor: |
| 508 | """对应 .register(tool_name, handler) -> Self""" |
| 509 | self._handlers[name] = handler |
| 510 | return self # 链式调用 |
| 511 | |
| 512 | def execute(self, name: str, inp: str) -> str: |
| 513 | if name not in self._handlers: |
nothing calls this directly
no outgoing calls
no test coverage detected