초기 커밋 — 협상 AI 에이전트 정본: 엔진·데모 콘솔·측정 인프라·증빙
- server/: FastAPI 협상 엔진 (5라운드, Q-Table/UCB, 페르소나 계측, :53117) - frontend/: 데모 콘솔 (React+Tailwind → nginx, /api 프록시) - eval/·testdata/: 지표 8종 측정 하네스 + 재현 가능 테스트셋 - results/: 측정 증빙 (지표별 result+provenance, raw 원본 동결+SHA256) ① 86.0 · ② 76.0 · ③ 5.99% · ⑥ p95 3.61ms · ⑦ 611만/년 · ⑧ 91/100 · ⑨ 99.71 · ⑩ 97.99 - docker-compose.yml + run.sh: backend+frontend 일괄 기동 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0112XUWF4bc3gGrEt8vsYCzy
This commit is contained in:
commit
dfb9ad6e66
268 files changed
+164241
No files matched your search
@@ -0,0 +1,34 @@
|
||||
"""설정 모델 — 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()
|
||||
Reference in new issue
Block a user