refactor: route agent tool settings through runtime

This commit is contained in:
jxxghp
2026-08-23 02:51:25 +08:00
parent 41ee5aacdc
commit 05d4ca79e7
7 changed files with 25 additions and 16 deletions
+3 -1
View File
@@ -4,7 +4,9 @@ import json
import shutil
from typing import Any, Optional
from app.runtime.config import settings
from app.runtime.settings import RuntimeSettingsCompat
settings = RuntimeSettingsCompat()
from app.application.plugin.runtime import get_plugin_manager
from app.application.plugin.install import PluginInstallCommand
from app.application.configuration import get_configured_system_config as SystemConfigOper
+3 -1
View File
@@ -14,7 +14,9 @@ from pathlib import Path
from typing import Any, Optional
from app.agent.tools.impl._command_safety import validate_command_safety
from app.runtime.config import settings
from app.runtime.settings import RuntimeSettingsCompat
settings = RuntimeSettingsCompat()
from app.runtime.log import logger
if os.name == "posix":
+3 -1
View File
@@ -6,7 +6,9 @@ from pydantic import BaseModel, Field
from app.agent.llm.capability import AgentCapabilityManager
from app.agent.tools.base import MoviePilotTool
from app.agent.tools.tags import ToolTag
from app.runtime.config import settings
from app.runtime.settings import RuntimeSettingsCompat
settings = RuntimeSettingsCompat()
from app.runtime.log import logger
from app.schemas.message import Message
from app.schemas.message import MessageType