CodeReview/backend/app/services/agent/tools
lintsinghua c7632afdab feat: 为文件操作和代码解析添加异步支持
将同步的文件读取、代码解析和分块操作改为异步实现,使用 asyncio.to_thread 将 CPU 密集型操作放到线程池执行,避免阻塞事件循环。主要修改包括:
- 在 TreeSitterParser 和 CodeSplitter 中添加异步解析方法
- 修改 CodeIndexer 使用异步文件读取和分块
- 为 FileReadTool 和 FileSearchTool 添加异步文件读取支持
2025-12-25 17:20:42 +08:00
..
__init__.py feat(agent): 新增通用代码执行工具和函数提取工具 2025-12-18 15:03:30 +08:00
agent_tools.py feat(agent): implement comprehensive agent architecture with knowledge base and persistence layer 2025-12-12 15:27:12 +08:00
base.py fix(agent): 修复工具执行结果处理中的 None 值问题 2025-12-15 10:24:58 +08:00
code_analysis_tool.py feat: 新增安全工具集成和漏洞知识库扩展 2025-12-13 12:35:03 +08:00
external_tools.py feat(agent): 增强安全工具路径处理逻辑和错误提示 2025-12-17 19:22:00 +08:00
file_tool.py feat: 为文件操作和代码解析添加异步支持 2025-12-25 17:20:42 +08:00
finish_tool.py feat: 新增安全工具集成和漏洞知识库扩展 2025-12-13 12:35:03 +08:00
kunlun_tool.py feat: Introduce Kunlun agent tool, add Docker and sandbox environment checks, and update agent services and frontend dialogs. 2025-12-15 02:00:34 +08:00
pattern_tool.py feat: 新增安全工具集成和漏洞知识库扩展 2025-12-13 12:35:03 +08:00
rag_tool.py feat: Introduce structured agent collaboration with `TaskHandoff` and `analysis_v2` agent, updating core agent logic, tools, and audit UI. 2025-12-11 23:29:04 +08:00
reporting_tool.py feat(agent): 增强文件路径验证防止幻觉报告 2025-12-19 19:08:36 +08:00
run_code.py feat(agent): 新增通用代码执行工具和函数提取工具 2025-12-18 15:03:30 +08:00
sandbox_language.py 在 GoTestTool 类的 _build_wrapper_code 方法中,第 770 行有语法错误。 2025-12-24 17:39:24 +08:00
sandbox_tool.py feat(agent): 新增通用代码执行工具和函数提取工具 2025-12-18 15:03:30 +08:00
sandbox_vuln.py feat(agent): 新增多语言代码测试和漏洞验证工具并增强错误处理 2025-12-14 17:20:54 +08:00
smart_scan_tool.py feat(安全扫描): 扩展高风险文件模式和危险模式库支持更多语言和文件类型 2025-12-14 14:00:04 +08:00
thinking_tool.py feat(agent): implement comprehensive agent architecture with knowledge base and persistence layer 2025-12-12 15:27:12 +08:00