| 123456789101112131415161718192021222324252627282930 |
- """
- 内置基础工具 - 参考 opencode 实现
- 这些工具参考 vendor/opencode/packages/opencode/src/tool/ 的设计,
- 在 Python 中重新实现核心功能。
- 参考版本:opencode main branch (2025-01)
- """
- from agent.tools.builtin.read import read_file
- from agent.tools.builtin.edit import edit_file
- from agent.tools.builtin.write import write_file
- from agent.tools.builtin.glob import glob_files
- from agent.tools.builtin.grep import grep_content
- from agent.tools.builtin.bash import bash_command
- from agent.tools.builtin.skill import skill, list_skills
- from agent.tools.builtin.search import search_posts, get_search_suggestions
- __all__ = [
- "read_file",
- "edit_file",
- "write_file",
- "glob_files",
- "grep_content",
- "bash_command",
- "skill",
- "list_skills",
- "search_posts",
- "get_search_suggestions",
- ]
|