Add production condition retrieval smoke test

This commit is contained in:
2026-08-11 14:58:28 +07:00
parent 59e6ad2d0d
commit 7ebbe1f309
38 changed files with 3752 additions and 121 deletions
+11
View File
@@ -2,6 +2,7 @@ export interface Citation {
chunkId: string;
drugName: string;
sectionType: string;
sourceDocument?: string;
/** Printed page numbers as they appear in the book — what a clinician reads off their paper copy. */
sourcePageRange: [number, number];
/** PyMuPDF 0-indexed page of the physical PDF file — NOT the printed page. Add 1 for a `#page=` viewer fragment. */
@@ -43,6 +44,15 @@ export interface AnswerPlan {
needsWarning: boolean;
}
export interface MedicationCandidateAssessment {
drugId: string;
drugName: string;
indicationSupported: boolean;
status: string;
indicationSourceIds: string[];
safetySourceIds: string[];
}
export interface ChatMessage {
id: string;
role: "user" | "assistant";
@@ -68,6 +78,7 @@ export interface ChatMessage {
blocks?: AnswerBlock[];
answerMode?: "concise" | "normal" | "detailed";
answerPlan?: AnswerPlan;
candidateAssessments?: MedicationCandidateAssessment[];
}
export interface SendMessageRequest {