export interface IChatbotResponse { message: string; confidence: number; sources?: string[]; tokensUsed: number; context?: Record; } export interface IChatContext { userId: string; sessionId: string; conversationHistory: IChatMessage[]; userPreferences?: Record; businessContext?: Record; } export interface IChatMessage { content: string; type: "user" | "bot" | "system"; timestamp: Date; metadata?: Record; } export interface ILLMConfig { model: string; temperature: number; maxTokens: number; topP: number; apiKey: string; } export interface IDataSource { query: (question: string, context?: Record) => Promise; type: "database" | "vector" | "api"; name: string; }