This commit is contained in:
21 changed files with 594 additions and 0 deletions

0
app/models/__init__.py Normal file
View File

Binary file not shown.

Binary file not shown.

18
app/models/schemas.py Normal file
View File

@@ -0,0 +1,18 @@
from enum import StrEnum
from pydantic import BaseModel, Field
class AgentOption(StrEnum):
AUTO = "Авто"
LAWYER = "Юрист"
ECONOMIST = "Экономист"
WEB_DEVELOPER = "Web_developer"
ACCOUNTANT = "Бухгалтер"
PSYCHOLOGIST = "Психолог"
class ChatRequest(BaseModel):
message: str = Field(..., min_length=1, max_length=4000)
agent: AgentOption = AgentOption.AUTO
class ChatResponse(BaseModel):
reply: str
agent_used: str