UNPKG

@prexo/ai-chat-sdk

Version:

AI Chat Component with Persistent History

37 lines (34 loc) 997 B
import React__default from 'react'; import { SuggestedActionsT } from '../../../lib/types.js'; import 'ai'; import '@upstash/vector'; interface PrexoAiChatBotProps { apiKey: string; suggestedActions?: SuggestedActionsT[]; sessionId?: string; sessionTTL?: number; onClose?: () => void; theme?: "light" | "dark"; user?: { name: string | "Prexo Ai"; pfp: string | "https://raw.githubusercontent.com/plura-ai/prexo/refs/heads/main/apps/www/public/logo.png"; lastSeen: Date; }; placeholder?: string; className?: string; width?: number | string; height?: number | string; position?: "bottom-right" | "bottom-left"; redis?: { url: string; token: string; }; vector?: { url: string; token: string; namespace: string; }; RAGDisabled?: boolean; } declare const PrexoAiChatBot: React__default.FC<PrexoAiChatBotProps>; export { PrexoAiChatBot, type PrexoAiChatBotProps };