/** * 分行业知识库实体(Req 14)。 * * 按行业标识分区存储;每个行业分区须包含五类必备内容,缺任一类拒绝创建分区。 */ import type { Industry } from './common.js'; import type { Indicator, Redline, Template } from './model.js'; /** * 权重模板项:为某指标或维度预设的权重基线。 */ export interface WeightTemplateEntry { /** 目标维度或指标标识。 */ targetId: string; /** 预设权重值(0 至 100)。 */ weight: number; } /** * 典型案例:行业内的参考评估案例。 */ export interface CaseStudy { /** 案例唯一标识。 */ id: string; /** 案例标题。 */ title: string; /** 案例描述/要点。 */ summary: string; } /** * 追问话术项:行业相关的补全问题文案。 */ export interface AskPrompt { /** 关联指标标识。 */ indicatorId: string; /** 问题文案。 */ prompt: string; } /** * 行业分区(IndustryPartition,Req 14.1, 14.4)。 * 五类必备内容:Indicator、权重模板、Redline、典型案例、追问话术;缺任一类非法。 */ export interface IndustryPartition { /** 行业标识。 */ industryId: Industry; /** 指标集合。 */ indicators: Indicator[]; /** 权重模板集合。 */ weightTemplates: WeightTemplateEntry[]; /** 红线集合。 */ redlines: Redline[]; /** 典型案例集合。 */ cases: CaseStudy[]; /** 追问话术集合。 */ askPrompts: AskPrompt[]; /** 该分区下的模板集合。 */ templates: Template[]; } /** * 分行业知识库(KnowledgeBase,Req 14.1)。 * 无匹配行业分区时回退默认分区并标注未匹配(Req 14.5)。 */ export interface KnowledgeBase { /** 行业分区集合。 */ partitions: IndustryPartition[]; }