feat(knowledge): add short-term ask memory

This commit is contained in:
2026-07-18 21:22:49 +08:00
parent 2eda757483
commit 064816a784
33 changed files with 1348 additions and 99 deletions
+24
View File
@@ -126,6 +126,11 @@ export interface KnowledgeSearchResponse {
usedSpaceCodes?: string[];
noEvidence?: boolean;
data?: unknown;
conversationId?: string | null;
contextVersion?: number | null;
intent?: 'QA' | 'FILE' | 'VIDEO' | 'DATA_TOOL' | string;
rewrittenQuery?: string;
resources?: KnowledgeResource[];
}
export interface KnowledgeMediaSelectedFile {
@@ -144,6 +149,20 @@ export interface KnowledgeCitation {
fragmentId?: number | null;
}
export interface KnowledgeResource {
attachmentId: number;
title: string;
type: 'FILE' | 'VIDEO';
contentUrl: string;
localUrl?: string;
loading?: boolean;
}
export interface KnowledgeConversationState {
conversationId: string;
contextVersion: number;
}
export interface UnifiedKnowledgeResponse {
requestId: string;
queryText: string;
@@ -154,6 +173,11 @@ export interface UnifiedKnowledgeResponse {
promptVersion?: string | null;
legacy?: KnowledgeSearchResponse | null;
data?: unknown;
conversationId?: string | null;
contextVersion?: number | null;
intent?: 'QA' | 'FILE' | 'VIDEO' | 'DATA_TOOL' | string;
rewrittenQuery?: string;
resources?: KnowledgeResource[];
}
export interface CaseCapabilities {