AISR / web /src /interface.ts
zhzabcd's picture
Upload 101 files
755dd12 verified
raw
history blame contribute delete
572 Bytes
export interface IQueryResult {
related?: string;
answer?: string;
contexts?: Record<string, any>[];
images?: Record<string, any>[];
}
export interface ISelectOptions {
name: string;
value: string;
}
export type Role = 'user' | 'assistant'
export type Provider = 'ollama' | 'lmstudio';
export interface IMessage {
role: Role;
content: string;
}
export type TSearCategory = 'general' | 'science' | 'images' | 'videos' | 'news'
export type TSearchMode = 'simple' | 'deep' | 'research'
export type TSearchEngine = 'GOOGLE' | 'BING' | 'SOGOU' | 'SEARXNG'