Add pydantic Object for llm response and rework decision making

This commit is contained in:
robinrolle
2025-04-12 21:51:40 +02:00
parent 94ba43183a
commit 22636070d7
2 changed files with 71 additions and 26 deletions

View File

@ -1,7 +1,6 @@
# TODO
# account.reference_currency corresponds to passport.country
from pydantic import BaseModel
from typing import Literal, Optional
# account.country ~ passport.country
# account.country ~ description.nationality
# account.city is in account.country
class AssistantDecision(BaseModel):
decision: Literal["Accept", "Reject"]
reason: Optional[str] = None