Загрузить файлы в «/»

This commit is contained in:
dapa46 committed 2025-12-06 15:05:12 +03:00
1 parent dfe2c34674
commit af2033b2bd
1 file changed
+18
+18
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