feat: AI patient onboarding backend and documentation

This commit is contained in:
2026-08-27 12:15:09 +05:30
parent b9440772d1
commit 59c1372fe3
49 changed files with 4012 additions and 0 deletions
@@ -0,0 +1,31 @@
from typing import Optional
from pydantic import BaseModel
from app.schemas.onboarding import CategoryContext, PatientContext
class StartVoiceOnboardingRequest(BaseModel):
patient: PatientContext
category: CategoryContext
language: str = "en-IN"
class StartVoiceOnboardingResponse(BaseModel):
success: bool
session_id: str
patient_id: str
category: CategoryContext
language: str
status: str
stage: str
greeting_text: str
audio_url: str
class VoiceTurnResponse(BaseModel):
success: bool
session_id: str
patient_transcript: str
ai_text: str
stage: str
completed: bool = False
audio_url: str