@assistant-ui/react 0.5.20 → 0.5.21

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -1,179 +1,22 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, ComponentType, PropsWithChildren, ComponentPropsWithoutRef, FC, ElementType } from 'react';
3
- import { z } from 'zod';
4
- import { JSONSchema7 } from 'json-schema';
5
- import { LanguageModelV1LogProbs, LanguageModelV1Message, LanguageModelV1FunctionTool } from '@ai-sdk/provider';
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';
6
7
  import { UseBoundStore, StoreApi } from 'zustand';
7
8
  import { Primitive } from '@radix-ui/react-primitive';
8
9
  import * as PopoverPrimitive from '@radix-ui/react-popover';
9
10
  import * as react_textarea_autosize from 'react-textarea-autosize';
10
11
  import { TextareaAutosizeProps } from 'react-textarea-autosize';
11
- import * as class_variance_authority from 'class-variance-authority';
12
- import { VariantProps } from 'class-variance-authority';
13
- import * as class_variance_authority_types from 'class-variance-authority/types';
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>;
55
- type ToolExecuteFunction<TArgs, TResult> = (args: TArgs) => TResult | Promise<TResult>;
56
- type Tool<TArgs extends Record<string, unknown> = Record<string | number, unknown>, TResult = unknown> = {
57
- description?: string | undefined;
58
- parameters: z.ZodSchema<TArgs> | JSONSchema7;
59
- execute?: ToolExecuteFunction<TArgs, TResult>;
60
- };
61
- type ModelConfig = {
62
- priority?: number | undefined;
63
- system?: string | undefined;
64
- tools?: Record<string, Tool<any, any>> | undefined;
65
- callSettings?: LanguageModelV1CallSettings | undefined;
66
- config?: LanguageModelConfig | undefined;
67
- };
68
- type ModelConfigProvider = {
69
- getModelConfig: () => ModelConfig;
70
- };
71
-
72
- type Unsubscribe = () => void;
73
-
74
- type TextContentPart = {
75
- type: "text";
76
- text: string;
77
- };
78
- type ImageContentPart = {
79
- type: "image";
80
- image: string;
81
- };
82
- type UIContentPart = {
83
- type: "ui";
84
- display: ReactNode;
85
- };
86
- type CoreToolCallContentPart<TArgs extends Record<string, unknown> = Record<string | number, unknown>, TResult = unknown> = {
87
- type: "tool-call";
88
- toolCallId: string;
89
- toolName: string;
90
- args: TArgs;
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;
96
- };
97
- type ThreadUserContentPart = TextContentPart | ImageContentPart | UIContentPart;
98
- type ThreadAssistantContentPart = TextContentPart | ToolCallContentPart | UIContentPart;
99
- type MessageCommonProps = {
100
- id: string;
101
- createdAt: Date;
102
- };
103
- type ThreadRoundtrip = {
104
- logprobs?: LanguageModelV1LogProbs | undefined;
105
- usage?: {
106
- promptTokens: number;
107
- completionTokens: number;
108
- } | undefined;
109
- };
110
- type ContentPartStatus = {
111
- type: "running";
112
- } | {
113
- type: "complete";
114
- } | {
115
- type: "incomplete";
116
- reason: "cancelled" | "length" | "content-filter" | "other" | "error";
117
- error?: unknown;
118
- };
119
- type ToolCallContentPartStatus = {
120
- type: "requires-action";
121
- reason: "tool-calls";
122
- } | ContentPartStatus;
123
- type MessageStatus = {
124
- type: "running";
125
- } | {
126
- type: "requires-action";
127
- reason: "tool-calls";
128
- } | {
129
- type: "complete";
130
- reason: "stop" | "unknown";
131
- } | {
132
- type: "incomplete";
133
- reason: "cancelled" | "tool-calls" | "length" | "content-filter" | "other" | "error";
134
- error?: unknown;
135
- };
136
- type ThreadSystemMessage = MessageCommonProps & {
137
- role: "system";
138
- content: [TextContentPart];
139
- };
140
- type ThreadUserMessage = MessageCommonProps & {
141
- role: "user";
142
- content: ThreadUserContentPart[];
143
- };
144
- type ThreadAssistantMessage = MessageCommonProps & {
145
- role: "assistant";
146
- content: ThreadAssistantContentPart[];
147
- status: MessageStatus;
148
- roundtrips?: ThreadRoundtrip[] | undefined;
149
- };
150
- type AppendMessage = CoreMessage & {
151
- parentId: string | null;
152
- };
153
- type ThreadMessage = ThreadSystemMessage | ThreadUserMessage | ThreadAssistantMessage;
154
- /** Core Message Types (without UI content parts) */
155
- type CoreUserContentPart = TextContentPart | ImageContentPart;
156
- type CoreAssistantContentPart = TextContentPart | CoreToolCallContentPart;
157
- type CoreSystemMessage = {
158
- role: "system";
159
- content: [TextContentPart];
160
- };
161
- type CoreUserMessage = {
162
- role: "user";
163
- content: CoreUserContentPart[];
164
- };
165
- type CoreAssistantMessage = {
166
- role: "assistant";
167
- content: CoreAssistantContentPart[];
168
- };
169
- type CoreMessage = CoreSystemMessage | CoreUserMessage | CoreAssistantMessage;
12
+ import { LanguageModelV1Message, LanguageModelV1FunctionTool } from '@ai-sdk/provider';
13
+ import { JSONSchema7 } from 'json-schema';
14
+ import { z } from 'zod';
15
+ import 'class-variance-authority';
16
+ import 'class-variance-authority/types';
170
17
 
171
18
  type ReadonlyStore<T> = UseBoundStore<Omit<StoreApi<T>, "setState" | "destroy">>;
172
19
 
173
- type ReactThreadRuntime = ThreadRuntime & {
174
- unstable_synchronizer?: ComponentType;
175
- };
176
-
177
20
  type ChatModelRunUpdate = {
178
21
  content: ThreadAssistantContentPart[];
179
22
  };
@@ -195,18 +38,6 @@ type ChatModelAdapter = {
195
38
  run: (options: ChatModelRunOptions) => Promise<ChatModelRunResult> | AsyncGenerator<ChatModelRunResult, void>;
196
39
  };
197
40
 
198
- declare abstract class BaseAssistantRuntime<TThreadRuntime extends ReactThreadRuntime> implements AssistantRuntime {
199
- private _thread;
200
- constructor(_thread: TThreadRuntime);
201
- get thread(): TThreadRuntime;
202
- set thread(thread: TThreadRuntime);
203
- abstract registerModelConfigProvider(provider: ModelConfigProvider): Unsubscribe;
204
- abstract switchToThread(threadId: string | null): void;
205
- private _subscriptions;
206
- subscribe(callback: () => void): Unsubscribe;
207
- private subscriptionHandler;
208
- }
209
-
210
41
  type TextContentPartProps = {
211
42
  part: TextContentPart;
212
43
  status: ContentPartStatus;
@@ -585,94 +416,6 @@ type ExternalStoreAdapterBase<T> = {
585
416
  };
586
417
  type ExternalStoreAdapter<T = ThreadMessage> = ExternalStoreAdapterBase<T> & (T extends ThreadMessage ? object : ExternalStoreMessageConverterAdapter<T>);
587
418
 
588
- declare class ProxyConfigProvider implements ModelConfigProvider {
589
- private _providers;
590
- getModelConfig(): ModelConfig;
591
- registerModelConfigProvider(provider: ModelConfigProvider): () => void;
592
- }
593
-
594
- declare class MessageRepository {
595
- private messages;
596
- private head;
597
- private root;
598
- private performOp;
599
- getMessages(): ThreadMessage[];
600
- addOrUpdateMessage(parentId: string | null, message: ThreadMessage): void;
601
- getMessage(messageId: string): {
602
- parentId: string | null;
603
- message: ThreadMessage;
604
- };
605
- appendOptimisticMessage(parentId: string | null, message: CoreMessage): string;
606
- deleteMessage(messageId: string, replacementId?: string | null | undefined): void;
607
- getBranches(messageId: string): string[];
608
- switchToBranch(messageId: string): void;
609
- resetHead(messageId: string | null): void;
610
- }
611
-
612
- type TextContentPartState = Readonly<{
613
- status: ContentPartStatus;
614
- part: TextContentPart;
615
- }>;
616
- type ContentPartState = Readonly<{
617
- status: ContentPartStatus | ToolCallContentPartStatus;
618
- part: TextContentPart | ImageContentPart | UIContentPart | ToolCallContentPart;
619
- }>;
620
-
621
- declare const useSmooth: (state: TextContentPartState, smooth?: boolean) => TextContentPartState;
622
-
623
- declare const withSmoothContextProvider: <C extends React.ComponentType<any>>(Component: C) => C;
624
- declare const useSmoothStatus: () => {
625
- type: "running";
626
- } | {
627
- type: "complete";
628
- } | {
629
- type: "incomplete";
630
- reason: "cancelled" | "length" | "content-filter" | "other" | "error";
631
- error?: unknown;
632
- } | {
633
- type: "requires-action";
634
- reason: "tool-calls";
635
- };
636
-
637
- declare const buttonVariants: (props?: ({
638
- variant?: "default" | "outline" | "ghost" | null | undefined;
639
- size?: "default" | "icon" | null | undefined;
640
- } & class_variance_authority_types.ClassProp) | undefined) => string;
641
- type ButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button> & VariantProps<typeof buttonVariants>;
642
-
643
- type TooltipIconButtonProps = ButtonProps & {
644
- tooltip: string;
645
- side?: "top" | "bottom" | "left" | "right";
646
- };
647
- declare const TooltipIconButton: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
648
- 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;
649
- } & {
650
- asChild?: boolean;
651
- }, "ref"> & class_variance_authority.VariantProps<(props?: ({
652
- variant?: "default" | "outline" | "ghost" | null | undefined;
653
- size?: "default" | "icon" | null | undefined;
654
- } & class_variance_authority_types.ClassProp) | undefined) => string> & {
655
- tooltip: string;
656
- side?: "top" | "bottom" | "left" | "right";
657
- } & react.RefAttributes<HTMLButtonElement>>;
658
-
659
- declare const generateId: (size?: number) => string;
660
-
661
- type internal_BaseAssistantRuntime<TThreadRuntime extends ReactThreadRuntime> = BaseAssistantRuntime<TThreadRuntime>;
662
- declare const internal_BaseAssistantRuntime: typeof BaseAssistantRuntime;
663
- type internal_MessageRepository = MessageRepository;
664
- declare const internal_MessageRepository: typeof MessageRepository;
665
- type internal_ProxyConfigProvider = ProxyConfigProvider;
666
- declare const internal_ProxyConfigProvider: typeof ProxyConfigProvider;
667
- declare const internal_TooltipIconButton: typeof TooltipIconButton;
668
- declare const internal_generateId: typeof generateId;
669
- declare const internal_useSmooth: typeof useSmooth;
670
- declare const internal_useSmoothStatus: typeof useSmoothStatus;
671
- declare const internal_withSmoothContextProvider: typeof withSmoothContextProvider;
672
- declare namespace internal {
673
- 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 };
674
- }
675
-
676
419
  declare class ExternalStoreThreadRuntime implements ReactThreadRuntime {
677
420
  store: ExternalStoreAdapter<any>;
678
421
  private _subscriptions;
@@ -719,42 +462,6 @@ declare const getExternalStoreMessage: <T>(message: ThreadMessage) => T | undefi
719
462
 
720
463
  type ThreadRuntimeStore = ThreadRuntime;
721
464
 
722
- type AddToolResultOptions = {
723
- messageId: string;
724
- toolCallId: string;
725
- result: any;
726
- };
727
- type RuntimeCapabilities = {
728
- switchToBranch: boolean;
729
- edit: boolean;
730
- reload: boolean;
731
- cancel: boolean;
732
- copy: boolean;
733
- };
734
- type ThreadActionsState = Readonly<{
735
- capabilities: Readonly<RuntimeCapabilities>;
736
- getBranches: (messageId: string) => readonly string[];
737
- switchToBranch: (branchId: string) => void;
738
- append: (message: AppendMessage) => void;
739
- startRun: (parentId: string | null) => void;
740
- cancelRun: () => void;
741
- addToolResult: (options: AddToolResultOptions) => void;
742
- }>;
743
-
744
- type ThreadRuntime = Readonly<ThreadState & Omit<ThreadActionsState, "getRuntime"> & {
745
- messages: readonly ThreadMessage[];
746
- subscribe: (callback: () => void) => Unsubscribe;
747
- }>;
748
-
749
- type ThreadRuntimeWithSubscribe = {
750
- readonly thread: ThreadRuntime;
751
- subscribe: (callback: () => void) => Unsubscribe;
752
- };
753
- type AssistantRuntime = ThreadRuntimeWithSubscribe & {
754
- switchToThread: (threadId: string | null) => void;
755
- registerModelConfigProvider: (provider: ModelConfigProvider) => Unsubscribe;
756
- };
757
-
758
465
  type AssistantRuntimeProviderProps = {
759
466
  runtime: AssistantRuntime;
760
467
  };
@@ -789,11 +496,6 @@ declare function useAssistantContext(options: {
789
496
  optional: true;
790
497
  }): AssistantContextValue | null;
791
498
 
792
- type ThreadState = Readonly<{
793
- isRunning: boolean;
794
- isDisabled: boolean;
795
- }>;
796
-
797
499
  type ThreadViewportState = Readonly<{
798
500
  isAtBottom: boolean;
799
501
  scrollToBottom: () => void;
@@ -1512,4 +1214,4 @@ declare const exports: {
1512
1214
  Text: FC;
1513
1215
  };
1514
1216
 
1515
- 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, type ExternalStoreAdapter, type ExternalStoreMessageConverter, ExternalStoreRuntime, 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 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 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, 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 };
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 };