f92f0a3e5d
* feat(core): change llmtool to claude skills like func call * feat: refactor tool execution logic in ToolLoopAgentRunner for improved clarity and efficiency * feat(core): 添加工具调用模式配置选项 新增 tool_schema_mode 配置项,支持两种工具调用模式: - skills_like:先发送工具名称和描述,再查询参数(两阶段) - full:一次性发送完整工具模式 更新了默认配置、配置元数据定义以及代理子阶段处理逻辑, 添加了完整的工具调用提示语句,并在仪表板中提供了国际化支持。 * feat: 优化工具集获取逻辑,添加轻量和参数工具集返回方法 * refactor(runner): 重构工具模式处理逻辑到ToolLoopAgentRunner - 将工具集激活逻辑提取到新的_build_active_tool_set方法中 - 实现工具模式配置功能,支持full和light模式的动态切换 - 移除InternalAgentSubStage中的工具模式应用逻辑,统一在runner中处理 - 添加_tool_schema_full_set和_tool_schema_param_set实例变量来管理工具集状态 - 修改工具查询逻辑以使用新的工具集管理方式 * fix: update default tool_schema_mode to 'full' in InternalAgentSubStage * refactor: rename TOOL_CALL_PROMPT_FULL to TOOL_CALL_PROMPT_SKILLS_LIKE_MODE and update prompt logic --------- Co-authored-by: Soulter <905617992@qq.com>
AstrBot 管理面板
基于 CodedThemes/Berry 模板开发。