UNPKG

@copilotkit/react-core

Version:

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

26 lines (23 loc) 1.15 kB
import { UseCopilotChatOptions, UseCopilotChatReturn } from './use-copilot-chat_internal.js'; export { MCPServerConfig, defaultSystemMessage } from './use-copilot-chat_internal.js'; import '../types/system-message.js'; import '@copilotkit/runtime-client-gql'; import '@copilotkit/shared'; import '@copilotkitnext/react'; import '@copilotkitnext/core'; /** * Enterprise React hook that provides complete chat functionality for fully custom UI implementations. * Includes all advanced features like direct message access, suggestions array, interrupt handling, and MCP support. * * **Requires a publicApiKey** - Sign up for free at https://cloud.copilotkit.ai/ * * @param options - Configuration options for the chat * @returns Complete chat interface with all enterprise features * * @example * ```tsx * const { messages, sendMessage, suggestions, interrupt } = useCopilotChatHeadless_c(); * ``` */ declare function useCopilotChatHeadless_c(options?: UseCopilotChatOptions): UseCopilotChatReturn; export { UseCopilotChatOptions as UseCopilotChatOptions_c, UseCopilotChatReturn as UseCopilotChatReturn_c, useCopilotChatHeadless_c };