refactor(agent-office): tarot 모듈 제거 (tarot-lab으로 cutover 완료)
- DELETE: app/tarot/ 디렉토리 (pipeline, prompt, schema 모듈) - DELETE: app/routers/tarot.py (FastAPI 라우터) - DELETE: 4개 tarot 테스트 파일 (test_tarot_*.py) - MODIFY: app/main.py — tarot 라우터 import + register 제거 - MODIFY: app/models.py — 5개 Tarot* 클래스 제거 - MODIFY: app/config.py — 4개 TAROT_* 환경변수 제거 - MODIFY: app/db.py — 6개 tarot_readings CRUD 함수 제거 KEEP: - tarot_readings CREATE TABLE 블록 (DB 호환성) - CREATE INDEX ... tarot_readings 인덱스 2개 - scripts/migrate_tarot_to_lab.py (cutover 마이그레이션) - tests/test_migrate_tarot.py (마이그레이션 테스트) 테스트: 88 pass (migrate_tarot tests 포함) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -33,46 +33,3 @@ class ComposeCommand(BaseModel):
|
||||
style: Optional[str] = None
|
||||
model: Optional[str] = "V4"
|
||||
instrumental: Optional[bool] = False
|
||||
|
||||
|
||||
class TarotCardDraw(BaseModel):
|
||||
position: str
|
||||
card_id: str
|
||||
reversed: bool = False
|
||||
|
||||
|
||||
class TarotInterpretRequest(BaseModel):
|
||||
spread_type: Literal["one_card", "three_card"]
|
||||
category: Optional[str] = None
|
||||
question: Optional[str] = None
|
||||
cards: List[TarotCardDraw]
|
||||
cards_reference: str = Field(..., min_length=1)
|
||||
context_meta: dict = Field(default_factory=dict)
|
||||
|
||||
|
||||
class TarotInterpretResponse(BaseModel):
|
||||
interpretation_json: dict
|
||||
model: str
|
||||
tokens_in: int
|
||||
tokens_out: int
|
||||
cost_usd: float
|
||||
latency_ms: int
|
||||
reroll_count: int = 0
|
||||
|
||||
|
||||
class TarotSaveRequest(BaseModel):
|
||||
spread_type: Literal["one_card", "three_card"]
|
||||
category: Optional[str] = None
|
||||
question: Optional[str] = None
|
||||
cards: List[TarotCardDraw]
|
||||
interpretation_json: dict
|
||||
model: str
|
||||
tokens_in: int
|
||||
tokens_out: int
|
||||
cost_usd: float
|
||||
confidence: Optional[str] = None
|
||||
|
||||
|
||||
class TarotPatchRequest(BaseModel):
|
||||
favorite: Optional[bool] = None
|
||||
note: Optional[str] = None
|
||||
|
||||
Reference in New Issue
Block a user