UNPKG

@intelidexer/react-native-chat-screen

Version:

A chat screen for InteliDexer based AI Agents.

33 lines (32 loc) 806 B
export type Role = "system" | "user" | "assistant"; export interface ChatMessage { id: string; role: Role; content: string; createdAt: number; imageData?: { uri: string; type: string; base64?: string; }; } export interface ChatScreenProps { baseUrl: string; enableStreaming?: boolean; showHeader?: boolean; keyboardBehavior?: 'padding' | 'position' | 'height'; keyboardVerticalOffset?: number; theme?: { background?: string; userBubble?: string; assistantBubble?: string; }; language: 'ar' | 'en'; getInfo: () => Promise<{ interests: string[]; calender_sessions: string[]; }>; addToCalendar: (sessionId: string) => Promise<void>; userId?: string; apiKey?: string; }