from pydantic import BaseModel class TransactionFlowResponse(BaseModel): id: str source: str target: str amount: float timestamp: str type: str category: str risk_score: float = 0.0