__init__.py 720 B

12345678910111213141516171819202122232425262728293031323334
  1. """工具层:注册表与内置工具。
  2. ``registry`` 是工具的唯一事实源;业务工具在 ``tools/`` 下新增模块并用
  3. 用 ``define_tool`` 描述工具,再由 ``extensions/<业务>/extension.py`` 的
  4. ``setup(registry)`` 统一注册。
  5. """
  6. from tools.registry import (
  7. describe,
  8. get_all_tool_functions,
  9. get_group_map,
  10. get_label,
  11. get_spec,
  12. get_tool_names,
  13. load_builtin_tools,
  14. register,
  15. register_external,
  16. source,
  17. sourced,
  18. )
  19. __all__ = [
  20. "describe",
  21. "get_all_tool_functions",
  22. "get_group_map",
  23. "get_label",
  24. "get_spec",
  25. "get_tool_names",
  26. "load_builtin_tools",
  27. "register",
  28. "register_external",
  29. "source",
  30. "sourced",
  31. ]