feat: ensure essential tools are always included in LLM tool selection and update tests

- Add mechanism to always include core tools (e.g., file operations, command execution) in LLMToolSelectorMiddleware
- Update MoviePilotToolFactory to provide filtered always-include tool names based on loaded tools
- Set default LLM_MAX_TOOLS to 30 in config
- Refactor agent initialization to support always_include parameter
- Enhance tests to cover always_include logic and async agent creation
This commit is contained in:
jxxghp
2026-04-30 13:04:52 +08:00
parent 28a2386f2f
commit 53f6897d62
4 changed files with 74 additions and 9 deletions
+1 -1
View File
@@ -547,7 +547,7 @@ class ConfigModel(BaseModel):
# AI推荐条目数量限制
AI_RECOMMEND_MAX_ITEMS: int = 50
# LLM工具选择中间件最大工具数量,0为不启用工具选择中间件
LLM_MAX_TOOLS: int = 0
LLM_MAX_TOOLS: int = 30
# AI智能体定时任务检查间隔(小时),0为不启用,默认24小时
AI_AGENT_JOB_INTERVAL: int = 0
# AI智能体啰嗦模式,开启后会回复工具调用过程