Update web page config
This commit is contained in:
40
web/types.ts
40
web/types.ts
@@ -41,6 +41,16 @@ export interface KnowledgeDocument {
|
||||
uploadDate: string;
|
||||
}
|
||||
|
||||
export type InteractionType = 'text' | 'audio' | 'video';
|
||||
|
||||
export interface InteractionDetail {
|
||||
role: 'user' | 'assistant';
|
||||
content: string; // Text content or transcript
|
||||
audioUrl?: string; // Placeholder for audio url
|
||||
imageUrls?: string[]; // For video frames
|
||||
timestamp: string;
|
||||
}
|
||||
|
||||
export interface CallLog {
|
||||
id: string;
|
||||
source: 'debug' | 'external';
|
||||
@@ -48,6 +58,8 @@ export interface CallLog {
|
||||
startTime: string;
|
||||
duration: string;
|
||||
agentName: string;
|
||||
type: InteractionType;
|
||||
details?: InteractionDetail[];
|
||||
}
|
||||
|
||||
export interface Workflow {
|
||||
@@ -127,3 +139,31 @@ export interface AutoTestAssistant {
|
||||
intelligentPrompt: string;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface Tool {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string;
|
||||
category: 'system' | 'query';
|
||||
icon: string;
|
||||
isCustom?: boolean;
|
||||
}
|
||||
|
||||
export interface LLMModel {
|
||||
id: string;
|
||||
name: string;
|
||||
vendor: string;
|
||||
type: 'text' | 'embedding' | 'rerank';
|
||||
baseUrl: string;
|
||||
apiKey: string;
|
||||
temperature?: number;
|
||||
}
|
||||
|
||||
export interface ASRModel {
|
||||
id: string;
|
||||
name: string;
|
||||
vendor: 'OpenAI Compatible';
|
||||
language: string;
|
||||
baseUrl: string;
|
||||
apiKey: string;
|
||||
}
|
||||
Reference in New Issue
Block a user