Remove corpus counts from chat chrome

This commit is contained in:
2026-08-10 17:26:58 +07:00
parent 46469468bb
commit 97cb6d16f4
31 changed files with 2192 additions and 424 deletions
+24
View File
@@ -23,6 +23,26 @@ export interface Citation {
sourceCropUrl?: string;
}
export interface AnswerClaim {
text: string;
/** Stable backend chunk ids; resolved against `message.citations` by the UI. */
sourceIds: string[];
}
export interface AnswerBlock {
title: string;
kind: "fact_list" | "warning" | "dosage" | string;
claims: AnswerClaim[];
}
export interface AnswerPlan {
verbosity: "concise" | "normal" | "detailed";
layout: "prose" | "bullet_list" | "dosage" | string;
reasoningMode: "direct_lookup" | "synthesis" | "grounded_inference" | string;
showHeading: boolean;
needsWarning: boolean;
}
export interface ChatMessage {
id: string;
role: "user" | "assistant";
@@ -44,6 +64,10 @@ export interface ChatMessage {
* and the UI must fall back to free text either way.
*/
quickReplies?: string[];
/** Verified semantic structure from the answer service; never inferred from prose by the UI. */
blocks?: AnswerBlock[];
answerMode?: "concise" | "normal" | "detailed";
answerPlan?: AnswerPlan;
}
export interface SendMessageRequest {