feat: add query observability and collation safeguards

This commit is contained in:
key
2026-08-04 02:15:03 +08:00
parent 721839c847
commit 12fc9fdddc
22 changed files with 575 additions and 22 deletions
+8
View File
@@ -146,6 +146,7 @@
>同意查询全网</button>
</view>
<view v-if="msg.result.keyPoints?.length" class="bubble-keypoints">
<text class="bubble-section-label">具体办理流程</text>
<text v-for="(point, index) in msg.result.keyPoints" :key="point" class="bubble-keypoint">
{{ index + 1 }}. {{ cleanOrderedText(point) }}
</text>
@@ -3103,6 +3104,13 @@ onUnload(() => {
border-top: 1px dashed #eceff2;
}
.bubble-section-label {
color: #4c5a6a;
font-size: 12px;
font-weight: 600;
line-height: 1.4;
}
.bubble-keypoint {
color: #38424e;
font-size: 14px;
+3 -1
View File
@@ -120,6 +120,8 @@ export const normalizeAgentResponse = (
agentStatus: response.status,
agentIntent: response.intent,
sourceSummary: response.sourceSummary || [],
clarification: response.clarification || null
clarification: response.clarification || null,
keyPoints: response.keyPoints || [],
cautions: response.cautions || []
};
};
+2
View File
@@ -303,6 +303,8 @@ export interface AgentResponse {
actionDraft?: AgentActionDraft | null;
clarification?: AgentClarification | null;
nextActions: string[];
keyPoints?: string[];
cautions?: string[];
}
export type MemoryCandidateStatus = 'DRAFT' | 'NEEDS_INPUT' | 'CONFIRMED' | 'DISMISSED' | 'EXPIRED' | string;