File size: 567 Bytes
5b9f9a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import os
from pathlib import Path
import yaml

PROJECT_ROOT = Path(__file__).parent.parent.parent
CONFIG_DIR = PROJECT_ROOT / "config"


def load_yaml(path: Path) -> dict:
    with open(path, "r", encoding="utf-8") as f:
        return yaml.safe_load(f)


def load_settings() -> dict:
    return load_yaml(CONFIG_DIR / "settings.yaml")


def load_agents_config() -> dict:
    return load_yaml(CONFIG_DIR / "agents.yaml")


def load_mcp_config() -> dict:
    return load_yaml(CONFIG_DIR / "mcp_servers.yaml")


def get_project_root() -> Path:
    return PROJECT_ROOT