@ai-sdk/react 1.2.12 → 2.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,58 +1,300 @@
1
1
  # @ai-sdk/react
2
2
 
3
- ## 1.2.12
3
+ ## 2.0.0-alpha.2
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [d87b9d1]
8
- - @ai-sdk/provider-utils@2.2.8
9
- - @ai-sdk/ui-utils@1.2.11
7
+ - Updated dependencies [82aa95d]
8
+ - ai@5.0.0-alpha.2
9
+ - @ai-sdk/provider-utils@3.0.0-alpha.2
10
10
 
11
- ## 1.2.11
11
+ ## 2.0.0-alpha.1
12
12
 
13
13
  ### Patch Changes
14
14
 
15
- - 6c59ae7: feat (ui/react): support resuming an ongoing stream
16
- - Updated dependencies [6c59ae7]
17
- - @ai-sdk/ui-utils@1.2.10
15
+ - Updated dependencies [b346545]
16
+ - Updated dependencies [109c0ac]
17
+ - ai@5.0.0-alpha.1
18
+ - @ai-sdk/provider-utils@3.0.0-alpha.1
18
19
 
19
- ## 1.2.10
20
+ ## 2.0.0-canary.23
20
21
 
21
22
  ### Patch Changes
22
23
 
23
- - 77b2097: fix(append): support Message.experimental_attachments alongside ChatRequestOptions
24
- - Updated dependencies [62181ef]
25
- - @ai-sdk/ui-utils@1.2.9
24
+ - Updated dependencies [bedb239]
25
+ - Updated dependencies [507ac1d]
26
+ - Updated dependencies [2b9bbcd]
27
+ - Updated dependencies [f7e8bf4]
28
+ - Updated dependencies [cda32ba]
29
+ - Updated dependencies [50f0362]
30
+ - Updated dependencies [ed675de]
31
+ - Updated dependencies [faf8446]
32
+ - Updated dependencies [64f6d64]
33
+ - ai@5.0.0-canary.24
34
+ - @ai-sdk/provider-utils@3.0.0-canary.19
26
35
 
27
- ## 1.2.9
36
+ ## 2.0.0-canary.22
37
+
38
+ ### Major Changes
39
+
40
+ - 40acf9b: feat (ui): introduce ChatStore and ChatTransport
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [40acf9b]
45
+ - @ai-sdk/provider-utils@3.0.0-canary.18
46
+ - ai@5.0.0-canary.23
47
+
48
+ ## 2.0.0-canary.21
49
+
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies [e7dc6c7]
53
+ - Updated dependencies [a34eb39]
54
+ - Updated dependencies [b33ed7a]
55
+ - Updated dependencies [765f1cd]
56
+ - ai@5.0.0-canary.22
57
+
58
+ ## 2.0.0-canary.20
59
+
60
+ ### Patch Changes
61
+
62
+ - Updated dependencies [d964901]
63
+ - Updated dependencies [0560977]
64
+ - Updated dependencies [66af894]
65
+ - Updated dependencies [516be5b]
66
+ - Updated dependencies [bfbfc4c]
67
+ - Updated dependencies [ea7a7c9]
68
+ - Updated dependencies [1409e13]
69
+ - ai@5.0.0-canary.21
70
+ - @ai-sdk/provider-utils@3.0.0-canary.17
71
+
72
+ ## 2.0.0-canary.19
73
+
74
+ ### Major Changes
75
+
76
+ - 496bbc1: chore (ui): inline/remove ChatRequest type
77
+
78
+ ### Patch Changes
79
+
80
+ - Updated dependencies [13fef90]
81
+ - Updated dependencies [e90d45d]
82
+ - Updated dependencies [bc3109f]
83
+ - Updated dependencies [496bbc1]
84
+ - Updated dependencies [da70d79]
85
+ - Updated dependencies [bcea599]
86
+ - Updated dependencies [48d675a]
87
+ - Updated dependencies [c7710a9]
88
+ - Updated dependencies [87b828f]
89
+ - Updated dependencies [35fc02c]
90
+ - Updated dependencies [b983b51]
91
+ - ai@5.0.0-canary.20
92
+ - @ai-sdk/provider-utils@3.0.0-canary.16
93
+
94
+ ## 2.0.0-canary.18
28
95
 
29
96
  ### Patch Changes
30
97
 
31
- - @ai-sdk/provider-utils@2.2.7
32
- - @ai-sdk/ui-utils@1.2.8
98
+ - Updated dependencies [2d03e19]
99
+ - Updated dependencies [319b989]
100
+ - Updated dependencies [441d042]
101
+ - Updated dependencies [dcc549b]
102
+ - Updated dependencies [cb2b53a]
103
+ - Updated dependencies [e244a78]
104
+ - ai@5.0.0-canary.19
33
105
 
34
- ## 1.2.8
106
+ ## 2.0.0-canary.17
35
107
 
36
108
  ### Patch Changes
37
109
 
38
- - @ai-sdk/provider-utils@2.2.6
39
- - @ai-sdk/ui-utils@1.2.7
110
+ - Updated dependencies [a571d6e]
111
+ - Updated dependencies [c60f895]
112
+ - Updated dependencies [332167b]
113
+ - Updated dependencies [a8c8bd5]
114
+ - Updated dependencies [a662dea]
115
+ - Updated dependencies [41fa418]
116
+ - @ai-sdk/provider-utils@3.0.0-canary.15
117
+ - ai@5.0.0-canary.18
40
118
 
41
- ## 1.2.7
119
+ ## 2.0.0-canary.16
42
120
 
43
121
  ### Patch Changes
44
122
 
45
- - Updated dependencies [c21fa6d]
46
- - @ai-sdk/provider-utils@2.2.5
47
- - @ai-sdk/ui-utils@1.2.6
123
+ - c34ccd7: feat (ui/react): support resuming an ongoing stream
124
+ - Updated dependencies [f04fb4a]
125
+ - Updated dependencies [fd1924b]
126
+ - Updated dependencies [957b739]
127
+ - Updated dependencies [fafc3f2]
128
+ - Updated dependencies [c9ad635]
129
+ - Updated dependencies [9bd5ab5]
130
+ - Updated dependencies [92cb0a2]
131
+ - ai@5.0.0-canary.17
132
+ - @ai-sdk/provider-utils@3.0.0-canary.14
133
+
134
+ ## 2.0.0-canary.15
135
+
136
+ ### Patch Changes
137
+
138
+ - 6a0ff37: fix (react): integrate addToolResult into UseChatHelpers type without intersection
139
+ - Updated dependencies [ec78cdc]
140
+ - Updated dependencies [9b4d074]
141
+ - Updated dependencies [8b86e99]
142
+ - Updated dependencies [28ad69e]
143
+ - Updated dependencies [2524fc7]
144
+ - Updated dependencies [ec5933d]
145
+ - Updated dependencies [175b868]
146
+ - ai@5.0.0-canary.16
147
+
148
+ ## 2.0.0-canary.14
149
+
150
+ ### Patch Changes
151
+
152
+ - Updated dependencies [d9209ca]
153
+ - Updated dependencies [ea27cc6]
154
+ - Updated dependencies [0ff02bb]
155
+ - Updated dependencies [4bfe9ec]
156
+ - Updated dependencies [2877a74]
157
+ - ai@5.0.0-canary.15
158
+ - @ai-sdk/provider-utils@3.0.0-canary.13
159
+
160
+ ## 2.0.0-canary.13
161
+
162
+ ### Patch Changes
163
+
164
+ - Updated dependencies [9bf7291]
165
+ - Updated dependencies [4617fab]
166
+ - Updated dependencies [a76a62b]
167
+ - ai@5.0.0-canary.14
168
+ - @ai-sdk/provider-utils@3.0.0-canary.12
169
+
170
+ ## 2.0.0-canary.12
171
+
172
+ ### Patch Changes
173
+
174
+ - Updated dependencies [14cb3be]
175
+ - Updated dependencies [66962ed]
176
+ - Updated dependencies [9301f86]
177
+ - ai@5.0.0-canary.13
178
+ - @ai-sdk/provider-utils@3.0.0-canary.11
179
+
180
+ ## 2.0.0-canary.11
181
+
182
+ ### Patch Changes
183
+
184
+ - ai@5.0.0-canary.12
185
+ - @ai-sdk/provider-utils@3.0.0-canary.10
186
+
187
+ ## 2.0.0-canary.10
188
+
189
+ ### Patch Changes
190
+
191
+ - Updated dependencies [8e64e9c]
192
+ - ai@5.0.0-canary.11
193
+ - @ai-sdk/provider-utils@3.0.0-canary.9
194
+
195
+ ## 2.0.0-canary.9
196
+
197
+ ### Patch Changes
198
+
199
+ - Updated dependencies [d8aeaef]
200
+ - Updated dependencies [3e10408]
201
+ - ai@5.0.0-canary.10
202
+
203
+ ## 2.0.0-canary.8
204
+
205
+ ### Patch Changes
206
+
207
+ - Updated dependencies [a847c3e]
208
+ - Updated dependencies [5d142ab]
209
+ - Updated dependencies [cb9c9e4]
210
+ - Updated dependencies [8aa9e20]
211
+ - Updated dependencies [b32e192]
212
+ - ai@5.0.0-canary.9
213
+ - @ai-sdk/provider-utils@3.0.0-canary.8
214
+
215
+ ## 2.0.0-canary.7
216
+
217
+ ### Patch Changes
218
+
219
+ - Updated dependencies [5d1e3ba]
220
+ - Updated dependencies [26735b5]
221
+ - Updated dependencies [14c9410]
222
+ - Updated dependencies [7827a49]
223
+ - Updated dependencies [bd8a36c]
224
+ - Updated dependencies [b6f9f3c]
225
+ - Updated dependencies [92c8e66]
226
+ - Updated dependencies [fd65bc6]
227
+ - Updated dependencies [5bdff05]
228
+ - ai@5.0.0-canary.8
229
+ - @ai-sdk/provider-utils@3.0.0-canary.7
230
+
231
+ ## 2.0.0-canary.6
232
+
233
+ ### Patch Changes
234
+
235
+ - Updated dependencies [0b78e17]
236
+ - Updated dependencies [6fba4c7]
237
+ - Updated dependencies [3e3b9df]
238
+ - Updated dependencies [1766ede]
239
+ - Updated dependencies [f10304b]
240
+ - ai@5.0.0-canary.7
241
+ - @ai-sdk/provider-utils@3.0.0-canary.6
242
+
243
+ ## 2.0.0-canary.5
244
+
245
+ ### Patch Changes
246
+
247
+ - ai@5.0.0-canary.6
248
+ - @ai-sdk/provider-utils@3.0.0-canary.5
249
+
250
+ ## 2.0.0-canary.4
251
+
252
+ ### Patch Changes
253
+
254
+ - Updated dependencies [b71fe8d]
255
+ - Updated dependencies [d91b50d]
256
+ - ai@5.0.0-canary.5
257
+ - @ai-sdk/provider-utils@3.0.0-canary.4
258
+
259
+ ## 2.0.0-canary.3
260
+
261
+ ### Patch Changes
262
+
263
+ - Updated dependencies [a166433]
264
+ - Updated dependencies [9f95b35]
265
+ - @ai-sdk/provider-utils@3.0.0-canary.3
266
+ - @ai-sdk/ui-utils@2.0.0-canary.3
267
+
268
+ ## 2.0.0-canary.2
269
+
270
+ ### Patch Changes
271
+
272
+ - @ai-sdk/provider-utils@3.0.0-canary.2
273
+ - @ai-sdk/ui-utils@2.0.0-canary.2
274
+
275
+ ## 2.0.0-canary.1
276
+
277
+ ### Patch Changes
278
+
279
+ - Updated dependencies [060370c]
280
+ - Updated dependencies [0c0c0b3]
281
+ - Updated dependencies [63d791d]
282
+ - @ai-sdk/provider-utils@3.0.0-canary.1
283
+ - @ai-sdk/ui-utils@2.0.0-canary.1
284
+
285
+ ## 2.0.0-canary.0
286
+
287
+ ### Major Changes
48
288
 
49
- ## 1.2.6
289
+ - d5f588f: AI SDK 5
290
+ - 9477ebb: chore (ui): remove useAssistant hook (**breaking change**)
50
291
 
51
292
  ### Patch Changes
52
293
 
53
- - Updated dependencies [2c19b9a]
54
- - @ai-sdk/provider-utils@2.2.4
55
- - @ai-sdk/ui-utils@1.2.5
294
+ - Updated dependencies [d5f588f]
295
+ - Updated dependencies [9477ebb]
296
+ - @ai-sdk/provider-utils@3.0.0-canary.0
297
+ - @ai-sdk/ui-utils@2.0.0-canary.0
56
298
 
57
299
  ## 1.2.5
58
300
 
package/README.md CHANGED
@@ -4,4 +4,4 @@
4
4
 
5
5
  - [`useChat`](https://ai-sdk.dev/docs/reference/ai-sdk-ui/use-chat) hook
6
6
  - [`useCompletion`](https://ai-sdk.dev/docs/reference/ai-sdk-ui/use-completion) hook
7
- - [`useAssistant`](https://ai-sdk.dev/docs/reference/ai-sdk-ui/use-assistant) hook
7
+ - [`useObject`](https://ai-sdk.dev/docs/reference/ai-sdk-ui/use-object) hook
package/dist/index.d.mts CHANGED
@@ -1,79 +1,34 @@
1
- import { Message, CreateMessage, AssistantStatus, UseAssistantOptions, UIMessage, ChatRequestOptions, JSONValue, UseChatOptions, RequestOptions, UseCompletionOptions, Schema, DeepPartial } from '@ai-sdk/ui-utils';
2
- export { CreateMessage, Message, UseChatOptions, UseCompletionOptions } from '@ai-sdk/ui-utils';
1
+ import { UIDataTypesSchemas, UIMessage, InferUIDataTypes, CreateUIMessage, ChatRequestOptions, FileUIPart, UseChatOptions, CompletionRequestOptions, UseCompletionOptions, Schema, DeepPartial } from 'ai';
2
+ export { CreateUIMessage, UIMessage, UseChatOptions, UseCompletionOptions } from 'ai';
3
3
  import { FetchFunction } from '@ai-sdk/provider-utils';
4
4
  import z from 'zod';
5
5
 
6
- type UseAssistantHelpers = {
6
+ type UseChatHelpers<MESSAGE_METADATA = unknown, DATA_TYPE_SCHEMAS extends UIDataTypesSchemas = UIDataTypesSchemas> = {
7
7
  /**
8
- * The current array of chat messages.
8
+ * The id of the chat.
9
9
  */
10
- messages: Message[];
10
+ readonly chatId: string;
11
11
  /**
12
- * Update the message store with a new array of messages.
13
- */
14
- setMessages: React.Dispatch<React.SetStateAction<Message[]>>;
15
- /**
16
- * The current thread ID.
17
- */
18
- threadId: string | undefined;
19
- /**
20
- * Set the current thread ID. Specifying a thread ID will switch to that thread, if it exists. If set to 'undefined', a new thread will be created. For both cases, `threadId` will be updated with the new value and `messages` will be cleared.
21
- */
22
- setThreadId: (threadId: string | undefined) => void;
23
- /**
24
- * The current value of the input field.
25
- */
26
- input: string;
27
- /**
28
- * Append a user message to the chat list. This triggers the API call to fetch
29
- * the assistant's response.
30
- * @param message The message to append
31
- * @param requestOptions Additional options to pass to the API call
32
- */
33
- append: (message: Message | CreateMessage, requestOptions?: {
34
- data?: Record<string, string>;
35
- }) => Promise<void>;
36
- /**
37
- Abort the current request immediately, keep the generated tokens if any.
38
- */
39
- stop: () => void;
40
- /**
41
- * setState-powered method to update the input value.
42
- */
43
- setInput: React.Dispatch<React.SetStateAction<string>>;
44
- /**
45
- * Handler for the `onChange` event of the input field to control the input's value.
46
- */
47
- handleInputChange: (event: React.ChangeEvent<HTMLInputElement> | React.ChangeEvent<HTMLTextAreaElement>) => void;
48
- /**
49
- * Form submission handler that automatically resets the input field and appends a user message.
50
- */
51
- submitMessage: (event?: React.FormEvent<HTMLFormElement>, requestOptions?: {
52
- data?: Record<string, string>;
53
- }) => Promise<void>;
54
- /**
55
- * The current status of the assistant. This can be used to show a loading indicator.
56
- */
57
- status: AssistantStatus;
58
- /**
59
- * The error thrown during the assistant message processing, if any.
12
+ * Hook status:
13
+ *
14
+ * - `submitted`: The message has been sent to the API and we're awaiting the start of the response stream.
15
+ * - `streaming`: The response is actively streaming in from the API, receiving chunks of data.
16
+ * - `ready`: The full response has been received and processed; a new user message can be submitted.
17
+ * - `error`: An error occurred during the API request, preventing successful completion.
60
18
  */
61
- error: undefined | Error;
62
- };
63
- declare function useAssistant({ api, threadId: threadIdParam, credentials, headers, body, onError, fetch, }: UseAssistantOptions): UseAssistantHelpers;
64
-
65
- type UseChatHelpers = {
19
+ readonly status: 'submitted' | 'streaming' | 'ready' | 'error';
66
20
  /** Current messages in the chat */
67
- messages: UIMessage[];
21
+ readonly messages: UIMessage<MESSAGE_METADATA, InferUIDataTypes<DATA_TYPE_SCHEMAS>>[];
68
22
  /** The error object of the API request */
69
- error: undefined | Error;
23
+ readonly error: undefined | Error;
70
24
  /**
71
25
  * Append a user message to the chat list. This triggers the API call to fetch
72
26
  * the assistant's response.
27
+ *
73
28
  * @param message The message to append
74
29
  * @param options Additional options to pass to the API call
75
30
  */
76
- append: (message: Message | CreateMessage, chatRequestOptions?: ChatRequestOptions) => Promise<string | null | undefined>;
31
+ append: (message: CreateUIMessage<MESSAGE_METADATA, InferUIDataTypes<DATA_TYPE_SCHEMAS>>, options?: ChatRequestOptions) => Promise<void>;
77
32
  /**
78
33
  * Reload the last AI chat response for the given chat history. If the last
79
34
  * message isn't from the assistant, it will request the API to generate a
@@ -93,7 +48,7 @@ type UseChatHelpers = {
93
48
  * edit the messages on the client, and then trigger the `reload` method
94
49
  * manually to regenerate the AI response.
95
50
  */
96
- setMessages: (messages: Message[] | ((messages: Message[]) => Message[])) => void;
51
+ setMessages: (messages: UIMessage<MESSAGE_METADATA, InferUIDataTypes<DATA_TYPE_SCHEMAS>>[] | ((messages: UIMessage<MESSAGE_METADATA, InferUIDataTypes<DATA_TYPE_SCHEMAS>>[]) => UIMessage<MESSAGE_METADATA, InferUIDataTypes<DATA_TYPE_SCHEMAS>>[])) => void;
97
52
  /** The current value of the input */
98
53
  input: string;
99
54
  /** setState-powered method to update the input value */
@@ -103,67 +58,21 @@ type UseChatHelpers = {
103
58
  /** Form submission handler to automatically reset input and append a user message */
104
59
  handleSubmit: (event?: {
105
60
  preventDefault?: () => void;
106
- }, chatRequestOptions?: ChatRequestOptions) => void;
107
- metadata?: Object;
108
- /**
109
- * Whether the API request is in progress
110
- *
111
- * @deprecated use `status` instead
112
- */
113
- isLoading: boolean;
114
- /**
115
- * Hook status:
116
- *
117
- * - `submitted`: The message has been sent to the API and we're awaiting the start of the response stream.
118
- * - `streaming`: The response is actively streaming in from the API, receiving chunks of data.
119
- * - `ready`: The full response has been received and processed; a new user message can be submitted.
120
- * - `error`: An error occurred during the API request, preventing successful completion.
121
- */
122
- status: 'submitted' | 'streaming' | 'ready' | 'error';
123
- /** Additional data added on the server via StreamData. */
124
- data?: JSONValue[];
125
- /** Set the data of the chat. You can use this to transform or clear the chat data. */
126
- setData: (data: JSONValue[] | undefined | ((data: JSONValue[] | undefined) => JSONValue[] | undefined)) => void;
127
- /** The id of the chat */
128
- id: string;
61
+ }, chatRequestOptions?: ChatRequestOptions & {
62
+ files?: FileList | FileUIPart[];
63
+ }) => void;
64
+ addToolResult: ({ toolCallId, result, }: {
65
+ toolCallId: string;
66
+ result: any;
67
+ }) => void;
129
68
  };
130
- declare function useChat({ api, id, initialMessages, initialInput, sendExtraMessageFields, onToolCall, experimental_prepareRequestBody, maxSteps, streamProtocol, onResponse, onFinish, onError, credentials, headers, body, generateId, fetch, keepLastMessageOnError, experimental_throttle: throttleWaitMs, }?: UseChatOptions & {
131
- key?: string;
132
- /**
133
- * Experimental (React only). When a function is provided, it will be used
134
- * to prepare the request body for the chat API. This can be useful for
135
- * customizing the request body based on the messages and data in the chat.
136
- *
137
- * @param messages The current messages in the chat.
138
- * @param requestData The data object passed in the chat request.
139
- * @param requestBody The request body object passed in the chat request.
140
- */
141
- experimental_prepareRequestBody?: (options: {
142
- id: string;
143
- messages: UIMessage[];
144
- requestData?: JSONValue;
145
- requestBody?: object;
146
- }) => unknown;
69
+ declare function useChat<MESSAGE_METADATA = unknown, DATA_TYPE_SCHEMAS extends UIDataTypesSchemas = UIDataTypesSchemas>({ chatId, initialInput, onToolCall, onFinish, onError, generateId, experimental_throttle: throttleWaitMs, chatStore: chatStoreArg, }?: UseChatOptions<MESSAGE_METADATA, DATA_TYPE_SCHEMAS> & {
147
70
  /**
148
71
  Custom throttle wait in ms for the chat messages and data updates.
149
72
  Default is undefined, which disables throttling.
150
73
  */
151
74
  experimental_throttle?: number;
152
- /**
153
- Maximum number of sequential LLM calls (steps), e.g. when you use tool calls.
154
- Must be at least 1.
155
-
156
- A maximum number is required to prevent infinite loops in the case of misconfigured tools.
157
-
158
- By default, it's set to 1, which means that only a single LLM call is made.
159
- */
160
- maxSteps?: number;
161
- }): UseChatHelpers & {
162
- addToolResult: ({ toolCallId, result, }: {
163
- toolCallId: string;
164
- result: any;
165
- }) => void;
166
- };
75
+ }): UseChatHelpers<MESSAGE_METADATA, DATA_TYPE_SCHEMAS>;
167
76
 
168
77
  type UseCompletionHelpers = {
169
78
  /** The current completion result */
@@ -171,7 +80,7 @@ type UseCompletionHelpers = {
171
80
  /**
172
81
  * Send a new prompt to the API endpoint and update the completion state.
173
82
  */
174
- complete: (prompt: string, options?: RequestOptions) => Promise<string | null | undefined>;
83
+ complete: (prompt: string, options?: CompletionRequestOptions) => Promise<string | null | undefined>;
175
84
  /** The error object of the API request */
176
85
  error: undefined | Error;
177
86
  /**
@@ -208,10 +117,8 @@ type UseCompletionHelpers = {
208
117
  }) => void;
209
118
  /** Whether the API request is in progress */
210
119
  isLoading: boolean;
211
- /** Additional data added on the server via StreamData */
212
- data?: JSONValue[];
213
120
  };
214
- declare function useCompletion({ api, id, initialCompletion, initialInput, credentials, headers, body, streamProtocol, fetch, onResponse, onFinish, onError, experimental_throttle: throttleWaitMs, }?: UseCompletionOptions & {
121
+ declare function useCompletion({ api, id, initialCompletion, initialInput, credentials, headers, body, streamProtocol, fetch, onFinish, onError, experimental_throttle: throttleWaitMs, }?: UseCompletionOptions & {
215
122
  /**
216
123
  * Custom throttle wait in ms for the completion and data updates.
217
124
  * Default is undefined, which disables throttling.
@@ -298,4 +205,4 @@ declare function useObject<RESULT, INPUT = any>({ api, id, schema, // required,
298
205
  initialValue, fetch, onError, onFinish, headers, credentials, }: Experimental_UseObjectOptions<RESULT>): Experimental_UseObjectHelpers<RESULT, INPUT>;
299
206
  declare const experimental_useObject: typeof useObject;
300
207
 
301
- export { Experimental_UseObjectHelpers, Experimental_UseObjectOptions, UseAssistantHelpers, UseChatHelpers, UseCompletionHelpers, experimental_useObject, useAssistant, useChat, useCompletion };
208
+ export { Experimental_UseObjectHelpers, Experimental_UseObjectOptions, UseChatHelpers, UseCompletionHelpers, experimental_useObject, useChat, useCompletion };