UNPKG

@copilotkit/react-ui

Version:

<img src="https://github.com/user-attachments/assets/0a6b64d9-e193-4940-a3f6-60334ac34084" alt="banner" style="border-radius: 12px; border: 2px solid #d6d4fa;" />

20 lines (17 loc) 854 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import { CopilotContextParams, CopilotMessagesContextParams, CopilotChatSuggestionConfiguration } from '@copilotkit/react-core'; interface SuggestionsProps { title: string; message: string; partial?: boolean; className?: string; onClick: () => void; } declare function Suggestion({ title, onClick, partial, className }: SuggestionsProps): react_jsx_runtime.JSX.Element; declare const reloadSuggestions: (context: CopilotContextParams & CopilotMessagesContextParams, chatSuggestionConfiguration: { [key: string]: CopilotChatSuggestionConfiguration; }, setCurrentSuggestions: (suggestions: { title: string; message: string; }[]) => void, abortControllerRef: React.MutableRefObject<AbortController | null>) => Promise<void>; export { Suggestion, reloadSuggestions };