qwen_agent/mcp
2025-12-23 19:11:27 +08:00
..
tools 添加datetime & process_message逆运算 2025-11-14 00:28:08 +08:00
datetime_server.py 添加datetime & process_message逆运算 2025-11-14 00:28:08 +08:00
excel_csv_operator_server.py add mcp_common 2025-10-22 23:04:49 +08:00
json_reader_server.py add mcp_common 2025-10-22 23:04:49 +08:00
mcp_common.py settings 2025-12-15 21:58:54 +08:00
mcp_settings_backup.json modify requirements 2025-10-20 15:18:32 +08:00
mcp_settings_catalog_agent.json add default transport 2025-12-12 20:11:19 +08:00
mcp_settings_deep_agent.json 修复完成。主要改动: 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
mcp_settings_general_agent.json add default transport 2025-12-12 20:11:19 +08:00
mcp_settings.json add default transport 2025-12-12 20:11:19 +08:00
multi_keyword_search_server.py add upload 2025-10-28 14:48:30 +08:00
rag_retrieve_server.py settings 2025-12-15 21:58:54 +08:00
semantic_search_server.py settings 2025-12-15 21:58:54 +08:00