feat(agent): add command-execute skill for intelligent command dispatch

- Enhance run_plugin_command tool to support all registered commands (system preset + plugin + other), not just plugin commands
- Add list_all_commands tool to discover all available commands with descriptions and categories
- Add command-execute skill that guides the agent to recognize user intent from natural language and match it to available system/plugin commands
This commit is contained in:
jxxghp
2026-04-06 23:45:48 +08:00
parent eb5e17a115
commit 7806267e92
4 changed files with 178 additions and 23 deletions
+2
View File
@@ -51,6 +51,7 @@ from app.agent.tools.impl.browse_webpage import BrowseWebpageTool
from app.agent.tools.impl.query_installed_plugins import QueryInstalledPluginsTool
from app.agent.tools.impl.query_plugin_capabilities import QueryPluginCapabilitiesTool
from app.agent.tools.impl.run_plugin_command import RunPluginCommandTool
from app.agent.tools.impl.list_all_commands import ListAllCommandsTool
from app.core.plugin import PluginManager
from app.log import logger
from .base import MoviePilotTool
@@ -126,6 +127,7 @@ class MoviePilotToolFactory:
QueryInstalledPluginsTool,
QueryPluginCapabilitiesTool,
RunPluginCommandTool,
ListAllCommandsTool,
]
# 创建内置工具
for ToolClass in tool_definitions: