朱潮
|
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 |
|
朱潮
|
584f10b5e4
|
Merge branch 'deep_agent' into prod
|
2025-12-23 17:37:19 +08:00 |
|
朱潮
|
d3465d418e
|
add symlink
|
2025-12-23 17:36:45 +08:00 |
|
朱潮
|
41dfa074e1
|
add deep agent cli deps
|
2025-12-23 12:19:15 +08:00 |
|
朱潮
|
61c6b69aa5
|
add agent/tool_use_cleanup_middleware.py
|
2025-12-23 12:04:26 +08:00 |
|
朱潮
|
aaad9df20a
|
add skills
|
2025-12-22 23:47:12 +08:00 |
|
朱潮
|
95786d559e
|
sqlite dir check exists
|
2025-12-18 11:32:43 +08:00 |
|
朱潮
|
881845f284
|
use sqlite
|
2025-12-18 11:12:05 +08:00 |
|
朱潮
|
a92bea5b58
|
删除一些环境变量
|
2025-12-18 09:41:43 +08:00 |
|
朱潮
|
6bad1743b3
|
warm_up
|
2025-12-18 00:38:04 +08:00 |
|
朱潮
|
96d9ee5af7
|
guildline messages
|
2025-12-17 23:32:50 +08:00 |
|
朱潮
|
d6504c49c7
|
guildline messages
|
2025-12-17 23:31:38 +08:00 |
|
朱潮
|
a7dbacf70f
|
add cache tools
|
2025-12-17 23:29:41 +08:00 |
|
朱潮
|
59c58a9691
|
guildline messages
|
2025-12-17 23:25:40 +08:00 |
|
朱潮
|
c1c51da77e
|
guildline messages
|
2025-12-17 23:21:15 +08:00 |
|
朱潮
|
47f1d1c7eb
|
cache
|
2025-12-17 23:05:42 +08:00 |
|
朱潮
|
436dab1a2f
|
memory saver全局
|
2025-12-17 21:58:59 +08:00 |
|
朱潮
|
b78b178c03
|
删除agent manager
|
2025-12-17 20:27:06 +08:00 |
|
shuirong
|
23bc62a2b8
|
Merge pull request #6 from sparticleinc/master
ci: fix checkout step
|
2025-12-17 15:53:00 +09:00 |
|
shuirong
|
40e5e1e7aa
|
ci: fix checkout step
|
2025-12-17 15:52:30 +09:00 |
|
shuirong
|
667294f49f
|
Merge pull request #5 from sparticleinc/master
ci: add checkout step
|
2025-12-17 15:50:38 +09:00 |
|
shuirong
|
409e3ba2c1
|
ci: add checkout step
|
2025-12-17 15:50:07 +09:00 |
|
shuirong
|
0f01fbad3b
|
Merge pull request #4 from sparticleinc/master
ci: push to dockerhub, support arm
|
2025-12-17 15:48:30 +09:00 |
|
shuirong
|
500d3aa316
|
ci: push to dockerhub, support arm
|
2025-12-17 15:47:28 +09:00 |
|
朱潮
|
c9a91f8f4d
|
add DEFAULT_THINKING_ENABLE
|
2025-12-17 12:33:58 +08:00 |
|
朱潮
|
52b34846a4
|
update dockerfile
|
2025-12-16 21:35:04 +08:00 |
|
朱潮
|
e36787fb63
|
修改agent_config
|
2025-12-16 21:26:20 +08:00 |
|
朱潮
|
de72321875
|
add safe_print
|
2025-12-16 16:28:11 +08:00 |
|
朱潮
|
b8dcccbb1d
|
add AgentConfig
|
2025-12-16 16:10:09 +08:00 |
|
朱潮
|
9525c0f883
|
add AgentConfig
|
2025-12-16 16:06:47 +08:00 |
|
朱潮
|
73b87bd2eb
|
add x-request-id
|
2025-12-16 10:49:32 +08:00 |
|
朱潮
|
402e2ea5c3
|
增加默认上下文长度
|
2025-12-16 10:19:48 +08:00 |
|
朱潮
|
403df9de35
|
修复工具调用问题
|
2025-12-16 09:09:17 +08:00 |
|
朱潮
|
12cdb7679a
|
TOOL_OUTPUT_MAX_LENGTH
|
2025-12-15 23:56:38 +08:00 |
|
朱潮
|
60f311e8b7
|
TOOL_OUTPUT_MAX_LENGTH
|
2025-12-15 23:55:30 +08:00 |
|
朱潮
|
b6975e1762
|
TOOL_OUTPUT_MAX_LENGTH
|
2025-12-15 23:54:32 +08:00 |
|
朱潮
|
d077b447f0
|
settings
|
2025-12-15 23:17:21 +08:00 |
|
朱潮
|
77c8f5e501
|
settings
|
2025-12-15 21:58:54 +08:00 |
|
朱潮
|
9ada70eb58
|
session_id
|
2025-12-15 21:38:09 +08:00 |
|
朱潮
|
0d50cd8e9f
|
session_id
|
2025-12-15 21:36:13 +08:00 |
|
朱潮
|
d9ee1edf8a
|
修复none值的问题
|
2025-12-15 17:38:27 +08:00 |
|
朱潮
|
c391c97b24
|
llm log
|
2025-12-15 13:29:38 +08:00 |
|
朱潮
|
a97ff5a185
|
优化思考
|
2025-12-15 11:57:31 +08:00 |
|
朱潮
|
c32ecdfeb6
|
tool_response
|
2025-12-14 21:37:35 +08:00 |
|
朱潮
|
5d70177549
|
tool_response
|
2025-12-14 21:28:55 +08:00 |
|
朱潮
|
edb895bbf9
|
tool_call_chunks
|
2025-12-14 21:21:00 +08:00 |
|
朱潮
|
559040f7ce
|
tool_call
|
2025-12-14 18:48:48 +08:00 |
|
朱潮
|
671569026e
|
tool_id
|
2025-12-14 09:43:24 +08:00 |
|
朱潮
|
367e292854
|
merge
|
2025-12-14 09:30:34 +08:00 |
|
朱潮
|
89f5b721ab
|
muti tool_call
|
2025-12-14 09:29:19 +08:00 |
|