Open History to see the last commit
1export { useChat } from './use-chat.tsrx'
2export { createChatHook } from './create-chat-hook'
3export { useRealtimeChat } from './use-realtime-chat.tsrx'
4export { useMcpAppBridge } from './use-mcp-app-bridge.tsrx'
5export type { UseMcpAppBridgeOptions } from './use-mcp-app-bridge.tsrx'
6export {
7 usePageWebMCPTools,
8 useRegisterWebMCPTools,
9} from './use-web-mcp-tools.tsrx'
10export type {
11 UsePageWebMCPToolsOptions,
12 UseRegisterWebMCPToolsOptions,
13} from './use-web-mcp-tools.tsrx'
14export type {
15 DeepPartial,
16 UseChatOptions,
17 UseChatReturn,
18 UIMessage,
19 ChatRequestBody,
20 QueuedMessage,
21 SendMessageOptions,
22 WhenBusy,
23 QueueConfig,
24 QueueStrategy,
25 QueueOption,
26} from './types'
27export type {
28 UseRealtimeChatOptions,
29 UseRealtimeChatReturn,
30} from './realtime-types'
31
32export { useGeneration } from './use-generation.tsrx'
33export type {
34 UseGenerationOptions,
35 UseGenerationReturn,
36} from './use-generation.tsrx'
37export { useGenerateImage } from './use-generate-image.tsrx'
38export type {
39 UseGenerateImageOptions,
40 UseGenerateImageReturn,
41} from './use-generate-image.tsrx'
42export { useGenerateAudio } from './use-generate-audio.tsrx'
43export type {
44 UseGenerateAudioOptions,
45 UseGenerateAudioReturn,
46} from './use-generate-audio.tsrx'
47export { useGenerateSpeech } from './use-generate-speech.tsrx'
48export type {
49 UseGenerateSpeechOptions,
50 UseGenerateSpeechReturn,
51} from './use-generate-speech.tsrx'
52export { useTranscription } from './use-transcription.tsrx'
53export type {
54 UseTranscriptionOptions,
55 UseTranscriptionReturn,
56} from './use-transcription.tsrx'
57export { useSummarize } from './use-summarize.tsrx'
58export type {
59 UseSummarizeOptions,
60 UseSummarizeReturn,
61} from './use-summarize.tsrx'
62export { useGenerateVideo } from './use-generate-video.tsrx'
63export type {
64 UseGenerateVideoOptions,
65 UseGenerateVideoReturn,
66} from './use-generate-video.tsrx'
67export { useAudioRecorder } from './use-audio-recorder.tsrx'
68export type {
69 UseAudioRecorderOptions,
70 UseAudioRecorderReturn,
71} from './use-audio-recorder.tsrx'
72
73// Re-export from ai-client for convenience (mirror upstream index.ts)
74export {
75 AudioRecorder,
76 ChatClient,
77 InterruptManager,
78 RealtimeClient,
79 GenerationClient,
80 VideoGenerationClient,
81 GENERATION_EVENTS,
82 reconstructImageResult,
83 reconstructAudioResult,
84 reconstructSpeechResult,
85 reconstructTranscriptionResult,
86 reconstructSummarizeResult,
87 UnsupportedResponseStreamError,
88 createAIDevtoolsGenerationPreview,
89 StreamTruncatedError,
90 DurableStreamIncompleteError,
91 StreamReconnectLimitError,
92 uiMessageToModelMessages,
93 modelMessageToUIMessage,
94 modelMessagesToUIMessages,
95 convertMessagesToModelMessages,
96 normalizeToUIMessage,
97 generateMessageId,
98 StreamProcessor,
99 ImmediateStrategy,
100 PunctuationStrategy,
101 BatchStrategy,
102 WordBoundaryStrategy,
103 CompositeStrategy,
104 parsePartialJSON,
105 PartialJSONParser,
106 defaultJSONParser,
107 registerWebMCPTools,
108 getWebMCPTools,
109 subscribeWebMCPTools,
110 type GetWebMCPToolsOptions,
111 type SubscribeWebMCPToolsOptions,
112 type WebMCPPageTool,
113 clientTools,
114 webSocket,
115 fetchServerSentEvents,
116 fetchHttpStream,
117 fetchJson,
118 xhrServerSentEvents,
119 xhrHttpStream,
120 stream,
121 rpcStream,
122 createChatClientOptions,
123 createMcpAppBridge,
124 type McpAppBridge,
125 type CreateMcpAppBridgeOptions,
126 type ChatFetcher,
127 type ChatFetcherInput,
128 type ChatFetcherOptions,
129 type ConnectionAdapter,
130 type ConnectConnectionAdapter,
131 type SubscribeConnectionAdapter,
132 type RunAgentInputContext,
133 type FetchConnectionOptions,
134 type FetchJsonOptions,
135 type XhrConnectionOptions,
136 type InferChatMessages,
137 type GenerationClientState,
138 type ImageGenerateInput,
139 type AudioGenerateInput,
140 type SpeechGenerateInput,
141 type TranscriptionGenerateInput,
142 type SummarizeGenerateInput,
143 type VideoGenerateInput,
144 type VideoGenerateResult,
145 type VideoStatusInfo,
146} from '@tanstack/ai-client'