Backward-compatibility shim that re-exports `useSseChatAdapter` under the legacy `useEmbeddedChat` name, preserving external consumer compatibility during the migration to the unified `useChat` API. ## Key Components | Export | Alias / Origin | Description | |--------|---------------|-------------| | `useEmbeddedChat` | `useSseChatAdapter` | Legacy hook name for the SSE/Guide-mode chat adapter | | `UseEmbeddedChatOptions` | `UseSseChatAdapterOptions` | Legacy options type alias | | `ChatSource` | `./use-sse-chat-adapter` | Chat source type | | `DocChatMessage` | `./use-sse-chat-adapter` | Document chat message type | | `DocSource` | `./use-sse-chat-adapter` | Document source type | | `ChatTurnMeta` | `./use-sse-chat-adapter` | Chat turn metadata type | | `StreamingPhase` | `./use-sse-chat-adapter` | Streaming phase enum/type | ## Usage Example ```typescript // ⚠️ Legacy import — works but will be removed after migration import { useEmbeddedChat, UseEmbeddedChatOptions } from './use-embedded-chat' // ✅ Preferred — import directly from the canonical module import { useSseChatAdapter } from './use-sse-chat-adapter' // ✅ Future — use the unified entry point import { useChat } from './use-chat' const chat = useChat({ mode: 'sse' }) ``` ## Migration Notes > **Deprecation notice:** Internal library code should import directly from `./use-sse-chat-adapter`. This shim will be removed once all consumers migrate to the unified `useChat({ mode })` entry point.