| from __future__ import annotations | |
| import os | |
| from pathlib import Path | |
| def _resolve_path(*, base_dir: Path, value: str | None, default_rel: str) -> str: | |
| raw = str(value or "").strip() | |
| if raw == "": | |
| raw = default_rel | |
| p = Path(raw).expanduser() | |
| if p.is_absolute(): | |
| return str(p.resolve()) | |
| return str((base_dir / p).resolve()) | |
| _base_dir = Path(__file__).resolve().parents[1] | |
| DB_PATH = _resolve_path(base_dir=_base_dir, value=os.getenv("ORCHESTRATOR_DB_PATH"), default_rel="orchestrator/data/mvp.db") | |
| FASTAPI_URL = os.getenv("FASTAPI_URL") or "http://127.0.0.1:8000" | |
| # AI Agent Configuration | |
| AGENT_LLM_API_KEY = os.getenv("AGENT_LLM_API_KEY", "") | |
| AGENT_LLM_MODEL = os.getenv("AGENT_LLM_MODEL", "gpt-4o") | |
| AGENT_LLM_BASE_URL = os.getenv("AGENT_LLM_BASE_URL", "https://api.openai.com/v1") | |