- POST /api/culprit/matches/:id/analyze: 등록된 앱 유저 이상(다시 분석은 관리자), 월 $100 · 하루 20회 · 중복 잠금 - Claude Opus 5.5 (생각 high, 구조화 출력, 출력 32k 상한, 거절 시 서버 측 fallback), 지시문 + 게임별 지식 묶음(자동 갱신 칸은 공식 데이터로 하루 한 번) - 결과 확인: 10명 · 0.5 단위 점수 · 태그 · 팀마다 범인 1명(팀 최저점) · 없는 근거 번호 제거, 범인 근거가 안 맞으면 한 번 다시 - 비용 장부(culprit-ledger.json)는 토큰 · 비용만, 진행 단계는 실시간 알림(culprit.progress) - 지시문 v1.1: 범인 = 가장 못함 + 가장 발목 + 결과의 원인 종합 판단, 자료 약어 설명 추가 - 배포: Dockerfile 에 prompt/ 복사, ANTHROPIC_API_KEY 넣는 스크립트 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
53 lines
2.1 KiB
JSON
53 lines
2.1 KiB
JSON
{
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["summary", "confidence", "confidence_note", "teams", "players"],
|
|
"properties": {
|
|
"summary": { "type": "string", "description": "경기 한 줄 요약, 1~2문장" },
|
|
"confidence": { "type": "string", "enum": ["high", "medium", "low"] },
|
|
"confidence_note": { "type": "string", "description": "confidence 가 medium/low 인 이유. high 면 빈 문자열" },
|
|
"teams": {
|
|
"type": "array",
|
|
"description": "우리 팀, 상대 팀 순서로 2개",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["team", "culprit", "reason", "evidence"],
|
|
"properties": {
|
|
"team": { "type": "string", "enum": ["ally", "enemy"] },
|
|
"culprit": { "type": "string", "description": "P1~P10" },
|
|
"reason": { "type": "string", "description": "2~3문장" },
|
|
"evidence": { "type": "array", "items": { "$ref": "#/$defs/evidence" } }
|
|
}
|
|
}
|
|
},
|
|
"players": {
|
|
"type": "array",
|
|
"description": "P1~P10 순서로 10명",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["id", "score", "tag", "comment", "evidence"],
|
|
"properties": {
|
|
"id": { "type": "string", "description": "P1~P10" },
|
|
"score": { "type": "number", "description": "1.0~10.0, 0.5 단위" },
|
|
"tag": { "type": "string", "enum": ["캐리", "숨은 MVP", "클러치", "무난", "아쉬움", "범인"] },
|
|
"comment": { "type": "string", "description": "한 줄 평, 40자 안팎" },
|
|
"evidence": { "type": "array", "items": { "$ref": "#/$defs/evidence" } }
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"$defs": {
|
|
"evidence": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["ref", "note"],
|
|
"properties": {
|
|
"ref": { "type": "string", "description": "자료의 근거 번호: e123 · u456 · c7 · r21 · s:P4" },
|
|
"note": { "type": "string", "description": "이 근거가 뜻하는 것. 대화면 원문 인용" }
|
|
}
|
|
}
|
|
}
|
|
}
|