Commit Graph

43 Commits

Author SHA1 Message Date
朱潮
e67d50b4fc rename general agent 2026-02-06 17:05:17 +08:00
朱潮
37958291ae Merge branch 'rag_receive_top_k' 2026-01-08 17:28:59 +08:00
朱潮
fc5c1adaaa feat(mcp): add top_k optional parameter to RAG retrieve tool 2026-01-08 17:27:35 +08:00
朱潮
766b9becda feat(deep-agent): add skills support and improve project structure
- Add skills parameter to ChatRequest for skill file processing
- Extract and unzip skill files to robot project skills directory
- Add robot_config.json with bot_id and environment variables
- Update symlink setup to skip if ~/.deepagents already exists
- Enhance system prompt with directory access restrictions
- Refactor _get_robot_dir to handle symlink paths correctly

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 13:21:58 +08:00
朱潮
b8e00d403c 修复完成。主要改动: 1. 新增 _clean_content_blocks 方法:专门处理 content 字段的清理 - 当 content 是列表格式时,过滤掉 type: 'tool_use' 的块(如果 id 不在 valid_tool_call_ids 中) - 返回清理后的 content 和是否有文本内容的标志 2. 更新 _cleanup_tool_use_messages 方法: - 调用 _clean_content_blocks 来清理 content - 使用清理后的 cleaned_content 创建新的 AIMessage 问题根源:之前的代码只清空了 tool_calls=[],但没有从 content 列表中移除 type: 'tool_use' 的块。Anthropic API 会检查这两个地方,导致报错。 2025-12-23 19:11:27 +08:00
朱潮
77c8f5e501 settings 2025-12-15 21:58:54 +08:00
朱潮
d6334aa655 add default transport 2025-12-12 20:11:19 +08:00
朱潮
363c80d9cb remove datetime 2025-11-25 15:25:27 +08:00
朱潮
37784ebefe 优化向量检索 2025-11-20 19:36:19 +08:00
朱潮
b9f6928b50 embedding 模型独立为api 2025-11-20 13:29:44 +08:00
朱潮
58fb623d66 general_agent 2025-11-16 19:50:06 +08:00
朱潮
bd93ae663d add generic_agent 2025-11-16 19:46:27 +08:00
朱潮
0ac0fcbfb3 添加datetime & process_message逆运算 2025-11-14 00:28:08 +08:00
朱潮
1174767211 remove top_k 2025-11-12 11:53:22 +08:00
朱潮
40aa71b966 add v2 api 2025-11-04 23:16:21 +08:00
朱潮
29a3a17d28 新增dataset逻辑 2025-10-30 21:19:39 +08:00
朱潮
fd6539353d add agent prompt 2025-10-29 20:10:49 +08:00
朱潮
bccf73cdcf 修改了mcp/rag_retrieve_tools.json为英文描述 2025-10-29 12:52:45 +08:00
朱潮
069925dc63 remove rag from settings 2025-10-29 11:19:34 +08:00
朱潮
fc85a36157 add rag_retrieve api 2025-10-29 11:18:26 +08:00
朱潮
f13b1aaec9 add upload 2025-10-28 14:48:30 +08:00
朱潮
0852eff2ae add muti quwey 2025-10-22 23:32:16 +08:00
朱潮
dcb2fc923b add mcp_common 2025-10-22 23:04:49 +08:00
朱潮
839f3c4b36 mcp dataset_dir support 2025-10-22 22:25:59 +08:00
朱潮
42a14088f8 mcp dataset_dir placeholder 2025-10-22 22:00:38 +08:00
朱潮
3591d8228e add regex grep 2025-10-22 19:02:42 +08:00
朱潮
75c5f0aa80 modify env 2025-10-22 10:44:22 +08:00
朱潮
b9973abdbd modify keword search 2025-10-22 10:37:28 +08:00
朱潮
76eea19b18 modify prompt 2025-10-22 00:45:32 +08:00
朱潮
1173b4a15d modify prompt regex 2025-10-21 21:00:50 +08:00
朱潮
b8e1414a94 modify requirements 2025-10-20 15:18:32 +08:00
朱潮
0a1b8e8d22 add csv operator 2025-10-20 12:52:37 +08:00
朱潮
d6965e1517 add csv operator 2025-10-20 12:51:36 +08:00
朱潮
e21c3cb44e add file process 2025-10-17 16:16:41 +08:00
朱潮
e1c2df763e add embedding 2025-10-17 10:07:50 +08:00
朱潮
9d2735a53c add regex for multi search 2025-10-16 21:42:18 +08:00
朱潮
d0e3e62291 add semantic search 2025-10-16 21:06:02 +08:00
朱潮
4e4b094709 add ripgrep 2025-10-14 08:59:19 +08:00
朱潮
e8cf661f0f add multi_keyword_search_server 2025-10-10 08:58:23 +08:00
朱潮
7b538d4967 add extra_prompt 2025-10-07 14:35:07 +08:00
朱潮
10c2ef0bbc openai api 2025-10-07 12:25:41 +08:00
朱潮
afe7600534 init 2025-10-06 19:52:18 +08:00
朱潮
1602509026 init 2025-10-06 19:51:39 +08:00