feat: AI patient onboarding backend and documentation
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user