feat: add query observability and collation safeguards
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 || []
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user