Spaces:
Sleeping
Sleeping
File size: 1,403 Bytes
e8cd1ef | 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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | export type Language = "en" | "hi" | "te" | "ta" | "bn" | "gu";
export type TestType = "riasec" | "values" | "personal";
export interface UserProfile {
name: string;
class: string;
age?: string;
language: Language;
email?: string;
phone?: string;
}
export interface AssessmentAnswer {
[questionId: number]: string | string[];
}
export interface AssessmentPayload {
userProfile: UserProfile;
tests: {
type: TestType;
answers: AssessmentAnswer;
}[];
completedAt: string;
assessmentId: number;
}
export interface CareerRecommendation {
title: string;
confidence: number;
reason: string;
next_steps: string[];
}
export interface AssessmentResponse {
recommendations: CareerRecommendation[];
summary: string;
smsMessage?: string;
}
export interface ChatMessage {
role: "user" | "assistant";
content: string;
timestamp: Date;
}
export interface ChatSession {
sessionId: string;
assessmentId?: number;
assessmentSummary?: string;
messages: ChatMessage[];
createdAt: Date;
lastActivity: Date;
}
export interface ChatStartRequest {
sessionId: string;
assessmentId?: number;
assessmentSummary?: string;
language?: Language;
}
export interface ChatMessageRequest {
sessionId: string;
message: string;
language?: Language;
assessmentId?: number;
}
export interface ChatMessageResponse {
reply: string;
intent: string;
}
|