__init__.py 635 B

123456789101112131415161718192021222324
  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. __all__ = [
  14. "read_file",
  15. "edit_file",
  16. "write_file",
  17. "glob_files",
  18. "grep_content",
  19. "bash_command",
  20. ]