feat(agent): move mobile ask to unified agent

This commit is contained in:
2026-07-24 22:36:14 +08:00
parent 6ba4e06a2f
commit 5b7c5613f5
12 changed files with 368 additions and 62 deletions
+54
View File
@@ -152,6 +152,10 @@ export interface KnowledgeSearchResponse {
resources?: KnowledgeResource[];
memoryCandidate?: MemoryCandidate | null;
broadcastContext?: BroadcastKnowledgeContext | null;
agentStatus?: AgentStatus;
agentIntent?: AgentIntent;
sourceSummary?: AgentSourceSummary[];
clarification?: AgentClarification | null;
}
export interface KnowledgeMediaSelectedFile {
@@ -214,6 +218,55 @@ export interface UnifiedKnowledgeResponse {
broadcastContext?: BroadcastKnowledgeContext | null;
}
export type AgentStatus = 'COMPLETED' | 'NEEDS_INPUT' | 'NEEDS_CONFIRMATION' | 'NO_EVIDENCE' | 'FORBIDDEN' | 'UNAVAILABLE' | 'FAILED';
export type AgentIntent =
| 'KNOWLEDGE_QA'
| 'RESOURCE_DELIVERY'
| 'LIVE_MY_WORK'
| 'LIVE_TEAM_WORK'
| 'PRACTICE_COACHING'
| 'CAPTURE_FACT'
| 'DRAFT_ACTION'
| 'MEDIA_UNDERSTANDING'
| 'WEB_RESEARCH'
| 'CLARIFY'
| 'SOCIAL';
export interface AgentSourceSummary {
type: 'ENTERPRISE_KNOWLEDGE' | 'LIVE_DATA' | 'MEMORY_DRAFT' | 'MEDIA' | 'WEB' | string;
label: string;
verifiedAt: string;
}
export interface AgentActionDraft {
draftId: string;
type: string;
version: number;
payload: MemoryCandidate;
}
export interface AgentClarification {
prompt: string;
fields: string[];
}
export interface AgentResponse {
runId: string;
conversationId?: string | null;
contextVersion?: number | null;
intent: AgentIntent;
status: AgentStatus;
answer: string;
sourceSummary: AgentSourceSummary[];
citations: KnowledgeCitation[];
resources: KnowledgeResource[];
data?: unknown;
actionDraft?: AgentActionDraft | null;
clarification?: AgentClarification | null;
nextActions: string[];
}
export type MemoryCandidateStatus = 'DRAFT' | 'NEEDS_INPUT' | 'CONFIRMED' | 'DISMISSED' | 'EXPIRED' | string;
export type MemoryTargetDomain = 'ASSISTANT_CAPTURE' | 'PERSONAL' | 'COMPANY' | 'PROJECT_SERVICE' | string;
@@ -254,6 +307,7 @@ export interface MemoryCandidate {
missingFields: string[];
expiresAt: string | null;
source?: WorkSourceSnapshot | null;
agentDraftId?: string;
}
export interface MemoryConfirmRequest {