@assistant-ui/react 0.5.21 → 0.5.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/dist/{AssistantTypes-D93BmqD5.d.mts → AssistantTypes-BNB-knVq.d.mts} +1 -1
  2. package/dist/{AssistantTypes-D93BmqD5.d.ts → AssistantTypes-BNB-knVq.d.ts} +1 -1
  3. package/dist/chunk-DCHYNTHI.js +11 -0
  4. package/dist/chunk-DCHYNTHI.js.map +1 -0
  5. package/dist/chunk-NSPHKRLF.js +819 -0
  6. package/dist/chunk-NSPHKRLF.js.map +1 -0
  7. package/dist/{chunk-2RKUKZSZ.mjs → chunk-ZWRFAYHH.mjs} +61 -3
  8. package/dist/chunk-ZWRFAYHH.mjs.map +1 -0
  9. package/dist/edge.d.mts +90 -5
  10. package/dist/edge.d.ts +90 -5
  11. package/dist/edge.js +0 -1
  12. package/dist/edge.js.map +1 -1
  13. package/dist/edge.mjs +799 -49
  14. package/dist/edge.mjs.map +1 -1
  15. package/dist/index.d.mts +164 -7
  16. package/dist/index.d.ts +164 -7
  17. package/dist/index.js +761 -1607
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +833 -252
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/tailwindcss/index.js +24 -53
  22. package/dist/tailwindcss/index.js.map +1 -1
  23. package/package.json +1 -12
  24. package/dist/Thread-BbLf1cc4.d.mts +0 -156
  25. package/dist/Thread-jfAlPLli.d.ts +0 -156
  26. package/dist/chunk-2RKUKZSZ.mjs.map +0 -1
  27. package/dist/chunk-QBS6JLLN.mjs +0 -63
  28. package/dist/chunk-QBS6JLLN.mjs.map +0 -1
  29. package/dist/chunk-V66MVXBH.mjs +0 -608
  30. package/dist/chunk-V66MVXBH.mjs.map +0 -1
  31. package/dist/internal.d.mts +0 -9
  32. package/dist/internal.d.ts +0 -9
  33. package/dist/internal.js +0 -620
  34. package/dist/internal.js.map +0 -1
  35. package/dist/internal.mjs +0 -24
  36. package/dist/internal.mjs.map +0 -1
  37. package/internal/README.md +0 -1
  38. package/internal/package.json +0 -5
package/dist/index.d.ts CHANGED
@@ -1,9 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { ComponentType, PropsWithChildren, ComponentPropsWithoutRef, FC, ElementType, ReactNode } from 'react';
3
- import { T as ThreadRuntime, U as Unsubscribe, A as AddToolResultOptions, B as BaseAssistantRuntime, R as ReactThreadRuntime, a as AssistantRuntime, b as ThreadState, c as ThreadActionsState, C as ContentPartState, d as TooltipIconButtonProps, e as ButtonProps } from './Thread-jfAlPLli.js';
4
- export { i as INTERNAL } from './Thread-jfAlPLli.js';
5
- import { T as ThreadAssistantContentPart, M as MessageStatus, a as ThreadRoundtrip, b as ThreadMessage, c as ModelConfig, d as TextContentPart, C as ContentPartStatus, I as ImageContentPart, U as UIContentPart, e as ToolCallContentPart, f as ToolCallContentPartStatus, g as CoreMessage, h as ModelConfigProvider, A as AppendMessage, i as Tool, j as CoreToolCallContentPart } from './AssistantTypes-D93BmqD5.js';
6
- 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 './AssistantTypes-D93BmqD5.js';
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 './AssistantTypes-BNB-knVq.js';
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 './AssistantTypes-BNB-knVq.js';
7
5
  import { UseBoundStore, StoreApi } from 'zustand';
8
6
  import { Primitive } from '@radix-ui/react-primitive';
9
7
  import * as PopoverPrimitive from '@radix-ui/react-popover';
@@ -12,11 +10,18 @@ import { TextareaAutosizeProps } from 'react-textarea-autosize';
12
10
  import { LanguageModelV1Message, LanguageModelV1FunctionTool } from '@ai-sdk/provider';
13
11
  import { JSONSchema7 } from 'json-schema';
14
12
  import { z } from 'zod';
15
- import 'class-variance-authority';
16
- import 'class-variance-authority/types';
13
+ import * as class_variance_authority from 'class-variance-authority';
14
+ import { VariantProps } from 'class-variance-authority';
15
+ import * as class_variance_authority_types from 'class-variance-authority/types';
16
+
17
+ type Unsubscribe = () => void;
17
18
 
18
19
  type ReadonlyStore<T> = UseBoundStore<Omit<StoreApi<T>, "setState" | "destroy">>;
19
20
 
21
+ type ReactThreadRuntime = ThreadRuntime & {
22
+ unstable_synchronizer?: ComponentType;
23
+ };
24
+
20
25
  type ChatModelRunUpdate = {
21
26
  content: ThreadAssistantContentPart[];
22
27
  };
@@ -38,6 +43,18 @@ type ChatModelAdapter = {
38
43
  run: (options: ChatModelRunOptions) => Promise<ChatModelRunResult> | AsyncGenerator<ChatModelRunResult, void>;
39
44
  };
40
45
 
46
+ declare abstract class BaseAssistantRuntime<TThreadRuntime extends ReactThreadRuntime> implements AssistantRuntime {
47
+ private _thread;
48
+ constructor(_thread: TThreadRuntime);
49
+ get thread(): TThreadRuntime;
50
+ set thread(thread: TThreadRuntime);
51
+ abstract registerModelConfigProvider(provider: ModelConfigProvider): Unsubscribe;
52
+ abstract switchToThread(threadId: string | null): void;
53
+ private _subscriptions;
54
+ subscribe(callback: () => void): Unsubscribe;
55
+ private subscriptionHandler;
56
+ }
57
+
41
58
  type TextContentPartProps = {
42
59
  part: TextContentPart;
43
60
  status: ContentPartStatus;
@@ -60,6 +77,33 @@ type ToolCallContentPartProps<TArgs extends Record<string, unknown> = any, TResu
60
77
  };
61
78
  type ToolCallContentPartComponent<TArgs extends Record<string, unknown> = any, TResult = any> = ComponentType<ToolCallContentPartProps<TArgs, TResult>>;
62
79
 
80
+ interface ExportedMessageRepository {
81
+ headId?: string | null;
82
+ messages: Array<{
83
+ message: ThreadMessage;
84
+ parentId: string | null;
85
+ }>;
86
+ }
87
+ declare class MessageRepository {
88
+ private messages;
89
+ private head;
90
+ private root;
91
+ private performOp;
92
+ getMessages(): ThreadMessage[];
93
+ addOrUpdateMessage(parentId: string | null, message: ThreadMessage): void;
94
+ getMessage(messageId: string): {
95
+ parentId: string | null;
96
+ message: ThreadMessage;
97
+ };
98
+ appendOptimisticMessage(parentId: string | null, message: CoreMessage): string;
99
+ deleteMessage(messageId: string, replacementId?: string | null | undefined): void;
100
+ getBranches(messageId: string): string[];
101
+ switchToBranch(messageId: string): void;
102
+ resetHead(messageId: string | null): void;
103
+ export(): ExportedMessageRepository;
104
+ import({ headId, messages }: ExportedMessageRepository): void;
105
+ }
106
+
63
107
  type LocalRuntimeOptions = {
64
108
  initialMessages?: readonly CoreMessage[] | undefined;
65
109
  maxToolRoundtrips?: number;
@@ -92,6 +136,8 @@ declare class LocalThreadRuntime implements ThreadRuntime {
92
136
  private notifySubscribers;
93
137
  subscribe(callback: () => void): Unsubscribe;
94
138
  addToolResult({ messageId, toolCallId, result }: AddToolResultOptions): void;
139
+ export(): ExportedMessageRepository;
140
+ import(data: ExportedMessageRepository): void;
95
141
  }
96
142
 
97
143
  declare class LocalRuntime extends BaseAssistantRuntime<LocalThreadRuntime> {
@@ -416,6 +462,76 @@ type ExternalStoreAdapterBase<T> = {
416
462
  };
417
463
  type ExternalStoreAdapter<T = ThreadMessage> = ExternalStoreAdapterBase<T> & (T extends ThreadMessage ? object : ExternalStoreMessageConverterAdapter<T>);
418
464
 
465
+ declare class ProxyConfigProvider implements ModelConfigProvider {
466
+ private _providers;
467
+ getModelConfig(): ModelConfig;
468
+ registerModelConfigProvider(provider: ModelConfigProvider): () => void;
469
+ }
470
+
471
+ type TextContentPartState = Readonly<{
472
+ status: ContentPartStatus;
473
+ part: TextContentPart;
474
+ }>;
475
+ type ContentPartState = Readonly<{
476
+ status: ContentPartStatus | ToolCallContentPartStatus;
477
+ part: TextContentPart | ImageContentPart | UIContentPart | ToolCallContentPart;
478
+ }>;
479
+
480
+ declare const useSmooth: (state: TextContentPartState, smooth?: boolean) => TextContentPartState;
481
+
482
+ declare const withSmoothContextProvider: <C extends React.ComponentType<any>>(Component: C) => C;
483
+ declare const useSmoothStatus: () => {
484
+ type: "running";
485
+ } | {
486
+ type: "complete";
487
+ } | {
488
+ type: "incomplete";
489
+ reason: "cancelled" | "length" | "content-filter" | "other" | "error";
490
+ error?: unknown;
491
+ } | {
492
+ type: "requires-action";
493
+ reason: "tool-calls";
494
+ };
495
+
496
+ declare const buttonVariants: (props?: ({
497
+ variant?: "default" | "outline" | "ghost" | null | undefined;
498
+ size?: "default" | "icon" | null | undefined;
499
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
500
+ type ButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button> & VariantProps<typeof buttonVariants>;
501
+
502
+ type TooltipIconButtonProps = ButtonProps & {
503
+ tooltip: string;
504
+ side?: "top" | "bottom" | "left" | "right";
505
+ };
506
+ declare const TooltipIconButton: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
507
+ ref?: ((instance: HTMLButtonElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLButtonElement> | null | undefined;
508
+ } & {
509
+ asChild?: boolean;
510
+ }, "ref"> & class_variance_authority.VariantProps<(props?: ({
511
+ variant?: "default" | "outline" | "ghost" | null | undefined;
512
+ size?: "default" | "icon" | null | undefined;
513
+ } & class_variance_authority_types.ClassProp) | undefined) => string> & {
514
+ tooltip: string;
515
+ side?: "top" | "bottom" | "left" | "right";
516
+ } & react.RefAttributes<HTMLButtonElement>>;
517
+
518
+ declare const generateId: (size?: number) => string;
519
+
520
+ type internal_BaseAssistantRuntime<TThreadRuntime extends ReactThreadRuntime> = BaseAssistantRuntime<TThreadRuntime>;
521
+ declare const internal_BaseAssistantRuntime: typeof BaseAssistantRuntime;
522
+ type internal_MessageRepository = MessageRepository;
523
+ declare const internal_MessageRepository: typeof MessageRepository;
524
+ type internal_ProxyConfigProvider = ProxyConfigProvider;
525
+ declare const internal_ProxyConfigProvider: typeof ProxyConfigProvider;
526
+ declare const internal_TooltipIconButton: typeof TooltipIconButton;
527
+ declare const internal_generateId: typeof generateId;
528
+ declare const internal_useSmooth: typeof useSmooth;
529
+ declare const internal_useSmoothStatus: typeof useSmoothStatus;
530
+ declare const internal_withSmoothContextProvider: typeof withSmoothContextProvider;
531
+ declare namespace internal {
532
+ 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, internal_useSmoothStatus as useSmoothStatus, internal_withSmoothContextProvider as withSmoothContextProvider };
533
+ }
534
+
419
535
  declare class ExternalStoreThreadRuntime implements ReactThreadRuntime {
420
536
  store: ExternalStoreAdapter<any>;
421
537
  private _subscriptions;
@@ -462,6 +578,42 @@ declare const getExternalStoreMessage: <T>(message: ThreadMessage) => T | undefi
462
578
 
463
579
  type ThreadRuntimeStore = ThreadRuntime;
464
580
 
581
+ type AddToolResultOptions = {
582
+ messageId: string;
583
+ toolCallId: string;
584
+ result: any;
585
+ };
586
+ type RuntimeCapabilities = {
587
+ switchToBranch: boolean;
588
+ edit: boolean;
589
+ reload: boolean;
590
+ cancel: boolean;
591
+ copy: boolean;
592
+ };
593
+ type ThreadActionsState = Readonly<{
594
+ capabilities: Readonly<RuntimeCapabilities>;
595
+ getBranches: (messageId: string) => readonly string[];
596
+ switchToBranch: (branchId: string) => void;
597
+ append: (message: AppendMessage) => void;
598
+ startRun: (parentId: string | null) => void;
599
+ cancelRun: () => void;
600
+ addToolResult: (options: AddToolResultOptions) => void;
601
+ }>;
602
+
603
+ type ThreadRuntime = Readonly<ThreadState & Omit<ThreadActionsState, "getRuntime"> & {
604
+ messages: readonly ThreadMessage[];
605
+ subscribe: (callback: () => void) => Unsubscribe;
606
+ }>;
607
+
608
+ type ThreadRuntimeWithSubscribe = {
609
+ readonly thread: ThreadRuntime;
610
+ subscribe: (callback: () => void) => Unsubscribe;
611
+ };
612
+ type AssistantRuntime = ThreadRuntimeWithSubscribe & {
613
+ switchToThread: (threadId: string | null) => void;
614
+ registerModelConfigProvider: (provider: ModelConfigProvider) => Unsubscribe;
615
+ };
616
+
465
617
  type AssistantRuntimeProviderProps = {
466
618
  runtime: AssistantRuntime;
467
619
  };
@@ -496,6 +648,11 @@ declare function useAssistantContext(options: {
496
648
  optional: true;
497
649
  }): AssistantContextValue | null;
498
650
 
651
+ type ThreadState = Readonly<{
652
+ isRunning: boolean;
653
+ isDisabled: boolean;
654
+ }>;
655
+
499
656
  type ThreadViewportState = Readonly<{
500
657
  isAtBottom: boolean;
501
658
  scrollToBottom: () => void;
@@ -1214,4 +1371,4 @@ declare const exports: {
1214
1371
  Text: FC;
1215
1372
  };
1216
1373
 
1217
- export { index$6 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, 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, 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, ContentPartState, CoreMessage, EdgeChatAdapter, type EdgeRuntimeOptions, type EdgeRuntimeRequestOptions, _default$4 as EditComposer, type EditComposerState, type ExternalStoreAdapter, type ExternalStoreMessageConverter, ExternalStoreRuntime, 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, ReactThreadRuntime, type StringsConfig, type SuggestionConfig, TextContentPart, type TextContentPartComponent, type TextContentPartProps, _default$3 as Thread, 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, ThreadState, type ThreadViewportState, _default as ThreadWelcome, type ThreadWelcomeConfig, type ThreadWelcomeMessageProps, type ThreadWelcomeSuggestionProps, Tool, ToolCallContentPart, type ToolCallContentPartComponent, type ToolCallContentPartProps, UIContentPart, type UIContentPartComponent, type UIContentPartProps, Unsubscribe, type UseActionBarCopyProps, _default$1 as UserActionBar, _default$2 as UserMessage, type UserMessageConfig, type UserMessageContentProps, fromCoreMessage, fromCoreMessages, fromLanguageModelMessages, fromLanguageModelTools, getExternalStoreMessage, makeAssistantTool, makeAssistantToolUI, 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 };
1374
+ 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, type EdgeRuntimeRequestOptions, _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, 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, type 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, 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 };