Commit Graph

6 Commits

Author SHA1 Message Date
renjianbo
b8b01254ca feat: Phase 1 - output quality verification + node-level auto-retry
- Add enterprise_review tool (35th builtin) for LLM-based quality assessment
- Add evaluator workflow node type for quality gating in DAG
- Add AgentRuntime built-in self-review with auto-correction loop
- Rewrite error_handler node from stub to real retry mechanism
- Add engine-level per-node retry with configurable max_retries/delay/on_exhausted
- Add AgentExtension model for extension tracking
- Enhance validation in agent_create_tool and tool_register_tool
- Update 全能助手 system prompt with self-evolution workflow
- Docs: 缺失能力.md and 解决缺失能力计划.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-04 22:05:28 +08:00
renjianbo
c28cf40f61 feat: 添加更多场景专用 Agent 种子脚本
新增 5 个 Agent(seed_extra_agents.py):
- UI 设计助手:HTML/CSS/组件代码生成、布局设计
- 命令行助手:Shell/PowerShell 命令编写、脚本自动化
- 日志分析助手:日志解析、错误模式识别、异常检测
- 正则表达式助手:正则编写、调试、优化
- 代码重构助手:重构方案、设计模式应用、代码现代化

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 11:46:07 +08:00
renjianbo
5a52dac005 feat: 添加 5 个场景专用 Agent 种子脚本
新增脚本 seed_scenario_agents.py,创建并发布以下 Agent:
- 代码审查助手:代码质量审查、安全检测、最佳实践
- 测试生成助手:自动生成单元测试/集成测试
- SQL 优化助手:SQL 查询优化、索引策略建议
- 翻译助手:多语言翻译、i18n 本地化
- 文档编写助手:README/API/架构文档自动生成

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 11:12:58 +08:00
renjianbo
5423aca684 feat: 新增 Pipeline 流水线编排模式 (Planner→Executor→Reviewer)
新增第四种编排模式 pipeline,实现规划→执行→审查的自动化流水线:
- Planner 自动将问题拆解为 2-5 步 JSON 执行计划
- Executor 使用用户配置的 Agent 逐步骤执行
- Reviewer 审查全部输出并交付最终答案
- 前端编排模式选择器新增"流水线模式"选项
- 更新完善自主 AI Agent 改造完成情况文档

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 11:03:51 +08:00
renjianbo
7aba0f9bc5 fix: 修复 Agent 流式对话无响应和工具 schema 兼容性问题
- 在 `run_stream()` LLM 调用前 yield `think` 事件,前端即时显示"思考中..."
- 修复 tool schema 规范化逻辑:`{"function":{...}}` 格式缺少 `type` 字段导致 LLM API 拒绝
- 启动时从数据库加载自定义工具(`load_tools_from_db`),解决重启后工具丢失
- 前端 SSE 添加 60s 超时保护,任何事件类型均触发 `receivedFirstEvent`
- 流式失败自动降级到非流式 POST
- 添加 `scripts/seed_coding_agent.py` 和 `scripts/test_coding_agent.py`

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 00:38:41 +08:00
renjianbo
342f3fcb16 chore: 添加工具市场种子脚本
批量创建 12 个实用工具:HTML2Markdown、信息提取、文本摘要、JSON处理、
天气查询、短链接、网站检测、Base64编解码、CSV处理、情感分析、UUID生成、时间戳

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-01 23:06:08 +08:00