UNPKG

@kitn.ai/chat

Version:

Framework-agnostic, Shadow-DOM web components for building AI chat interfaces — works in React, Vue, Angular, Svelte, or plain HTML. Authored in SolidJS.

48 lines (42 loc) 1.3 kB
// Types the chat kit components reference. Extracted from the kit's origin // project (@tab-zen/shared) so the kit is self-contained. Only the types the // components actually import are kept; the RAG/document/adapter types are dropped. export interface ModelOption { id: string; name: string; provider?: string; /** A short subtitle shown under the name (e.g. "Flagship model"). Takes * precedence over `provider` for the row subtitle when both are set. */ description?: string; /** Optional group name. Models sharing a `group` are collected under a * collapsible section (e.g. "Legacy models"); ungrouped models list first. */ group?: string; } export interface SearchFilters { tags?: string[]; authors?: string[]; contentType?: 'transcript' | 'markdown'; dateRange?: { from: string; to: string }; } export interface ConversationScope { type: 'document' | 'collection'; documentId?: string; filters?: SearchFilters; } export interface ConversationSummary { id: string; title: string; groupId?: string; scope: ConversationScope; messageCount: number; lastMessageAt: string; updatedAt: string; } export interface ConversationGroup { id: string; userId?: string; teamId?: string; name: string; sortOrder: number; createdAt: string; }