CodeReview/backend/app/services/agent
lintsinghua c7632afdab feat: 为文件操作和代码解析添加异步支持
将同步的文件读取、代码解析和分块操作改为异步实现,使用 asyncio.to_thread 将 CPU 密集型操作放到线程池执行,避免阻塞事件循环。主要修改包括:
- 在 TreeSitterParser 和 CodeSplitter 中添加异步解析方法
- 修改 CodeIndexer 使用异步文件读取和分块
- 为 FileReadTool 和 FileSearchTool 添加异步文件读取支持
2025-12-25 17:20:42 +08:00
..
agents merge: 同步上游 v3.0.0 并更新 uv 依赖锁文件 2025-12-25 11:45:52 +08:00
core feat: 新增安全工具集成和漏洞知识库扩展 2025-12-13 12:35:03 +08:00
graph feat(agent): 增强文件路径验证防止幻觉报告 2025-12-19 19:08:36 +08:00
knowledge docs(agent): 添加防止幻觉的验证指南和使用警告 2025-12-19 19:14:23 +08:00
prompts feat(agent): 增强文件路径验证防止幻觉报告 2025-12-19 19:08:36 +08:00
streaming feat(agent): enhance agent functionality with LLM-driven decision-making and event handling 2025-12-11 21:14:32 +08:00
telemetry feat: 新增安全工具集成和漏洞知识库扩展 2025-12-13 12:35:03 +08:00
tools feat: 为文件操作和代码解析添加异步支持 2025-12-25 17:20:42 +08:00
__init__.py feat: 新增安全工具集成和漏洞知识库扩展 2025-12-13 12:35:03 +08:00
config.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
event_manager.py feat(agent): 扩展事件管理器的调试日志范围并增强工具调用循环检测 2025-12-18 01:53:05 +08:00
json_parser.py feat(agent): 新增多语言代码测试和漏洞验证工具并增强错误处理 2025-12-14 17:20:54 +08:00