File size: 853 Bytes
bcce4a5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export interface ApiResponse {
  updated_profile: UserProfile;
  updated_history: string[];
  is_profile_complete: boolean;
  plan_recommendations?: PlanRecommendations | null;
}

export interface Plan {
  plan_name: string;
  plan_type: string;
  key_features: string[];
  estimated_premium: string;
  reasoning: string;
}

export interface UserProfile {
  zip_code?: string;
  city?: string;
  state?: string;
  county?: string;
  age?: number;
  gender?: string;
  household_size?: number;
  income?: number;
  employment_status?: string;
  citizenship?: string;
  medical_history?: string | null;
  medications?: string | null;
  special_cases?: string | null;
}

export interface PlanRecommendations {
  recommendations: Plan[];
}

export interface ChatMessage {
  role: 'user' | 'agent';
  content: string;
  timestamp: number;
  plans?: Plan[];
}