"""설정 모델 — config.toml 의 구조를 정의한다.""" from pydantic import BaseModel class ServerConfig(BaseModel): name: str = "NEGO_AGENT" port: int = 53117 host: str = "0.0.0.0" class OpenAIConfig(BaseModel): model: str = "gpt-4o" # 비워두면 OPENAI_API_KEY 환경변수를 사용한다 api_key: str = "" class ProfilingConfig(BaseModel): """N-profiling(LLM 스크립트 톤 변환) — 전역 on/off. 요청별 override 가능.""" enabled: bool = True class InstrumentConfig(BaseModel): """평가 계측 — 경로를 비우면 해당 계측을 끈다.""" tension_log: str = "data/tension_log.jsonl" # ⑩ 예측 긴장도 response_time_log: str = "data/response_time.jsonl" # ⑥ 답변속도 contracts_log: str = "data/contracts.jsonl" # ⑦ 계약 데이터화 class AppConfig(BaseModel): server: ServerConfig = ServerConfig() openai: OpenAIConfig = OpenAIConfig() profiling: ProfilingConfig = ProfilingConfig() instrument: InstrumentConfig = InstrumentConfig()