Checkpoint frontend UI/UX overhaul and ingestion embed benchmark work
This commit is contained in:
@@ -2,6 +2,8 @@ export interface Citation {
|
||||
drugName: string;
|
||||
sectionType: string;
|
||||
sourcePageRange: [number, number];
|
||||
snippet?: string;
|
||||
reason?: string;
|
||||
}
|
||||
|
||||
export interface ChatMessage {
|
||||
@@ -10,9 +12,23 @@ export interface ChatMessage {
|
||||
content: string;
|
||||
citations?: Citation[];
|
||||
disclaimer?: string;
|
||||
traceId?: string;
|
||||
decision?: string;
|
||||
reason?: string;
|
||||
grounded?: boolean;
|
||||
resolvedDrugId?: string;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface SendMessageRequest {
|
||||
content: string;
|
||||
conversationId?: string;
|
||||
subjectScope?: "human" | "veterinary";
|
||||
userRole?: "doctor" | "pharmacist" | "general";
|
||||
}
|
||||
|
||||
export interface SendMessageResponse {
|
||||
message: ChatMessage;
|
||||
sessionId?: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
export interface ChatSession {
|
||||
id: string;
|
||||
title: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
messageCount: number;
|
||||
lastDrugQueried?: string;
|
||||
}
|
||||
|
||||
export interface SessionHistoryResponse {
|
||||
sessions: ChatSession[];
|
||||
}
|
||||
@@ -1 +1,3 @@
|
||||
export * from "./dto/chat";
|
||||
export * from "./dto/session";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user