"""The Orchestration engine's settings, from the environment or `.env`.""" from __future__ import annotations from pydantic_settings import BaseSettings, SettingsConfigDict class OrchestrationSettings(BaseSettings): model_config = SettingsConfigDict( env_file=".env", env_file_encoding="utf-8", extra="ignore" ) AGENT_NAME: str = "orchestration_engine" AGENT_VERSION: str = "0.1.0" LOG_LEVEL: str = "INFO" A2A_HOST: str = "0.0.0.0" A2A_PORT: int = 8080 A2A_PUBLIC_URL: str | None = None # The agents it routes to: a YAML file of `agents: [{work, url, description}]`. AGENTS_FILE: str = "agents.yaml" # While an agent works, report that it still is at this interval, so a caller # that takes a silent stream for a dead one does not retry (ADR-0003). HEARTBEAT_SECONDS: float = 60 # How long to wait to connect to an agent. Reading waits as long as the # agent's work takes. CONNECT_TIMEOUT_SECONDS: float = 10