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
..
2026-01-19 00:09:36 +08:00
2026-05-02 00:38:41 +08:00
2026-05-01 19:32:59 +08:00
2026-04-13 22:52:36 +08:00
2026-01-19 00:09:36 +08:00
2026-03-06 22:31:41 +08:00
2026-01-19 00:09:36 +08:00
2026-01-19 00:09:36 +08:00
2026-01-19 00:09:36 +08:00
2026-04-09 21:58:53 +08:00
2026-04-13 20:17:18 +08:00
2026-05-01 22:30:46 +08:00
2026-01-19 00:09:36 +08:00
2026-01-19 00:09:36 +08:00
2026-04-30 00:57:13 +08:00
2026-04-30 00:57:13 +08:00
2026-01-19 00:09:36 +08:00
2026-04-09 21:58:53 +08:00
2026-01-19 00:09:36 +08:00
2026-05-01 23:00:47 +08:00
2026-04-13 22:52:36 +08:00
2026-01-19 00:09:36 +08:00
2026-01-19 00:09:36 +08:00
2026-03-06 22:31:41 +08:00