__init__.py 724 B

123456789101112131415161718192021222324252627
  1. """
  2. 内置基础工具 - 参考 opencode 实现
  3. 这些工具参考 vendor/opencode/packages/opencode/src/tool/ 的设计,
  4. 在 Python 中重新实现核心功能。
  5. 参考版本:opencode main branch (2025-01)
  6. """
  7. from agent.tools.builtin.read import read_file
  8. from agent.tools.builtin.edit import edit_file
  9. from agent.tools.builtin.write import write_file
  10. from agent.tools.builtin.glob import glob_files
  11. from agent.tools.builtin.grep import grep_content
  12. from agent.tools.builtin.bash import bash_command
  13. from agent.tools.builtin.skill import skill, list_skills
  14. __all__ = [
  15. "read_file",
  16. "edit_file",
  17. "write_file",
  18. "glob_files",
  19. "grep_content",
  20. "bash_command",
  21. "skill",
  22. "list_skills",
  23. ]