@copilotkit/react-ui
Version:
<div align="center"> <a href="https://copilotkit.ai" target="_blank"> <img src="https://github.com/copilotkit/copilotkit/raw/main/assets/banner.png" alt="CopilotKit Logo"> </a>
20 lines (17 loc) • 854 B
TypeScript
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 };