JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix: skill_tool截断保护
renquanjia6ee3fbe01303
diff --git a/jiuwenswarm/resources/config.yaml b/jiuwenswarm/resources/config.yamlindex cae2965daf..fb26d24a99 100644--- a/jiuwenswarm/resources/config.yaml+++ b/jiuwenswarm/resources/config.yaml@@ -630,7 +630,7 @@ react:# 消息摘要卸载器:把超大的工具消息摘要化卸载(保留 [[OFFLOAD:...]] 索引,可重载)message_summary_offloader_config:- protected_tool_names: ["read_file", "read_pdf"] # 这些工具的输出保持原文,不卸载+ protected_tool_names: ["read_file", "read_pdf", "skill_tool"] # 这些工具的输出保持原文,不卸载add_message_threshold_ratio: 0.1 # 新增工具消息超过上下文窗口容量的该比例时,立即卸载ttl_seconds: 300 # 距上次模型请求空闲超过该秒数后,才允许做 TTL(闲时)卸载ttl_context_occupancy_ratio: 0.5 # 上下文占用超过该比例时,才允许做 TTL 卸载