feat: 知识库文件夹/模板、技能压缩设置与摘要窗口调优
- 知识库新增文件夹与模板支持(模型/仓储/服务/迁移),前端知识管理组件 - 岗位管理模型与接口完善 - 技能新增压缩设置页与相关存储/工具能力 - 系统设置扩展配置项 - 摘要中间件 keep 窗口改用 token 预算(16000),减少重复压缩 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
e6662cf673
commit
5ebbb82d66
54 files changed
+2658
-100
No files matched your search
@@ -139,6 +139,18 @@ def get_available_tools(
|
||||
|
||||
builtin_tools.extend([skill_list_tool, skill_view_tool])
|
||||
|
||||
# search_skills —— 仅当管理员开启"技能压缩"时提供。压缩开启后,非常驻技能不再
|
||||
# 全文注入系统提示词,agent 通过该关键词检索工具按需调出(纯关键词、离线、确定性)。
|
||||
try:
|
||||
from deerflow.config.system_settings import get_skill_compression_settings
|
||||
|
||||
if get_skill_compression_settings().enabled:
|
||||
from deerflow.tools.builtins.skill_tools import search_skills_tool
|
||||
|
||||
builtin_tools.append(search_skills_tool)
|
||||
except Exception: # noqa: BLE001 - 读取设置失败不能阻断 agent 构建
|
||||
logger.debug("Failed to evaluate skill compression setting for search_skills tool", exc_info=True)
|
||||
|
||||
# read_peer_delivery —— 圆桌席位「按需读取前序席位完整交付」的只读工具(从 run context
|
||||
# 取网关注入的全文,非圆桌场景为空 → 工具自述「无」)。始终提供(只读、无副作用);圆桌
|
||||
# 总控/报告角色由 run policy 显式排除,避免干扰它们。
|
||||
|
||||
Reference in new issue
Block a user