@assistant-ui/react 0.5.30 → 0.5.32
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/EdgeRuntimeRequestOptions-BD0mpoF6.d.mts +412 -0
- package/dist/EdgeRuntimeRequestOptions-BD0mpoF6.d.ts +412 -0
- package/dist/edge.d.mts +261 -3
- package/dist/edge.d.ts +261 -3
- package/dist/edge.js +98 -101
- package/dist/edge.js.map +1 -1
- package/dist/edge.mjs +96 -100
- package/dist/edge.mjs.map +1 -1
- package/dist/index.d.mts +54 -283
- package/dist/index.d.ts +54 -283
- package/dist/index.js +2785 -2722
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2827 -2764
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/AssistantTypes-Bo5YKjhV.d.mts +0 -162
- package/dist/AssistantTypes-Bo5YKjhV.d.ts +0 -162
package/dist/index.d.mts
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import { ComponentType, PropsWithChildren, ComponentPropsWithoutRef, FC, ElementType, ReactNode } from 'react';
|
3
|
-
import { T as ThreadAssistantContentPart, M as MessageStatus, a as ThreadRoundtrip, b as ThreadMessage, c as ModelConfig, d as ModelConfigProvider, e as TextContentPart, C as ContentPartStatus, I as ImageContentPart, U as UIContentPart, f as ToolCallContentPart, g as ToolCallContentPartStatus, h as CoreMessage, A as AppendMessage, i as Tool, j as CoreToolCallContentPart } from './
|
4
|
-
export { p as CoreAssistantContentPart, s as CoreAssistantMessage, q as CoreSystemMessage, o as CoreUserContentPart, r as CoreUserMessage, m as ThreadAssistantMessage, l as ThreadSystemMessage, k as ThreadUserContentPart, n as ThreadUserMessage } from './
|
3
|
+
import { T as ThreadAssistantContentPart, M as MessageStatus, a as ThreadRoundtrip, b as ThreadMessage, c as ModelConfig, d as ModelConfigProvider, e as TextContentPart, C as ContentPartStatus, I as ImageContentPart, U as UIContentPart, f as ToolCallContentPart, g as ToolCallContentPartStatus, h as CoreMessage, A as AppendMessage, i as Tool, j as CoreToolCallContentPart } from './EdgeRuntimeRequestOptions-BD0mpoF6.mjs';
|
4
|
+
export { p as CoreAssistantContentPart, s as CoreAssistantMessage, q as CoreSystemMessage, o as CoreUserContentPart, r as CoreUserMessage, E as EdgeRuntimeRequestOptions, m as ThreadAssistantMessage, l as ThreadSystemMessage, k as ThreadUserContentPart, n as ThreadUserMessage } from './EdgeRuntimeRequestOptions-BD0mpoF6.mjs';
|
5
5
|
import { UseBoundStore, StoreApi } from 'zustand';
|
6
6
|
import { Primitive } from '@radix-ui/react-primitive';
|
7
7
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
8
8
|
import * as react_textarea_autosize from 'react-textarea-autosize';
|
9
9
|
import { TextareaAutosizeProps } from 'react-textarea-autosize';
|
10
10
|
import { LanguageModelV1Message, LanguageModelV1FunctionTool } from '@ai-sdk/provider';
|
11
|
-
import { JSONSchema7 } from 'json-schema';
|
12
|
-
import { z } from 'zod';
|
13
11
|
import * as class_variance_authority from 'class-variance-authority';
|
14
12
|
import { VariantProps } from 'class-variance-authority';
|
15
13
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
14
|
+
import 'zod';
|
15
|
+
import 'json-schema';
|
16
16
|
|
17
17
|
type Unsubscribe = () => void;
|
18
18
|
|
@@ -22,6 +22,8 @@ type ReactThreadRuntime = ThreadRuntime & {
|
|
22
22
|
unstable_synchronizer?: ComponentType;
|
23
23
|
};
|
24
24
|
|
25
|
+
declare const subscribeToMainThread: (runtime: ThreadRuntimeWithSubscribe, callback: () => void) => () => void;
|
26
|
+
|
25
27
|
type ChatModelRunUpdate = {
|
26
28
|
content: ThreadAssistantContentPart[];
|
27
29
|
};
|
@@ -125,6 +127,10 @@ declare class LocalThreadRuntime implements ThreadRuntime {
|
|
125
127
|
}>;
|
126
128
|
readonly isDisabled = false;
|
127
129
|
get messages(): ThreadMessage[];
|
130
|
+
readonly composer: {
|
131
|
+
text: string;
|
132
|
+
setText: (value: string) => void;
|
133
|
+
};
|
128
134
|
constructor(configProvider: ModelConfigProvider, adapter: ChatModelAdapter, options?: LocalRuntimeOptions | undefined);
|
129
135
|
getBranches(messageId: string): string[];
|
130
136
|
switchToBranch(branchId: string): void;
|
@@ -204,256 +210,6 @@ declare class EdgeChatAdapter implements ChatModelAdapter {
|
|
204
210
|
type EdgeRuntimeOptions = EdgeChatAdapterOptions & LocalRuntimeOptions;
|
205
211
|
declare const useEdgeRuntime: ({ initialMessages, ...options }: EdgeRuntimeOptions) => LocalRuntime;
|
206
212
|
|
207
|
-
declare const EdgeRuntimeRequestOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
208
|
-
system: z.ZodOptional<z.ZodString>;
|
209
|
-
messages: z.ZodArray<z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
|
210
|
-
role: z.ZodLiteral<"system">;
|
211
|
-
content: z.ZodTuple<[z.ZodObject<{
|
212
|
-
type: z.ZodLiteral<"text">;
|
213
|
-
text: z.ZodString;
|
214
|
-
}, "strip", z.ZodTypeAny, {
|
215
|
-
type: "text";
|
216
|
-
text: string;
|
217
|
-
}, {
|
218
|
-
type: "text";
|
219
|
-
text: string;
|
220
|
-
}>], null>;
|
221
|
-
}, "strip", z.ZodTypeAny, {
|
222
|
-
role: "system";
|
223
|
-
content: [{
|
224
|
-
type: "text";
|
225
|
-
text: string;
|
226
|
-
}];
|
227
|
-
}, {
|
228
|
-
role: "system";
|
229
|
-
content: [{
|
230
|
-
type: "text";
|
231
|
-
text: string;
|
232
|
-
}];
|
233
|
-
}>, z.ZodObject<{
|
234
|
-
role: z.ZodLiteral<"user">;
|
235
|
-
content: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
236
|
-
type: z.ZodLiteral<"text">;
|
237
|
-
text: z.ZodString;
|
238
|
-
}, "strip", z.ZodTypeAny, {
|
239
|
-
type: "text";
|
240
|
-
text: string;
|
241
|
-
}, {
|
242
|
-
type: "text";
|
243
|
-
text: string;
|
244
|
-
}>, z.ZodObject<{
|
245
|
-
type: z.ZodLiteral<"image">;
|
246
|
-
image: z.ZodString;
|
247
|
-
}, "strip", z.ZodTypeAny, {
|
248
|
-
type: "image";
|
249
|
-
image: string;
|
250
|
-
}, {
|
251
|
-
type: "image";
|
252
|
-
image: string;
|
253
|
-
}>]>, "many">;
|
254
|
-
}, "strip", z.ZodTypeAny, {
|
255
|
-
role: "user";
|
256
|
-
content: ({
|
257
|
-
type: "text";
|
258
|
-
text: string;
|
259
|
-
} | {
|
260
|
-
type: "image";
|
261
|
-
image: string;
|
262
|
-
})[];
|
263
|
-
}, {
|
264
|
-
role: "user";
|
265
|
-
content: ({
|
266
|
-
type: "text";
|
267
|
-
text: string;
|
268
|
-
} | {
|
269
|
-
type: "image";
|
270
|
-
image: string;
|
271
|
-
})[];
|
272
|
-
}>, z.ZodObject<{
|
273
|
-
role: z.ZodLiteral<"assistant">;
|
274
|
-
content: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
275
|
-
type: z.ZodLiteral<"text">;
|
276
|
-
text: z.ZodString;
|
277
|
-
}, "strip", z.ZodTypeAny, {
|
278
|
-
type: "text";
|
279
|
-
text: string;
|
280
|
-
}, {
|
281
|
-
type: "text";
|
282
|
-
text: string;
|
283
|
-
}>, z.ZodObject<{
|
284
|
-
type: z.ZodLiteral<"tool-call">;
|
285
|
-
toolCallId: z.ZodString;
|
286
|
-
toolName: z.ZodString;
|
287
|
-
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
288
|
-
result: z.ZodOptional<z.ZodUnknown>;
|
289
|
-
isError: z.ZodOptional<z.ZodBoolean>;
|
290
|
-
}, "strip", z.ZodTypeAny, {
|
291
|
-
type: "tool-call";
|
292
|
-
toolCallId: string;
|
293
|
-
toolName: string;
|
294
|
-
args: Record<string, unknown>;
|
295
|
-
result?: unknown;
|
296
|
-
isError?: boolean | undefined;
|
297
|
-
}, {
|
298
|
-
type: "tool-call";
|
299
|
-
toolCallId: string;
|
300
|
-
toolName: string;
|
301
|
-
args: Record<string, unknown>;
|
302
|
-
result?: unknown;
|
303
|
-
isError?: boolean | undefined;
|
304
|
-
}>]>, "many">;
|
305
|
-
}, "strip", z.ZodTypeAny, {
|
306
|
-
role: "assistant";
|
307
|
-
content: ({
|
308
|
-
type: "text";
|
309
|
-
text: string;
|
310
|
-
} | {
|
311
|
-
type: "tool-call";
|
312
|
-
toolCallId: string;
|
313
|
-
toolName: string;
|
314
|
-
args: Record<string, unknown>;
|
315
|
-
result?: unknown;
|
316
|
-
isError?: boolean | undefined;
|
317
|
-
})[];
|
318
|
-
}, {
|
319
|
-
role: "assistant";
|
320
|
-
content: ({
|
321
|
-
type: "text";
|
322
|
-
text: string;
|
323
|
-
} | {
|
324
|
-
type: "tool-call";
|
325
|
-
toolCallId: string;
|
326
|
-
toolName: string;
|
327
|
-
args: Record<string, unknown>;
|
328
|
-
result?: unknown;
|
329
|
-
isError?: boolean | undefined;
|
330
|
-
})[];
|
331
|
-
}>]>, "many">;
|
332
|
-
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
333
|
-
type: z.ZodLiteral<"function">;
|
334
|
-
name: z.ZodString;
|
335
|
-
description: z.ZodOptional<z.ZodString>;
|
336
|
-
parameters: z.ZodType<JSONSchema7, z.ZodTypeDef, JSONSchema7>;
|
337
|
-
}, "strip", z.ZodTypeAny, {
|
338
|
-
type: "function";
|
339
|
-
name: string;
|
340
|
-
parameters: JSONSchema7;
|
341
|
-
description?: string | undefined;
|
342
|
-
}, {
|
343
|
-
type: "function";
|
344
|
-
name: string;
|
345
|
-
parameters: JSONSchema7;
|
346
|
-
description?: string | undefined;
|
347
|
-
}>, "many">>;
|
348
|
-
}, {
|
349
|
-
maxTokens: z.ZodOptional<z.ZodNumber>;
|
350
|
-
temperature: z.ZodOptional<z.ZodNumber>;
|
351
|
-
topP: z.ZodOptional<z.ZodNumber>;
|
352
|
-
presencePenalty: z.ZodOptional<z.ZodNumber>;
|
353
|
-
frequencyPenalty: z.ZodOptional<z.ZodNumber>;
|
354
|
-
seed: z.ZodOptional<z.ZodNumber>;
|
355
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
|
356
|
-
}>, {
|
357
|
-
apiKey: z.ZodOptional<z.ZodString>;
|
358
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
359
|
-
modelName: z.ZodOptional<z.ZodString>;
|
360
|
-
}>, "strip", z.ZodTypeAny, {
|
361
|
-
messages: ({
|
362
|
-
role: "user";
|
363
|
-
content: ({
|
364
|
-
type: "text";
|
365
|
-
text: string;
|
366
|
-
} | {
|
367
|
-
type: "image";
|
368
|
-
image: string;
|
369
|
-
})[];
|
370
|
-
} | {
|
371
|
-
role: "assistant";
|
372
|
-
content: ({
|
373
|
-
type: "text";
|
374
|
-
text: string;
|
375
|
-
} | {
|
376
|
-
type: "tool-call";
|
377
|
-
toolCallId: string;
|
378
|
-
toolName: string;
|
379
|
-
args: Record<string, unknown>;
|
380
|
-
result?: unknown;
|
381
|
-
isError?: boolean | undefined;
|
382
|
-
})[];
|
383
|
-
} | {
|
384
|
-
role: "system";
|
385
|
-
content: [{
|
386
|
-
type: "text";
|
387
|
-
text: string;
|
388
|
-
}];
|
389
|
-
})[];
|
390
|
-
maxTokens?: number | undefined;
|
391
|
-
temperature?: number | undefined;
|
392
|
-
topP?: number | undefined;
|
393
|
-
presencePenalty?: number | undefined;
|
394
|
-
frequencyPenalty?: number | undefined;
|
395
|
-
seed?: number | undefined;
|
396
|
-
headers?: Record<string, string | undefined> | undefined;
|
397
|
-
apiKey?: string | undefined;
|
398
|
-
baseUrl?: string | undefined;
|
399
|
-
modelName?: string | undefined;
|
400
|
-
system?: string | undefined;
|
401
|
-
tools?: {
|
402
|
-
type: "function";
|
403
|
-
name: string;
|
404
|
-
parameters: JSONSchema7;
|
405
|
-
description?: string | undefined;
|
406
|
-
}[] | undefined;
|
407
|
-
}, {
|
408
|
-
messages: ({
|
409
|
-
role: "user";
|
410
|
-
content: ({
|
411
|
-
type: "text";
|
412
|
-
text: string;
|
413
|
-
} | {
|
414
|
-
type: "image";
|
415
|
-
image: string;
|
416
|
-
})[];
|
417
|
-
} | {
|
418
|
-
role: "assistant";
|
419
|
-
content: ({
|
420
|
-
type: "text";
|
421
|
-
text: string;
|
422
|
-
} | {
|
423
|
-
type: "tool-call";
|
424
|
-
toolCallId: string;
|
425
|
-
toolName: string;
|
426
|
-
args: Record<string, unknown>;
|
427
|
-
result?: unknown;
|
428
|
-
isError?: boolean | undefined;
|
429
|
-
})[];
|
430
|
-
} | {
|
431
|
-
role: "system";
|
432
|
-
content: [{
|
433
|
-
type: "text";
|
434
|
-
text: string;
|
435
|
-
}];
|
436
|
-
})[];
|
437
|
-
maxTokens?: number | undefined;
|
438
|
-
temperature?: number | undefined;
|
439
|
-
topP?: number | undefined;
|
440
|
-
presencePenalty?: number | undefined;
|
441
|
-
frequencyPenalty?: number | undefined;
|
442
|
-
seed?: number | undefined;
|
443
|
-
headers?: Record<string, string | undefined> | undefined;
|
444
|
-
apiKey?: string | undefined;
|
445
|
-
baseUrl?: string | undefined;
|
446
|
-
modelName?: string | undefined;
|
447
|
-
system?: string | undefined;
|
448
|
-
tools?: {
|
449
|
-
type: "function";
|
450
|
-
name: string;
|
451
|
-
parameters: JSONSchema7;
|
452
|
-
description?: string | undefined;
|
453
|
-
}[] | undefined;
|
454
|
-
}>;
|
455
|
-
type EdgeRuntimeRequestOptions = z.infer<typeof EdgeRuntimeRequestOptionsSchema>;
|
456
|
-
|
457
213
|
type ThreadMessageLike = {
|
458
214
|
role: "assistant" | "user" | "system";
|
459
215
|
content: (TextContentPart | ImageContentPart | ToolCallContentPart<any, any> | CoreToolCallContentPart<any, any> | UIContentPart)[];
|
@@ -557,26 +313,26 @@ declare namespace internal {
|
|
557
313
|
type ConverterCallback<TIn> = (cache: ThreadMessage | undefined, message: TIn, idx: number) => ThreadMessage;
|
558
314
|
declare class ThreadMessageConverter {
|
559
315
|
private readonly cache;
|
560
|
-
convertMessages<TIn extends WeakKey>(messages: TIn[], converter: ConverterCallback<TIn
|
316
|
+
convertMessages<TIn extends WeakKey>(messages: TIn[], converter: ConverterCallback<TIn>): ThreadMessage[];
|
561
317
|
}
|
562
318
|
|
563
319
|
declare class ExternalStoreThreadRuntime implements ReactThreadRuntime {
|
564
320
|
private _subscriptions;
|
565
321
|
private repository;
|
566
322
|
private assistantOptimisticId;
|
567
|
-
|
568
|
-
|
569
|
-
edit: boolean;
|
570
|
-
reload: boolean;
|
571
|
-
cancel: boolean;
|
572
|
-
copy: boolean;
|
573
|
-
};
|
323
|
+
private _capabilities;
|
324
|
+
get capabilities(): RuntimeCapabilities;
|
574
325
|
messages: ThreadMessage[];
|
575
326
|
isDisabled: boolean;
|
576
327
|
converter: ThreadMessageConverter;
|
577
328
|
private _store;
|
329
|
+
readonly composer: {
|
330
|
+
text: string;
|
331
|
+
setText: (value: string) => void;
|
332
|
+
};
|
578
333
|
constructor(store: ExternalStoreAdapter<any>);
|
579
334
|
set store(store: ExternalStoreAdapter<any>);
|
335
|
+
private notifySubscribers;
|
580
336
|
getBranches(messageId: string): string[];
|
581
337
|
switchToBranch(branchId: string): void;
|
582
338
|
append(message: AppendMessage): Promise<void>;
|
@@ -593,7 +349,7 @@ declare class ExternalStoreRuntime extends BaseAssistantRuntime<ExternalStoreThr
|
|
593
349
|
set store(store: ExternalStoreAdapter<any>);
|
594
350
|
getModelConfig(): ModelConfig;
|
595
351
|
registerModelConfigProvider(provider: ModelConfigProvider): () => void;
|
596
|
-
switchToThread(threadId: string | null):
|
352
|
+
switchToThread(threadId: string | null): Promise<void>;
|
597
353
|
}
|
598
354
|
|
599
355
|
declare const useExternalStoreRuntime: <T>(store: ExternalStoreAdapter<T>) => ExternalStoreRuntime;
|
@@ -602,11 +358,11 @@ declare const getExternalStoreMessage: <T>(message: ThreadMessage) => T | undefi
|
|
602
358
|
|
603
359
|
type ThreadRuntimeStore = ThreadRuntime;
|
604
360
|
|
605
|
-
type
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
}
|
361
|
+
type ThreadState = Readonly<{
|
362
|
+
capabilities: Readonly<RuntimeCapabilities>;
|
363
|
+
isRunning: boolean;
|
364
|
+
isDisabled: boolean;
|
365
|
+
}>;
|
610
366
|
type RuntimeCapabilities = {
|
611
367
|
switchToBranch: boolean;
|
612
368
|
edit: boolean;
|
@@ -614,8 +370,13 @@ type RuntimeCapabilities = {
|
|
614
370
|
cancel: boolean;
|
615
371
|
copy: boolean;
|
616
372
|
};
|
373
|
+
|
374
|
+
type AddToolResultOptions = {
|
375
|
+
messageId: string;
|
376
|
+
toolCallId: string;
|
377
|
+
result: any;
|
378
|
+
};
|
617
379
|
type ThreadActionsState = Readonly<{
|
618
|
-
capabilities: Readonly<RuntimeCapabilities>;
|
619
380
|
getBranches: (messageId: string) => readonly string[];
|
620
381
|
switchToBranch: (branchId: string) => void;
|
621
382
|
append: (message: AppendMessage) => void;
|
@@ -624,11 +385,19 @@ type ThreadActionsState = Readonly<{
|
|
624
385
|
addToolResult: (options: AddToolResultOptions) => void;
|
625
386
|
}>;
|
626
387
|
|
627
|
-
type ThreadRuntime =
|
388
|
+
type ThreadRuntime = ThreadActionsState & Readonly<{
|
389
|
+
composer: ThreadRuntime.Composer;
|
390
|
+
capabilities: Readonly<RuntimeCapabilities>;
|
628
391
|
isDisabled: boolean;
|
629
392
|
messages: readonly ThreadMessage[];
|
630
393
|
subscribe: (callback: () => void) => Unsubscribe;
|
631
394
|
}>;
|
395
|
+
declare namespace ThreadRuntime {
|
396
|
+
type Composer = Readonly<{
|
397
|
+
text: string;
|
398
|
+
setText: (value: string) => void;
|
399
|
+
}>;
|
400
|
+
}
|
632
401
|
|
633
402
|
type ThreadRuntimeWithSubscribe = {
|
634
403
|
readonly thread: ThreadRuntime;
|
@@ -658,11 +427,6 @@ type AssistantToolUIsState = Readonly<{
|
|
658
427
|
setToolUI: (toolName: string, render: ToolCallContentPartComponent) => () => void;
|
659
428
|
}>;
|
660
429
|
|
661
|
-
type BaseComposerState = Readonly<{
|
662
|
-
value: string;
|
663
|
-
setValue: (value: string) => void;
|
664
|
-
}>;
|
665
|
-
|
666
430
|
type AssistantContextValue = {
|
667
431
|
useModelConfig: ReadonlyStore<AssistantModelConfigState>;
|
668
432
|
useToolUIs: ReadonlyStore<AssistantToolUIsState>;
|
@@ -673,11 +437,6 @@ declare function useAssistantContext(options: {
|
|
673
437
|
optional: true;
|
674
438
|
}): AssistantContextValue | null;
|
675
439
|
|
676
|
-
type ThreadState = Readonly<{
|
677
|
-
isRunning: boolean;
|
678
|
-
isDisabled: boolean;
|
679
|
-
}>;
|
680
|
-
|
681
440
|
type ThreadViewportState = Readonly<{
|
682
441
|
isAtBottom: boolean;
|
683
442
|
scrollToBottom: () => void;
|
@@ -699,7 +458,13 @@ declare function useThreadContext(options: {
|
|
699
458
|
optional: true;
|
700
459
|
}): ThreadContextValue | null;
|
701
460
|
|
702
|
-
type EditComposerState =
|
461
|
+
type EditComposerState = Readonly<{
|
462
|
+
/** @deprecated Use `text` instead. */
|
463
|
+
value: string;
|
464
|
+
/** @deprecated Use `setText` instead. */
|
465
|
+
setValue: (value: string) => void;
|
466
|
+
text: string;
|
467
|
+
setText: (value: string) => void;
|
703
468
|
canCancel: boolean;
|
704
469
|
isEditing: boolean;
|
705
470
|
edit: () => void;
|
@@ -745,7 +510,13 @@ declare function useContentPartContext(options: {
|
|
745
510
|
optional: true;
|
746
511
|
}): ContentPartContextValue | null;
|
747
512
|
|
748
|
-
type ComposerState =
|
513
|
+
type ComposerState = Readonly<{
|
514
|
+
/** @deprecated Use `text` instead. */
|
515
|
+
value: string;
|
516
|
+
/** @deprecated Use `setText` instead. */
|
517
|
+
setValue: (value: string) => void;
|
518
|
+
text: string;
|
519
|
+
setText: (value: string) => void;
|
749
520
|
canCancel: boolean;
|
750
521
|
isEditing: true;
|
751
522
|
send: () => void;
|
@@ -1401,4 +1172,4 @@ declare const exports: {
|
|
1401
1172
|
Text: FC;
|
1402
1173
|
};
|
1403
1174
|
|
1404
|
-
export { index$6 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, type AddToolResultOptions, AppendMessage, _default$9 as AssistantActionBar, type AssistantActionsState, type AssistantContextValue, _default$8 as AssistantMessage, type AssistantMessageConfig, type AssistantMessageContentProps, _default$7 as AssistantModal, index$5 as AssistantModalPrimitive, type AssistantModalPrimitiveContentProps, type AssistantModalPrimitiveRootProps, type AssistantModalPrimitiveTriggerProps, type AssistantModelConfigState, type AssistantRuntime, AssistantRuntimeProvider, type AssistantToolProps, type AssistantToolUIProps, type AssistantToolUIsState, _default$6 as BranchPicker, index$4 as BranchPickerPrimitive, type BranchPickerPrimitiveCountProps, type BranchPickerPrimitiveNextProps, type BranchPickerPrimitiveNumberProps, type BranchPickerPrimitivePreviousProps, type BranchPickerPrimitiveRootProps, type ChatModelAdapter, type ChatModelRunOptions, type ChatModelRunResult, type ChatModelRunUpdate, _default$5 as Composer, type ComposerContextValue, type ComposerInputProps, index$3 as ComposerPrimitive, type ComposerPrimitiveCancelProps, type ComposerPrimitiveIfProps, type ComposerPrimitiveInputProps, type ComposerPrimitiveRootProps, type ComposerPrimitiveSendProps, type ComposerState, exports as ContentPart, type ContentPartContextValue, index$2 as ContentPartPrimitive, type ContentPartPrimitiveDisplayProps, type ContentPartPrimitiveImageProps, type ContentPartPrimitiveInProgressProps, type ContentPartPrimitiveTextProps, type ContentPartState, CoreMessage, EdgeChatAdapter, type EdgeRuntimeOptions,
|
1175
|
+
export { index$6 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, type AddToolResultOptions, AppendMessage, _default$9 as AssistantActionBar, type AssistantActionsState, type AssistantContextValue, _default$8 as AssistantMessage, type AssistantMessageConfig, type AssistantMessageContentProps, _default$7 as AssistantModal, index$5 as AssistantModalPrimitive, type AssistantModalPrimitiveContentProps, type AssistantModalPrimitiveRootProps, type AssistantModalPrimitiveTriggerProps, type AssistantModelConfigState, type AssistantRuntime, AssistantRuntimeProvider, type AssistantToolProps, type AssistantToolUIProps, type AssistantToolUIsState, _default$6 as BranchPicker, index$4 as BranchPickerPrimitive, type BranchPickerPrimitiveCountProps, type BranchPickerPrimitiveNextProps, type BranchPickerPrimitiveNumberProps, type BranchPickerPrimitivePreviousProps, type BranchPickerPrimitiveRootProps, type ChatModelAdapter, type ChatModelRunOptions, type ChatModelRunResult, type ChatModelRunUpdate, _default$5 as Composer, type ComposerContextValue, type ComposerInputProps, index$3 as ComposerPrimitive, type ComposerPrimitiveCancelProps, type ComposerPrimitiveIfProps, type ComposerPrimitiveInputProps, type ComposerPrimitiveRootProps, type ComposerPrimitiveSendProps, type ComposerState, exports as ContentPart, type ContentPartContextValue, index$2 as ContentPartPrimitive, type ContentPartPrimitiveDisplayProps, type ContentPartPrimitiveImageProps, type ContentPartPrimitiveInProgressProps, type ContentPartPrimitiveTextProps, type ContentPartState, CoreMessage, EdgeChatAdapter, type EdgeRuntimeOptions, _default$4 as EditComposer, type EditComposerState, type ExternalStoreAdapter, type ExternalStoreMessageConverter, ExternalStoreRuntime, internal as INTERNAL, ImageContentPart, type ImageContentPartComponent, type ImageContentPartProps, type LocalRuntimeOptions, type MessageContextValue, index$1 as MessagePrimitive, type MessagePrimitiveContentProps, type MessagePrimitiveIfProps, type MessagePrimitiveInProgressProps, type MessagePrimitiveRootProps, type MessageState, MessageStatus, type MessageUtilsState, ModelConfig, ModelConfigProvider, type ReactThreadRuntime, StreamUtils, type StringsConfig, type SuggestionConfig, TextContentPart, type TextContentPartComponent, type TextContentPartProps, _default$3 as Thread, type ThreadActionsState, ThreadAssistantContentPart, type ThreadConfig, ThreadConfigProvider, type ThreadConfigProviderProps, type ThreadContextValue, ThreadMessage, type ThreadMessageLike, type ThreadMessagesState, index as ThreadPrimitive, type ThreadPrimitiveEmptyProps, type ThreadPrimitiveIfProps, type ThreadPrimitiveMessagesProps, type ThreadPrimitiveRootProps, type ThreadPrimitiveScrollToBottomProps, type ThreadPrimitiveSuggestionProps, type ThreadPrimitiveViewportProps, type ThreadRootProps, ThreadRuntime, type ThreadState, type ThreadViewportState, _default as ThreadWelcome, type ThreadWelcomeConfig, type ThreadWelcomeMessageProps, type ThreadWelcomeSuggestionProps, Tool, ToolCallContentPart, type ToolCallContentPartComponent, type ToolCallContentPartProps, UIContentPart, type UIContentPartComponent, type UIContentPartProps, type Unsubscribe, type UseActionBarCopyProps, _default$1 as UserActionBar, _default$2 as UserMessage, type UserMessageConfig, type UserMessageContentProps, fromCoreMessage, fromCoreMessages, fromLanguageModelMessages, fromLanguageModelTools, getExternalStoreMessage, makeAssistantTool, makeAssistantToolUI, streamUtils, subscribeToMainThread, toCoreMessage, toCoreMessages, toLanguageModelMessages, toLanguageModelTools, useActionBarCopy, useActionBarEdit, useActionBarReload, useAppendMessage, useAssistantContext, useAssistantInstructions, useAssistantTool, useAssistantToolUI, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposerCancel, useComposerContext, useComposerIf, useComposerSend, useContentPartContext, useContentPartDisplay, useContentPartImage, useContentPartText, useEdgeRuntime, useExternalStoreRuntime, useLocalRuntime, useMessageContext, useMessageIf, useSwitchToNewThread, useThreadConfig, useThreadContext, useThreadEmpty, useThreadIf, useThreadScrollToBottom, useThreadSuggestion };
|