UNPKG

cozy-search

Version:

UI components about search bar and IA assistant

18 lines (17 loc) 742 B
/** * CozyAssistantRuntimeProvider wraps assistant-ui's runtime with Cozy's * real-time WebSocket integration. * * This provider: * - Creates and manages the StreamBridge for WebSocket events * - Sets up cozy-realtime subscriptions to feed the bridge * - Creates the ChatModelAdapter for the conversation * - Loads existing conversation history from CouchDB * - Provides the runtime to child components via AssistantRuntimeProvider */ import { ReactNode } from 'react'; interface CozyAssistantRuntimeProviderProps { children: ReactNode; } declare const CozyAssistantRuntimeProviderWithErrorBoundary: (props: CozyAssistantRuntimeProviderProps) => JSX.Element | null; export default CozyAssistantRuntimeProviderWithErrorBoundary;