@tabula/ui-ai-chat
Version:
Allows to embed UI for conversation with AI assistant
14 lines (13 loc) • 547 B
TypeScript
import { ReactNode } from 'react';
import { InternalConversationController, Request, TableAction } from '../types';
export type Props = {
className?: string;
conversation: Request[];
empty?: () => ReactNode;
isPending: boolean;
maxPromptLength?: number;
onResend: (index: number, prompt: string) => void;
pendingPlaceholder?: string;
tableActions: TableAction[];
};
export declare const Conversation: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<InternalConversationController>>;