"""Server Loaders -- skill loading, pathway loading, tool loading, model config.

Each concern lives in its own submodule:
  - agents: Agent registration from config and directories
  - skills: Skill loading and script tool registration
  - tools: Dynamic tool loading and workspace tool discovery
  - models: Model routing configuration
  - pathways: Pathway loading from directories
"""

from server.loaders.agents import (
    load_agents_from_directories,
    register_agents_from_config,
)
from server.loaders.models import apply_model_config
from server.loaders.pathways import load_pathways_from_config
from server.loaders.skills import (
    load_builtin_skills,
    load_skills_from_config,
    register_skill_script_tools,
)
from server.loaders.tools import (
    create_tool_handler,
    load_registered_tools,
    load_workspace_tools,
)

__all__ = [
    "apply_model_config",
    "create_tool_handler",
    "load_agents_from_directories",
    "load_builtin_skills",
    "load_pathways_from_config",
    "load_registered_tools",
    "load_skills_from_config",
    "load_workspace_tools",
    "register_agents_from_config",
    "register_skill_script_tools",
]
