@assistant-ui/react 0.4.5 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ReactNode, ComponentType, PropsWithChildren, ComponentPropsWithoutRef, FC } from 'react';
3
3
  import { z } from 'zod';
4
4
  import { JSONSchema7 } from 'json-schema';
5
- import { LanguageModelV1FinishReason, LanguageModelV1LogProbs, LanguageModelV1Message } from '@ai-sdk/provider';
5
+ import { LanguageModelV1FinishReason, LanguageModelV1LogProbs, LanguageModelV1Message, LanguageModelV1FunctionTool } from '@ai-sdk/provider';
6
6
  import { UseBoundStore, StoreApi } from 'zustand';
7
7
  import { Primitive } from '@radix-ui/react-primitive';
8
8
  import * as PopoverPrimitive from '@radix-ui/react-popover';
@@ -12,8 +12,48 @@ import * as class_variance_authority from 'class-variance-authority';
12
12
  import { VariantProps } from 'class-variance-authority';
13
13
  import * as class_variance_authority_types from 'class-variance-authority/types';
14
14
 
15
+ declare const LanguageModelV1CallSettingsSchema: z.ZodObject<{
16
+ maxTokens: z.ZodOptional<z.ZodNumber>;
17
+ temperature: z.ZodOptional<z.ZodNumber>;
18
+ topP: z.ZodOptional<z.ZodNumber>;
19
+ presencePenalty: z.ZodOptional<z.ZodNumber>;
20
+ frequencyPenalty: z.ZodOptional<z.ZodNumber>;
21
+ seed: z.ZodOptional<z.ZodNumber>;
22
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ maxTokens?: number | undefined;
25
+ temperature?: number | undefined;
26
+ topP?: number | undefined;
27
+ presencePenalty?: number | undefined;
28
+ frequencyPenalty?: number | undefined;
29
+ seed?: number | undefined;
30
+ headers?: Record<string, string | undefined> | undefined;
31
+ }, {
32
+ maxTokens?: number | undefined;
33
+ temperature?: number | undefined;
34
+ topP?: number | undefined;
35
+ presencePenalty?: number | undefined;
36
+ frequencyPenalty?: number | undefined;
37
+ seed?: number | undefined;
38
+ headers?: Record<string, string | undefined> | undefined;
39
+ }>;
40
+ type LanguageModelV1CallSettings = z.infer<typeof LanguageModelV1CallSettingsSchema>;
41
+ declare const LanguageModelConfigSchema: z.ZodObject<{
42
+ apiKey: z.ZodOptional<z.ZodString>;
43
+ baseUrl: z.ZodOptional<z.ZodString>;
44
+ modelName: z.ZodOptional<z.ZodString>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ apiKey?: string | undefined;
47
+ baseUrl?: string | undefined;
48
+ modelName?: string | undefined;
49
+ }, {
50
+ apiKey?: string | undefined;
51
+ baseUrl?: string | undefined;
52
+ modelName?: string | undefined;
53
+ }>;
54
+ type LanguageModelConfig = z.infer<typeof LanguageModelConfigSchema>;
15
55
  type ToolExecuteFunction<TArgs, TResult> = (args: TArgs) => TResult | Promise<TResult>;
16
- type Tool<TArgs = unknown, TResult = unknown> = {
56
+ type Tool<TArgs extends Record<string, unknown> = Record<string | number, unknown>, TResult = unknown> = {
17
57
  description?: string | undefined;
18
58
  parameters: z.ZodSchema<TArgs> | JSONSchema7;
19
59
  execute?: ToolExecuteFunction<TArgs, TResult>;
@@ -22,6 +62,8 @@ type ModelConfig = {
22
62
  priority?: number | undefined;
23
63
  system?: string | undefined;
24
64
  tools?: Record<string, Tool<any, any>> | undefined;
65
+ callSettings?: LanguageModelV1CallSettings | undefined;
66
+ config?: LanguageModelConfig | undefined;
25
67
  };
26
68
  type ModelConfigProvider = {
27
69
  getModelConfig: () => ModelConfig;
@@ -41,14 +83,16 @@ type UIContentPart = {
41
83
  type: "ui";
42
84
  display: ReactNode;
43
85
  };
44
- type ToolCallContentPart<TArgs = unknown, TResult = unknown> = {
86
+ type CoreToolCallContentPart<TArgs extends Record<string, unknown> = Record<string | number, unknown>, TResult = unknown> = {
45
87
  type: "tool-call";
46
88
  toolCallId: string;
47
89
  toolName: string;
48
- argsText: string;
49
90
  args: TArgs;
50
- result?: TResult;
51
- isError?: boolean;
91
+ result?: TResult | undefined;
92
+ isError?: boolean | undefined;
93
+ };
94
+ type ToolCallContentPart<TArgs extends Record<string, unknown> = Record<string | number, unknown>, TResult = unknown> = CoreToolCallContentPart<TArgs, TResult> & {
95
+ argsText: string;
52
96
  };
53
97
  type ThreadUserContentPart = TextContentPart | ImageContentPart | UIContentPart;
54
98
  type ThreadAssistantContentPart = TextContentPart | ToolCallContentPart | UIContentPart;
@@ -57,7 +101,7 @@ type MessageCommonProps = {
57
101
  createdAt: Date;
58
102
  };
59
103
  type MessageStatus = {
60
- type: "in_progress";
104
+ type: "in_progress" | "cancelled";
61
105
  } | {
62
106
  type: "done";
63
107
  finishReason?: LanguageModelV1FinishReason;
@@ -89,7 +133,7 @@ type AppendMessage = CoreMessage & {
89
133
  type ThreadMessage = ThreadSystemMessage | ThreadUserMessage | ThreadAssistantMessage;
90
134
  /** Core Message Types (without UI content parts) */
91
135
  type CoreUserContentPart = TextContentPart | ImageContentPart;
92
- type CoreAssistantContentPart = TextContentPart | ToolCallContentPart;
136
+ type CoreAssistantContentPart = TextContentPart | CoreToolCallContentPart;
93
137
  type CoreSystemMessage = {
94
138
  role: "system";
95
139
  content: [TextContentPart];
@@ -104,6 +148,8 @@ type CoreAssistantMessage = {
104
148
  };
105
149
  type CoreMessage = CoreSystemMessage | CoreUserMessage | CoreAssistantMessage;
106
150
 
151
+ type ReadonlyStore<T> = UseBoundStore<Omit<StoreApi<T>, "setState" | "destroy">>;
152
+
107
153
  type ReactThreadRuntime = ThreadRuntime & {
108
154
  unstable_synchronizer?: ComponentType;
109
155
  };
@@ -174,6 +220,8 @@ declare class LocalThreadRuntime implements ThreadRuntime {
174
220
 
175
221
  declare const useLocalRuntime: (adapter: ChatModelAdapter, options?: LocalRuntimeOptions) => LocalRuntime;
176
222
 
223
+ declare function toLanguageModelMessages(message: readonly CoreMessage[] | readonly ThreadMessage[]): LanguageModelV1Message[];
224
+
177
225
  type TextContentPartProps = {
178
226
  part: TextContentPart;
179
227
  status: MessageStatus;
@@ -189,12 +237,25 @@ type UIContentPartProps = {
189
237
  status: MessageStatus;
190
238
  };
191
239
  type UIContentPartComponent = ComponentType<UIContentPartProps>;
192
- type ToolCallContentPartProps<TArgs = any, TResult = any> = {
240
+ type ToolCallContentPartProps<TArgs extends Record<string, unknown> = any, TResult = unknown> = {
193
241
  part: ToolCallContentPart<TArgs, TResult>;
194
242
  status: MessageStatus;
195
243
  addResult: (result: any) => void;
196
244
  };
197
- type ToolCallContentPartComponent<TArgs = any, TResult = any> = ComponentType<ToolCallContentPartProps<TArgs, TResult>>;
245
+ type ToolCallContentPartComponent<TArgs extends Record<string, unknown> = any, TResult = any> = ComponentType<ToolCallContentPartProps<TArgs, TResult>>;
246
+
247
+ type fromLanguageModelMessagesOptions = {
248
+ mergeRoundtrips: boolean;
249
+ };
250
+ declare const fromLanguageModelMessages: (lm: LanguageModelV1Message[], { mergeRoundtrips }: fromLanguageModelMessagesOptions) => CoreMessage[];
251
+
252
+ declare const fromCoreMessages: (message: readonly CoreMessage[]) => ThreadMessage[];
253
+
254
+ declare const toCoreMessages: (message: ThreadMessage[]) => CoreMessage[];
255
+
256
+ declare const fromLanguageModelTools: (tools: LanguageModelV1FunctionTool[]) => Record<string, Tool<any, any>>;
257
+
258
+ declare const toLanguageModelTools: (tools: Record<string, Tool<any, any>>) => LanguageModelV1FunctionTool[];
198
259
 
199
260
  type EdgeChatAdapterOptions = {
200
261
  api: string;
@@ -210,11 +271,257 @@ declare class EdgeChatAdapter implements ChatModelAdapter {
210
271
  type EdgeRuntimeOptions = EdgeChatAdapterOptions & LocalRuntimeOptions;
211
272
  declare const useEdgeRuntime: ({ initialMessages, ...options }: EdgeRuntimeOptions) => LocalRuntime;
212
273
 
213
- declare function toLanguageModelMessages(message: readonly CoreMessage[] | readonly ThreadMessage[]): LanguageModelV1Message[];
214
-
215
- declare const fromLanguageModelMessages: (lm: LanguageModelV1Message[], mergeRoundtrips: boolean) => CoreMessage[];
274
+ declare const EdgeRuntimeRequestOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
275
+ system: z.ZodOptional<z.ZodString>;
276
+ messages: z.ZodArray<z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
277
+ role: z.ZodLiteral<"system">;
278
+ content: z.ZodTuple<[z.ZodObject<{
279
+ type: z.ZodLiteral<"text">;
280
+ text: z.ZodString;
281
+ }, "strip", z.ZodTypeAny, {
282
+ type: "text";
283
+ text: string;
284
+ }, {
285
+ type: "text";
286
+ text: string;
287
+ }>], null>;
288
+ }, "strip", z.ZodTypeAny, {
289
+ role: "system";
290
+ content: [{
291
+ type: "text";
292
+ text: string;
293
+ }];
294
+ }, {
295
+ role: "system";
296
+ content: [{
297
+ type: "text";
298
+ text: string;
299
+ }];
300
+ }>, z.ZodObject<{
301
+ role: z.ZodLiteral<"user">;
302
+ content: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
303
+ type: z.ZodLiteral<"text">;
304
+ text: z.ZodString;
305
+ }, "strip", z.ZodTypeAny, {
306
+ type: "text";
307
+ text: string;
308
+ }, {
309
+ type: "text";
310
+ text: string;
311
+ }>, z.ZodObject<{
312
+ type: z.ZodLiteral<"image">;
313
+ image: z.ZodString;
314
+ }, "strip", z.ZodTypeAny, {
315
+ type: "image";
316
+ image: string;
317
+ }, {
318
+ type: "image";
319
+ image: string;
320
+ }>]>, "many">;
321
+ }, "strip", z.ZodTypeAny, {
322
+ role: "user";
323
+ content: ({
324
+ type: "text";
325
+ text: string;
326
+ } | {
327
+ type: "image";
328
+ image: string;
329
+ })[];
330
+ }, {
331
+ role: "user";
332
+ content: ({
333
+ type: "text";
334
+ text: string;
335
+ } | {
336
+ type: "image";
337
+ image: string;
338
+ })[];
339
+ }>, z.ZodObject<{
340
+ role: z.ZodLiteral<"assistant">;
341
+ content: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
342
+ type: z.ZodLiteral<"text">;
343
+ text: z.ZodString;
344
+ }, "strip", z.ZodTypeAny, {
345
+ type: "text";
346
+ text: string;
347
+ }, {
348
+ type: "text";
349
+ text: string;
350
+ }>, z.ZodObject<{
351
+ type: z.ZodLiteral<"tool-call">;
352
+ toolCallId: z.ZodString;
353
+ toolName: z.ZodString;
354
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
355
+ result: z.ZodOptional<z.ZodUnknown>;
356
+ isError: z.ZodOptional<z.ZodBoolean>;
357
+ }, "strip", z.ZodTypeAny, {
358
+ type: "tool-call";
359
+ toolCallId: string;
360
+ toolName: string;
361
+ args: Record<string, unknown>;
362
+ result?: unknown;
363
+ isError?: boolean | undefined;
364
+ }, {
365
+ type: "tool-call";
366
+ toolCallId: string;
367
+ toolName: string;
368
+ args: Record<string, unknown>;
369
+ result?: unknown;
370
+ isError?: boolean | undefined;
371
+ }>]>, "many">;
372
+ }, "strip", z.ZodTypeAny, {
373
+ role: "assistant";
374
+ content: ({
375
+ type: "text";
376
+ text: string;
377
+ } | {
378
+ type: "tool-call";
379
+ toolCallId: string;
380
+ toolName: string;
381
+ args: Record<string, unknown>;
382
+ result?: unknown;
383
+ isError?: boolean | undefined;
384
+ })[];
385
+ }, {
386
+ role: "assistant";
387
+ content: ({
388
+ type: "text";
389
+ text: string;
390
+ } | {
391
+ type: "tool-call";
392
+ toolCallId: string;
393
+ toolName: string;
394
+ args: Record<string, unknown>;
395
+ result?: unknown;
396
+ isError?: boolean | undefined;
397
+ })[];
398
+ }>]>, "many">;
399
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
400
+ type: z.ZodLiteral<"function">;
401
+ name: z.ZodString;
402
+ description: z.ZodOptional<z.ZodString>;
403
+ parameters: z.ZodType<JSONSchema7, z.ZodTypeDef, JSONSchema7>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ type: "function";
406
+ name: string;
407
+ parameters: JSONSchema7;
408
+ description?: string | undefined;
409
+ }, {
410
+ type: "function";
411
+ name: string;
412
+ parameters: JSONSchema7;
413
+ description?: string | undefined;
414
+ }>, "many">>;
415
+ }, {
416
+ maxTokens: z.ZodOptional<z.ZodNumber>;
417
+ temperature: z.ZodOptional<z.ZodNumber>;
418
+ topP: z.ZodOptional<z.ZodNumber>;
419
+ presencePenalty: z.ZodOptional<z.ZodNumber>;
420
+ frequencyPenalty: z.ZodOptional<z.ZodNumber>;
421
+ seed: z.ZodOptional<z.ZodNumber>;
422
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
423
+ }>, {
424
+ apiKey: z.ZodOptional<z.ZodString>;
425
+ baseUrl: z.ZodOptional<z.ZodString>;
426
+ modelName: z.ZodOptional<z.ZodString>;
427
+ }>, "strip", z.ZodTypeAny, {
428
+ messages: ({
429
+ role: "user";
430
+ content: ({
431
+ type: "text";
432
+ text: string;
433
+ } | {
434
+ type: "image";
435
+ image: string;
436
+ })[];
437
+ } | {
438
+ role: "assistant";
439
+ content: ({
440
+ type: "text";
441
+ text: string;
442
+ } | {
443
+ type: "tool-call";
444
+ toolCallId: string;
445
+ toolName: string;
446
+ args: Record<string, unknown>;
447
+ result?: unknown;
448
+ isError?: boolean | undefined;
449
+ })[];
450
+ } | {
451
+ role: "system";
452
+ content: [{
453
+ type: "text";
454
+ text: string;
455
+ }];
456
+ })[];
457
+ maxTokens?: number | undefined;
458
+ temperature?: number | undefined;
459
+ topP?: number | undefined;
460
+ presencePenalty?: number | undefined;
461
+ frequencyPenalty?: number | undefined;
462
+ seed?: number | undefined;
463
+ headers?: Record<string, string | undefined> | undefined;
464
+ apiKey?: string | undefined;
465
+ baseUrl?: string | undefined;
466
+ modelName?: string | undefined;
467
+ system?: string | undefined;
468
+ tools?: {
469
+ type: "function";
470
+ name: string;
471
+ parameters: JSONSchema7;
472
+ description?: string | undefined;
473
+ }[] | undefined;
474
+ }, {
475
+ messages: ({
476
+ role: "user";
477
+ content: ({
478
+ type: "text";
479
+ text: string;
480
+ } | {
481
+ type: "image";
482
+ image: string;
483
+ })[];
484
+ } | {
485
+ role: "assistant";
486
+ content: ({
487
+ type: "text";
488
+ text: string;
489
+ } | {
490
+ type: "tool-call";
491
+ toolCallId: string;
492
+ toolName: string;
493
+ args: Record<string, unknown>;
494
+ result?: unknown;
495
+ isError?: boolean | undefined;
496
+ })[];
497
+ } | {
498
+ role: "system";
499
+ content: [{
500
+ type: "text";
501
+ text: string;
502
+ }];
503
+ })[];
504
+ maxTokens?: number | undefined;
505
+ temperature?: number | undefined;
506
+ topP?: number | undefined;
507
+ presencePenalty?: number | undefined;
508
+ frequencyPenalty?: number | undefined;
509
+ seed?: number | undefined;
510
+ headers?: Record<string, string | undefined> | undefined;
511
+ apiKey?: string | undefined;
512
+ baseUrl?: string | undefined;
513
+ modelName?: string | undefined;
514
+ system?: string | undefined;
515
+ tools?: {
516
+ type: "function";
517
+ name: string;
518
+ parameters: JSONSchema7;
519
+ description?: string | undefined;
520
+ }[] | undefined;
521
+ }>;
522
+ type EdgeRuntimeRequestOptions = z.infer<typeof EdgeRuntimeRequestOptionsSchema>;
216
523
 
217
- declare const fromCoreMessages: (message: readonly CoreMessage[]) => ThreadMessage[];
524
+ type ThreadRuntimeStore = ThreadRuntime;
218
525
 
219
526
  type AddToolResultOptions = {
220
527
  messageId: string;
@@ -234,7 +541,6 @@ type ThreadActionsState = Readonly<{
234
541
  startRun: (parentId: string | null) => void;
235
542
  cancelRun: () => void;
236
543
  addToolResult: (options: AddToolResultOptions) => void;
237
- getRuntime: () => ThreadRuntime;
238
544
  }>;
239
545
 
240
546
  type ThreadRuntime = Readonly<ThreadState & Omit<ThreadActionsState, "getRuntime"> & {
@@ -275,8 +581,6 @@ type BaseComposerState = Readonly<{
275
581
  setValue: (value: string) => void;
276
582
  }>;
277
583
 
278
- type ReadonlyStore<T> = UseBoundStore<Omit<StoreApi<T>, "setState" | "destroy">>;
279
-
280
584
  type AssistantContextValue = {
281
585
  useModelConfig: ReadonlyStore<AssistantModelConfigState>;
282
586
  useToolUIs: ReadonlyStore<AssistantToolUIsState>;
@@ -301,6 +605,7 @@ type ThreadMessagesState = readonly ThreadMessage[];
301
605
 
302
606
  type ThreadContextValue = {
303
607
  useThread: ReadonlyStore<ThreadState>;
608
+ useThreadRuntime: ReadonlyStore<ThreadRuntimeStore>;
304
609
  useThreadMessages: ReadonlyStore<ThreadMessagesState>;
305
610
  useThreadActions: ReadonlyStore<ThreadActionsState>;
306
611
  useComposer: ReadonlyStore<ComposerState>;
@@ -380,21 +685,21 @@ declare const useAppendMessage: () => (message: CreateAppendMessage) => void;
380
685
 
381
686
  declare const useSwitchToNewThread: () => () => void;
382
687
 
383
- type AssistantToolProps<TArgs, TResult> = Tool<TArgs, TResult> & {
688
+ type AssistantToolProps<TArgs extends Record<string, unknown>, TResult> = Tool<TArgs, TResult> & {
384
689
  toolName: string;
385
690
  render?: ToolCallContentPartComponent<TArgs, TResult> | undefined;
386
691
  };
387
- declare const useAssistantTool: <TArgs, TResult>(tool: AssistantToolProps<TArgs, TResult>) => void;
692
+ declare const useAssistantTool: <TArgs extends Record<string, unknown>, TResult>(tool: AssistantToolProps<TArgs, TResult>) => void;
388
693
 
389
- declare const makeAssistantTool: <TArgs, TResult>(tool: AssistantToolProps<TArgs, TResult>) => () => null;
694
+ declare const makeAssistantTool: <TArgs extends Record<string, unknown>, TResult>(tool: AssistantToolProps<TArgs, TResult>) => () => null;
390
695
 
391
- type AssistantToolUIProps<TArgs, TResult> = {
696
+ type AssistantToolUIProps<TArgs extends Record<string, unknown>, TResult> = {
392
697
  toolName: string;
393
698
  render: ToolCallContentPartComponent<TArgs, TResult>;
394
699
  };
395
700
  declare const useAssistantToolUI: (tool: AssistantToolUIProps<any, any> | null) => void;
396
701
 
397
- declare const makeAssistantToolUI: <TArgs, TResult>(tool: AssistantToolUIProps<TArgs, TResult>) => () => null;
702
+ declare const makeAssistantToolUI: <TArgs extends Record<string, unknown>, TResult>(tool: AssistantToolUIProps<TArgs, TResult>) => () => null;
398
703
 
399
704
  declare const useAssistantInstructions: (instruction: string) => void;
400
705
 
@@ -1068,4 +1373,4 @@ declare namespace internal {
1068
1373
  export { internal_BaseAssistantRuntime as BaseAssistantRuntime, internal_MessageRepository as MessageRepository, internal_ProxyConfigProvider as ProxyConfigProvider, internal_TooltipIconButton as TooltipIconButton, internal_generateId as generateId, internal_useSmooth as useSmooth };
1069
1374
  }
1070
1375
 
1071
- export { index$6 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, type AddToolResultOptions, type 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, type CoreAssistantContentPart, type CoreAssistantMessage, type CoreMessage, type CoreSystemMessage, type CoreUserContentPart, type CoreUserMessage, EdgeChatAdapter, type EdgeRuntimeOptions, _default$4 as EditComposer, type EditComposerState, internal as INTERNAL, type ImageContentPart, type ImageContentPartComponent, type ImageContentPartProps, type LocalRuntimeOptions, type MessageContextValue, index$1 as MessagePrimitive, type MessagePrimitiveContentProps, type MessagePrimitiveIfProps, type MessagePrimitiveInProgressProps, type MessagePrimitiveRootProps, type MessageState, type MessageStatus, type MessageUtilsState, type ModelConfig, type ModelConfigProvider, type ReactThreadRuntime, type StringsConfig, type SuggestionConfig, type TextContentPart, type TextContentPartComponent, type TextContentPartProps, _default$3 as Thread, type ThreadActionsState, type ThreadAssistantContentPart, type ThreadAssistantMessage, type ThreadConfig, ThreadConfigProvider, type ThreadConfigProviderProps, type ThreadContextValue, type ThreadMessage, type ThreadMessagesState, index as ThreadPrimitive, type ThreadPrimitiveEmptyProps, type ThreadPrimitiveIfProps, type ThreadPrimitiveMessagesProps, type ThreadPrimitiveRootProps, type ThreadPrimitiveScrollToBottomProps, type ThreadPrimitiveSuggestionProps, type ThreadPrimitiveViewportProps, type ThreadRootProps, type ThreadRuntime, type ThreadState, type ThreadSystemMessage, type ThreadUserContentPart, type ThreadUserMessage, type ThreadViewportState, _default as ThreadWelcome, type ThreadWelcomeConfig, type ThreadWelcomeMessageProps, type ThreadWelcomeSuggestionProps, type Tool, type ToolCallContentPart, type ToolCallContentPartComponent, type ToolCallContentPartProps, type UIContentPart, type UIContentPartComponent, type UIContentPartProps, type Unsubscribe, type UseActionBarCopyProps, _default$1 as UserActionBar, _default$2 as UserMessage, type UserMessageConfig, type UserMessageContentProps, fromCoreMessages, fromLanguageModelMessages, makeAssistantTool, makeAssistantToolUI, toLanguageModelMessages, useActionBarCopy, useActionBarEdit, useActionBarReload, useAppendMessage, useAssistantContext, useAssistantInstructions, useAssistantTool, useAssistantToolUI, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposerCancel, useComposerContext, useComposerIf, useComposerSend, useContentPartContext, useContentPartDisplay, useContentPartImage, useContentPartText, useEdgeRuntime, useLocalRuntime, useMessageContext, useMessageIf, useSwitchToNewThread, useThreadConfig, useThreadContext, useThreadEmpty, useThreadIf, useThreadScrollToBottom, useThreadSuggestion };
1376
+ export { index$6 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, type AddToolResultOptions, type 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, type CoreAssistantContentPart, type CoreAssistantMessage, type CoreMessage, type CoreSystemMessage, type CoreUserContentPart, type CoreUserMessage, EdgeChatAdapter, type EdgeRuntimeOptions, type EdgeRuntimeRequestOptions, _default$4 as EditComposer, type EditComposerState, internal as INTERNAL, type ImageContentPart, type ImageContentPartComponent, type ImageContentPartProps, type LocalRuntimeOptions, type MessageContextValue, index$1 as MessagePrimitive, type MessagePrimitiveContentProps, type MessagePrimitiveIfProps, type MessagePrimitiveInProgressProps, type MessagePrimitiveRootProps, type MessageState, type MessageStatus, type MessageUtilsState, type ModelConfig, type ModelConfigProvider, type ReactThreadRuntime, type StringsConfig, type SuggestionConfig, type TextContentPart, type TextContentPartComponent, type TextContentPartProps, _default$3 as Thread, type ThreadActionsState, type ThreadAssistantContentPart, type ThreadAssistantMessage, type ThreadConfig, ThreadConfigProvider, type ThreadConfigProviderProps, type ThreadContextValue, type ThreadMessage, type ThreadMessagesState, index as ThreadPrimitive, type ThreadPrimitiveEmptyProps, type ThreadPrimitiveIfProps, type ThreadPrimitiveMessagesProps, type ThreadPrimitiveRootProps, type ThreadPrimitiveScrollToBottomProps, type ThreadPrimitiveSuggestionProps, type ThreadPrimitiveViewportProps, type ThreadRootProps, type ThreadRuntime, type ThreadState, type ThreadSystemMessage, type ThreadUserContentPart, type ThreadUserMessage, type ThreadViewportState, _default as ThreadWelcome, type ThreadWelcomeConfig, type ThreadWelcomeMessageProps, type ThreadWelcomeSuggestionProps, type Tool, type ToolCallContentPart, type ToolCallContentPartComponent, type ToolCallContentPartProps, type UIContentPart, type UIContentPartComponent, type UIContentPartProps, type Unsubscribe, type UseActionBarCopyProps, _default$1 as UserActionBar, _default$2 as UserMessage, type UserMessageConfig, type UserMessageContentProps, fromCoreMessages, fromLanguageModelMessages, fromLanguageModelTools, makeAssistantTool, makeAssistantToolUI, toCoreMessages, toLanguageModelMessages, toLanguageModelTools, useActionBarCopy, useActionBarEdit, useActionBarReload, useAppendMessage, useAssistantContext, useAssistantInstructions, useAssistantTool, useAssistantToolUI, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposerCancel, useComposerContext, useComposerIf, useComposerSend, useContentPartContext, useContentPartDisplay, useContentPartImage, useContentPartText, useEdgeRuntime, useLocalRuntime, useMessageContext, useMessageIf, useSwitchToNewThread, useThreadConfig, useThreadContext, useThreadEmpty, useThreadIf, useThreadScrollToBottom, useThreadSuggestion };