Add missing Pydantic schemas for BotConversation and Signal

Based on IMPLEMENTATION_PLAN.md Section 4 schema, the existing schemas.py
was missing schemas for:
- BotConversationCreate/Response (for bot_conversations table)
- SignalResponse (for signals table)

These were identified as gaps during issue #3 review.
This commit is contained in:
shokollm
2026-04-08 04:41:31 +00:00
parent 6977203748
commit a5e41ab449

View File

@@ -91,3 +91,35 @@ class SimulationResponse(BaseModel):
class Config: class Config:
from_attributes = True from_attributes = True
class BotConversationCreate(BaseModel):
role: str
content: str
class BotConversationResponse(BaseModel):
id: str
bot_id: str
role: str
content: str
created_at: datetime
class Config:
from_attributes = True
class SignalResponse(BaseModel):
id: str
bot_id: str
run_id: str
signal_type: str
token: str
price: float
confidence: Optional[float]
reasoning: Optional[str]
executed: bool
created_at: datetime
class Config:
from_attributes = True