@superinterface/react 3.18.0 → 3.19.1
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/dist/index.cjs +3624 -3177
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -14
- package/dist/index.d.ts +46 -14
- package/dist/index.js +3454 -3007
- package/dist/index.js.map +1 -1
- package/dist/server.d.cts +2 -1
- package/dist/server.d.ts +2 -1
- package/dist/utils.d.cts +2 -1
- package/dist/utils.d.ts +2 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -7,7 +7,7 @@ import * as openai_resources_beta_threads_messages from 'openai/resources/beta/t
|
|
|
7
7
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
8
8
|
import * as react from 'react';
|
|
9
9
|
import { Dispatch, SetStateAction } from 'react';
|
|
10
|
-
import * as
|
|
10
|
+
import * as openai_resources_files from 'openai/resources/files';
|
|
11
11
|
import * as unified from 'unified';
|
|
12
12
|
import OpenAI from 'openai';
|
|
13
13
|
import remarkGfm from 'remark-gfm';
|
|
@@ -110,6 +110,7 @@ declare const useMessages: () => {
|
|
|
110
110
|
isLoadingError: false;
|
|
111
111
|
isRefetchError: true;
|
|
112
112
|
isSuccess: false;
|
|
113
|
+
isPlaceholderData: false;
|
|
113
114
|
status: "error";
|
|
114
115
|
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
115
116
|
fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
@@ -129,7 +130,6 @@ declare const useMessages: () => {
|
|
|
129
130
|
isFetching: boolean;
|
|
130
131
|
isInitialLoading: boolean;
|
|
131
132
|
isPaused: boolean;
|
|
132
|
-
isPlaceholderData: boolean;
|
|
133
133
|
isRefetching: boolean;
|
|
134
134
|
isStale: boolean;
|
|
135
135
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
@@ -147,6 +147,7 @@ declare const useMessages: () => {
|
|
|
147
147
|
isFetchNextPageError: false;
|
|
148
148
|
isFetchPreviousPageError: false;
|
|
149
149
|
isSuccess: true;
|
|
150
|
+
isPlaceholderData: false;
|
|
150
151
|
status: "success";
|
|
151
152
|
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
152
153
|
fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
@@ -164,7 +165,6 @@ declare const useMessages: () => {
|
|
|
164
165
|
isFetching: boolean;
|
|
165
166
|
isInitialLoading: boolean;
|
|
166
167
|
isPaused: boolean;
|
|
167
|
-
isPlaceholderData: boolean;
|
|
168
168
|
isRefetching: boolean;
|
|
169
169
|
isStale: boolean;
|
|
170
170
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
@@ -187,6 +187,7 @@ declare const useLatestMessage: () => {
|
|
|
187
187
|
isLoadingError: false;
|
|
188
188
|
isRefetchError: true;
|
|
189
189
|
isSuccess: false;
|
|
190
|
+
isPlaceholderData: false;
|
|
190
191
|
status: "error";
|
|
191
192
|
fetchNextPage: (options?: _tanstack_query_core.FetchNextPageOptions) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
192
193
|
fetchPreviousPage: (options?: _tanstack_query_core.FetchPreviousPageOptions) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
@@ -206,7 +207,6 @@ declare const useLatestMessage: () => {
|
|
|
206
207
|
isFetching: boolean;
|
|
207
208
|
isInitialLoading: boolean;
|
|
208
209
|
isPaused: boolean;
|
|
209
|
-
isPlaceholderData: boolean;
|
|
210
210
|
isRefetching: boolean;
|
|
211
211
|
isStale: boolean;
|
|
212
212
|
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
@@ -225,6 +225,7 @@ declare const useLatestMessage: () => {
|
|
|
225
225
|
isFetchNextPageError: false;
|
|
226
226
|
isFetchPreviousPageError: false;
|
|
227
227
|
isSuccess: true;
|
|
228
|
+
isPlaceholderData: false;
|
|
228
229
|
status: "success";
|
|
229
230
|
fetchNextPage: (options?: _tanstack_query_core.FetchNextPageOptions) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
230
231
|
fetchPreviousPage: (options?: _tanstack_query_core.FetchPreviousPageOptions) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
@@ -242,7 +243,6 @@ declare const useLatestMessage: () => {
|
|
|
242
243
|
isFetching: boolean;
|
|
243
244
|
isInitialLoading: boolean;
|
|
244
245
|
isPaused: boolean;
|
|
245
|
-
isPlaceholderData: boolean;
|
|
246
246
|
isRefetching: boolean;
|
|
247
247
|
isStale: boolean;
|
|
248
248
|
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
@@ -330,8 +330,8 @@ declare const useMessageFormContext: () => {
|
|
|
330
330
|
content: string;
|
|
331
331
|
isDisabled: boolean;
|
|
332
332
|
isLoading: boolean;
|
|
333
|
-
files:
|
|
334
|
-
setFiles: react.Dispatch<react.SetStateAction<
|
|
333
|
+
files: openai_resources_files.FileObject[];
|
|
334
|
+
setFiles: react.Dispatch<react.SetStateAction<openai_resources_files.FileObject[]>>;
|
|
335
335
|
isFileLoading: boolean;
|
|
336
336
|
};
|
|
337
337
|
|
|
@@ -350,6 +350,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
350
350
|
isLoadingError: false;
|
|
351
351
|
isRefetchError: true;
|
|
352
352
|
isSuccess: false;
|
|
353
|
+
isPlaceholderData: false;
|
|
353
354
|
status: "error";
|
|
354
355
|
dataUpdatedAt: number;
|
|
355
356
|
errorUpdatedAt: number;
|
|
@@ -361,7 +362,6 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
361
362
|
isFetching: boolean;
|
|
362
363
|
isInitialLoading: boolean;
|
|
363
364
|
isPaused: boolean;
|
|
364
|
-
isPlaceholderData: boolean;
|
|
365
365
|
isRefetching: boolean;
|
|
366
366
|
isStale: boolean;
|
|
367
367
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
|
|
@@ -377,6 +377,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
377
377
|
isLoadingError: false;
|
|
378
378
|
isRefetchError: false;
|
|
379
379
|
isSuccess: true;
|
|
380
|
+
isPlaceholderData: false;
|
|
380
381
|
status: "success";
|
|
381
382
|
dataUpdatedAt: number;
|
|
382
383
|
errorUpdatedAt: number;
|
|
@@ -388,7 +389,6 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
388
389
|
isFetching: boolean;
|
|
389
390
|
isInitialLoading: boolean;
|
|
390
391
|
isPaused: boolean;
|
|
391
|
-
isPlaceholderData: boolean;
|
|
392
392
|
isRefetching: boolean;
|
|
393
393
|
isStale: boolean;
|
|
394
394
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
|
|
@@ -404,6 +404,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
404
404
|
isLoadingError: true;
|
|
405
405
|
isRefetchError: false;
|
|
406
406
|
isSuccess: false;
|
|
407
|
+
isPlaceholderData: false;
|
|
407
408
|
status: "error";
|
|
408
409
|
dataUpdatedAt: number;
|
|
409
410
|
errorUpdatedAt: number;
|
|
@@ -415,7 +416,6 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
415
416
|
isFetching: boolean;
|
|
416
417
|
isInitialLoading: boolean;
|
|
417
418
|
isPaused: boolean;
|
|
418
|
-
isPlaceholderData: boolean;
|
|
419
419
|
isRefetching: boolean;
|
|
420
420
|
isStale: boolean;
|
|
421
421
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
|
|
@@ -431,6 +431,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
431
431
|
isLoadingError: false;
|
|
432
432
|
isRefetchError: false;
|
|
433
433
|
isSuccess: false;
|
|
434
|
+
isPlaceholderData: false;
|
|
434
435
|
status: "pending";
|
|
435
436
|
dataUpdatedAt: number;
|
|
436
437
|
errorUpdatedAt: number;
|
|
@@ -442,7 +443,6 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
442
443
|
isFetching: boolean;
|
|
443
444
|
isInitialLoading: boolean;
|
|
444
445
|
isPaused: boolean;
|
|
445
|
-
isPlaceholderData: boolean;
|
|
446
446
|
isRefetching: boolean;
|
|
447
447
|
isStale: boolean;
|
|
448
448
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
|
|
@@ -457,6 +457,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
457
457
|
isLoadingError: false;
|
|
458
458
|
isRefetchError: false;
|
|
459
459
|
isSuccess: false;
|
|
460
|
+
isPlaceholderData: false;
|
|
460
461
|
status: "pending";
|
|
461
462
|
dataUpdatedAt: number;
|
|
462
463
|
errorUpdatedAt: number;
|
|
@@ -469,7 +470,33 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
469
470
|
isLoading: boolean;
|
|
470
471
|
isInitialLoading: boolean;
|
|
471
472
|
isPaused: boolean;
|
|
472
|
-
|
|
473
|
+
isRefetching: boolean;
|
|
474
|
+
isStale: boolean;
|
|
475
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
|
|
476
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
477
|
+
promise: Promise<any>;
|
|
478
|
+
} | {
|
|
479
|
+
assistant: any;
|
|
480
|
+
data: any;
|
|
481
|
+
isError: false;
|
|
482
|
+
error: null;
|
|
483
|
+
isPending: false;
|
|
484
|
+
isLoading: false;
|
|
485
|
+
isLoadingError: false;
|
|
486
|
+
isRefetchError: false;
|
|
487
|
+
isSuccess: true;
|
|
488
|
+
isPlaceholderData: true;
|
|
489
|
+
status: "success";
|
|
490
|
+
dataUpdatedAt: number;
|
|
491
|
+
errorUpdatedAt: number;
|
|
492
|
+
failureCount: number;
|
|
493
|
+
failureReason: Error | null;
|
|
494
|
+
errorUpdateCount: number;
|
|
495
|
+
isFetched: boolean;
|
|
496
|
+
isFetchedAfterMount: boolean;
|
|
497
|
+
isFetching: boolean;
|
|
498
|
+
isInitialLoading: boolean;
|
|
499
|
+
isPaused: boolean;
|
|
473
500
|
isRefetching: boolean;
|
|
474
501
|
isStale: boolean;
|
|
475
502
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
|
|
@@ -681,13 +708,18 @@ declare const useComponents: () => {
|
|
|
681
708
|
Root: ({ children, className, style, }: {
|
|
682
709
|
children: React.ReactNode;
|
|
683
710
|
} & StyleProps) => react_jsx_runtime.JSX.Element;
|
|
684
|
-
|
|
711
|
+
StartingToolCalls: () => react_jsx_runtime.JSX.Element;
|
|
685
712
|
ToolCall: ({ toolCall, runStep, }: {
|
|
686
713
|
toolCall: ToolCall;
|
|
687
714
|
runStep: SerializedRunStep;
|
|
688
715
|
}) => react_jsx_runtime.JSX.Element;
|
|
689
716
|
};
|
|
690
717
|
};
|
|
718
|
+
Function: ({ fn, runStep, }: {
|
|
719
|
+
fn: openai_resources_beta_threads_runs_steps.FunctionToolCall.Function;
|
|
720
|
+
runStep: openai_resources_beta_threads_runs_steps.RunStep;
|
|
721
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
722
|
+
StartingToolCalls: () => react_jsx_runtime.JSX.Element;
|
|
691
723
|
};
|
|
692
724
|
};
|
|
693
725
|
|
|
@@ -704,7 +736,7 @@ declare const RunStep: {
|
|
|
704
736
|
Root: ({ children, className, style, }: {
|
|
705
737
|
children: React.ReactNode;
|
|
706
738
|
} & StyleProps) => react_jsx_runtime.JSX.Element;
|
|
707
|
-
|
|
739
|
+
StartingToolCalls: () => react_jsx_runtime.JSX.Element;
|
|
708
740
|
ToolCall: ({ toolCall, runStep, }: {
|
|
709
741
|
toolCall: ToolCall;
|
|
710
742
|
runStep: SerializedRunStep;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import * as openai_resources_beta_threads_messages from 'openai/resources/beta/t
|
|
|
7
7
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
8
8
|
import * as react from 'react';
|
|
9
9
|
import { Dispatch, SetStateAction } from 'react';
|
|
10
|
-
import * as
|
|
10
|
+
import * as openai_resources_files from 'openai/resources/files';
|
|
11
11
|
import * as unified from 'unified';
|
|
12
12
|
import OpenAI from 'openai';
|
|
13
13
|
import remarkGfm from 'remark-gfm';
|
|
@@ -110,6 +110,7 @@ declare const useMessages: () => {
|
|
|
110
110
|
isLoadingError: false;
|
|
111
111
|
isRefetchError: true;
|
|
112
112
|
isSuccess: false;
|
|
113
|
+
isPlaceholderData: false;
|
|
113
114
|
status: "error";
|
|
114
115
|
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
115
116
|
fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
@@ -129,7 +130,6 @@ declare const useMessages: () => {
|
|
|
129
130
|
isFetching: boolean;
|
|
130
131
|
isInitialLoading: boolean;
|
|
131
132
|
isPaused: boolean;
|
|
132
|
-
isPlaceholderData: boolean;
|
|
133
133
|
isRefetching: boolean;
|
|
134
134
|
isStale: boolean;
|
|
135
135
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
@@ -147,6 +147,7 @@ declare const useMessages: () => {
|
|
|
147
147
|
isFetchNextPageError: false;
|
|
148
148
|
isFetchPreviousPageError: false;
|
|
149
149
|
isSuccess: true;
|
|
150
|
+
isPlaceholderData: false;
|
|
150
151
|
status: "success";
|
|
151
152
|
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
152
153
|
fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
@@ -164,7 +165,6 @@ declare const useMessages: () => {
|
|
|
164
165
|
isFetching: boolean;
|
|
165
166
|
isInitialLoading: boolean;
|
|
166
167
|
isPaused: boolean;
|
|
167
|
-
isPlaceholderData: boolean;
|
|
168
168
|
isRefetching: boolean;
|
|
169
169
|
isStale: boolean;
|
|
170
170
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
@@ -187,6 +187,7 @@ declare const useLatestMessage: () => {
|
|
|
187
187
|
isLoadingError: false;
|
|
188
188
|
isRefetchError: true;
|
|
189
189
|
isSuccess: false;
|
|
190
|
+
isPlaceholderData: false;
|
|
190
191
|
status: "error";
|
|
191
192
|
fetchNextPage: (options?: _tanstack_query_core.FetchNextPageOptions) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
192
193
|
fetchPreviousPage: (options?: _tanstack_query_core.FetchPreviousPageOptions) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
@@ -206,7 +207,6 @@ declare const useLatestMessage: () => {
|
|
|
206
207
|
isFetching: boolean;
|
|
207
208
|
isInitialLoading: boolean;
|
|
208
209
|
isPaused: boolean;
|
|
209
|
-
isPlaceholderData: boolean;
|
|
210
210
|
isRefetching: boolean;
|
|
211
211
|
isStale: boolean;
|
|
212
212
|
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
@@ -225,6 +225,7 @@ declare const useLatestMessage: () => {
|
|
|
225
225
|
isFetchNextPageError: false;
|
|
226
226
|
isFetchPreviousPageError: false;
|
|
227
227
|
isSuccess: true;
|
|
228
|
+
isPlaceholderData: false;
|
|
228
229
|
status: "success";
|
|
229
230
|
fetchNextPage: (options?: _tanstack_query_core.FetchNextPageOptions) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
230
231
|
fetchPreviousPage: (options?: _tanstack_query_core.FetchPreviousPageOptions) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
@@ -242,7 +243,6 @@ declare const useLatestMessage: () => {
|
|
|
242
243
|
isFetching: boolean;
|
|
243
244
|
isInitialLoading: boolean;
|
|
244
245
|
isPaused: boolean;
|
|
245
|
-
isPlaceholderData: boolean;
|
|
246
246
|
isRefetching: boolean;
|
|
247
247
|
isStale: boolean;
|
|
248
248
|
refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
@@ -330,8 +330,8 @@ declare const useMessageFormContext: () => {
|
|
|
330
330
|
content: string;
|
|
331
331
|
isDisabled: boolean;
|
|
332
332
|
isLoading: boolean;
|
|
333
|
-
files:
|
|
334
|
-
setFiles: react.Dispatch<react.SetStateAction<
|
|
333
|
+
files: openai_resources_files.FileObject[];
|
|
334
|
+
setFiles: react.Dispatch<react.SetStateAction<openai_resources_files.FileObject[]>>;
|
|
335
335
|
isFileLoading: boolean;
|
|
336
336
|
};
|
|
337
337
|
|
|
@@ -350,6 +350,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
350
350
|
isLoadingError: false;
|
|
351
351
|
isRefetchError: true;
|
|
352
352
|
isSuccess: false;
|
|
353
|
+
isPlaceholderData: false;
|
|
353
354
|
status: "error";
|
|
354
355
|
dataUpdatedAt: number;
|
|
355
356
|
errorUpdatedAt: number;
|
|
@@ -361,7 +362,6 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
361
362
|
isFetching: boolean;
|
|
362
363
|
isInitialLoading: boolean;
|
|
363
364
|
isPaused: boolean;
|
|
364
|
-
isPlaceholderData: boolean;
|
|
365
365
|
isRefetching: boolean;
|
|
366
366
|
isStale: boolean;
|
|
367
367
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
|
|
@@ -377,6 +377,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
377
377
|
isLoadingError: false;
|
|
378
378
|
isRefetchError: false;
|
|
379
379
|
isSuccess: true;
|
|
380
|
+
isPlaceholderData: false;
|
|
380
381
|
status: "success";
|
|
381
382
|
dataUpdatedAt: number;
|
|
382
383
|
errorUpdatedAt: number;
|
|
@@ -388,7 +389,6 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
388
389
|
isFetching: boolean;
|
|
389
390
|
isInitialLoading: boolean;
|
|
390
391
|
isPaused: boolean;
|
|
391
|
-
isPlaceholderData: boolean;
|
|
392
392
|
isRefetching: boolean;
|
|
393
393
|
isStale: boolean;
|
|
394
394
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
|
|
@@ -404,6 +404,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
404
404
|
isLoadingError: true;
|
|
405
405
|
isRefetchError: false;
|
|
406
406
|
isSuccess: false;
|
|
407
|
+
isPlaceholderData: false;
|
|
407
408
|
status: "error";
|
|
408
409
|
dataUpdatedAt: number;
|
|
409
410
|
errorUpdatedAt: number;
|
|
@@ -415,7 +416,6 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
415
416
|
isFetching: boolean;
|
|
416
417
|
isInitialLoading: boolean;
|
|
417
418
|
isPaused: boolean;
|
|
418
|
-
isPlaceholderData: boolean;
|
|
419
419
|
isRefetching: boolean;
|
|
420
420
|
isStale: boolean;
|
|
421
421
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
|
|
@@ -431,6 +431,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
431
431
|
isLoadingError: false;
|
|
432
432
|
isRefetchError: false;
|
|
433
433
|
isSuccess: false;
|
|
434
|
+
isPlaceholderData: false;
|
|
434
435
|
status: "pending";
|
|
435
436
|
dataUpdatedAt: number;
|
|
436
437
|
errorUpdatedAt: number;
|
|
@@ -442,7 +443,6 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
442
443
|
isFetching: boolean;
|
|
443
444
|
isInitialLoading: boolean;
|
|
444
445
|
isPaused: boolean;
|
|
445
|
-
isPlaceholderData: boolean;
|
|
446
446
|
isRefetching: boolean;
|
|
447
447
|
isStale: boolean;
|
|
448
448
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
|
|
@@ -457,6 +457,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
457
457
|
isLoadingError: false;
|
|
458
458
|
isRefetchError: false;
|
|
459
459
|
isSuccess: false;
|
|
460
|
+
isPlaceholderData: false;
|
|
460
461
|
status: "pending";
|
|
461
462
|
dataUpdatedAt: number;
|
|
462
463
|
errorUpdatedAt: number;
|
|
@@ -469,7 +470,33 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
|
|
|
469
470
|
isLoading: boolean;
|
|
470
471
|
isInitialLoading: boolean;
|
|
471
472
|
isPaused: boolean;
|
|
472
|
-
|
|
473
|
+
isRefetching: boolean;
|
|
474
|
+
isStale: boolean;
|
|
475
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
|
|
476
|
+
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
477
|
+
promise: Promise<any>;
|
|
478
|
+
} | {
|
|
479
|
+
assistant: any;
|
|
480
|
+
data: any;
|
|
481
|
+
isError: false;
|
|
482
|
+
error: null;
|
|
483
|
+
isPending: false;
|
|
484
|
+
isLoading: false;
|
|
485
|
+
isLoadingError: false;
|
|
486
|
+
isRefetchError: false;
|
|
487
|
+
isSuccess: true;
|
|
488
|
+
isPlaceholderData: true;
|
|
489
|
+
status: "success";
|
|
490
|
+
dataUpdatedAt: number;
|
|
491
|
+
errorUpdatedAt: number;
|
|
492
|
+
failureCount: number;
|
|
493
|
+
failureReason: Error | null;
|
|
494
|
+
errorUpdateCount: number;
|
|
495
|
+
isFetched: boolean;
|
|
496
|
+
isFetchedAfterMount: boolean;
|
|
497
|
+
isFetching: boolean;
|
|
498
|
+
isInitialLoading: boolean;
|
|
499
|
+
isPaused: boolean;
|
|
473
500
|
isRefetching: boolean;
|
|
474
501
|
isStale: boolean;
|
|
475
502
|
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
|
|
@@ -681,13 +708,18 @@ declare const useComponents: () => {
|
|
|
681
708
|
Root: ({ children, className, style, }: {
|
|
682
709
|
children: React.ReactNode;
|
|
683
710
|
} & StyleProps) => react_jsx_runtime.JSX.Element;
|
|
684
|
-
|
|
711
|
+
StartingToolCalls: () => react_jsx_runtime.JSX.Element;
|
|
685
712
|
ToolCall: ({ toolCall, runStep, }: {
|
|
686
713
|
toolCall: ToolCall;
|
|
687
714
|
runStep: SerializedRunStep;
|
|
688
715
|
}) => react_jsx_runtime.JSX.Element;
|
|
689
716
|
};
|
|
690
717
|
};
|
|
718
|
+
Function: ({ fn, runStep, }: {
|
|
719
|
+
fn: openai_resources_beta_threads_runs_steps.FunctionToolCall.Function;
|
|
720
|
+
runStep: openai_resources_beta_threads_runs_steps.RunStep;
|
|
721
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
722
|
+
StartingToolCalls: () => react_jsx_runtime.JSX.Element;
|
|
691
723
|
};
|
|
692
724
|
};
|
|
693
725
|
|
|
@@ -704,7 +736,7 @@ declare const RunStep: {
|
|
|
704
736
|
Root: ({ children, className, style, }: {
|
|
705
737
|
children: React.ReactNode;
|
|
706
738
|
} & StyleProps) => react_jsx_runtime.JSX.Element;
|
|
707
|
-
|
|
739
|
+
StartingToolCalls: () => react_jsx_runtime.JSX.Element;
|
|
708
740
|
ToolCall: ({ toolCall, runStep, }: {
|
|
709
741
|
toolCall: ToolCall;
|
|
710
742
|
runStep: SerializedRunStep;
|