feat(agent-office): Tarot Pydantic 모델 + config 추가 (T2)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -38,3 +38,9 @@ LOTTO_DIGEST_HOUR = int(os.getenv("LOTTO_DIGEST_HOUR", "9"))
|
|||||||
LOTTO_DIGEST_MIN = int(os.getenv("LOTTO_DIGEST_MIN", "25"))
|
LOTTO_DIGEST_MIN = int(os.getenv("LOTTO_DIGEST_MIN", "25"))
|
||||||
LOTTO_THROTTLE_HOURS = int(os.getenv("LOTTO_THROTTLE_HOURS", "6"))
|
LOTTO_THROTTLE_HOURS = int(os.getenv("LOTTO_THROTTLE_HOURS", "6"))
|
||||||
LOTTO_URGENT_DAILY_MAX = int(os.getenv("LOTTO_URGENT_DAILY_MAX", "3"))
|
LOTTO_URGENT_DAILY_MAX = int(os.getenv("LOTTO_URGENT_DAILY_MAX", "3"))
|
||||||
|
|
||||||
|
# Tarot Lab
|
||||||
|
TAROT_MODEL = os.getenv("TAROT_MODEL", "claude-sonnet-4-6")
|
||||||
|
TAROT_COST_INPUT_PER_M = float(os.getenv("TAROT_COST_INPUT_PER_M", "3.0"))
|
||||||
|
TAROT_COST_OUTPUT_PER_M = float(os.getenv("TAROT_COST_OUTPUT_PER_M", "15.0"))
|
||||||
|
TAROT_TIMEOUT_SEC = int(os.getenv("TAROT_TIMEOUT_SEC", "60"))
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
from pydantic import BaseModel
|
from pydantic import BaseModel, Field
|
||||||
from typing import Optional
|
from typing import Optional, List, Literal
|
||||||
|
|
||||||
|
|
||||||
class CommandRequest(BaseModel):
|
class CommandRequest(BaseModel):
|
||||||
@@ -33,3 +33,46 @@ class ComposeCommand(BaseModel):
|
|||||||
style: Optional[str] = None
|
style: Optional[str] = None
|
||||||
model: Optional[str] = "V4"
|
model: Optional[str] = "V4"
|
||||||
instrumental: Optional[bool] = False
|
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