注册所有默认工具。
()
| 235 | # ============================================================ |
| 236 | |
| 237 | def build_default_registry() -> ToolRegistry: |
| 238 | """注册所有默认工具。""" |
| 239 | registry = ToolRegistry() |
| 240 | registry.register("bash", bash_tool) |
| 241 | registry.register("read_file", read_tool) |
| 242 | registry.register("write_file", write_tool) |
| 243 | return registry |
| 244 | |
| 245 | |
| 246 | # ============================================================ |
no test coverage detected