- 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>
36 lines
748 B
Python
36 lines
748 B
Python
from pydantic import BaseModel, Field
|
|
from typing import Optional, List, Literal
|
|
|
|
|
|
class CommandRequest(BaseModel):
|
|
agent: str
|
|
action: str
|
|
params: Optional[dict] = None
|
|
|
|
|
|
class ApprovalRequest(BaseModel):
|
|
agent: str
|
|
task_id: str
|
|
approved: bool
|
|
feedback: Optional[str] = None
|
|
|
|
|
|
class AgentConfigUpdate(BaseModel):
|
|
enabled: Optional[bool] = None
|
|
schedule_config: Optional[dict] = None
|
|
custom_config: Optional[dict] = None
|
|
|
|
|
|
class PriceAlertConfig(BaseModel):
|
|
symbol: str
|
|
name: str
|
|
target_price: float
|
|
direction: str # "above" or "below"
|
|
|
|
|
|
class ComposeCommand(BaseModel):
|
|
prompt: str
|
|
style: Optional[str] = None
|
|
model: Optional[str] = "V4"
|
|
instrumental: Optional[bool] = False
|