@assistant-ui/react 0.2.2 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.mts CHANGED
@@ -139,7 +139,31 @@ type ThreadActionsState = Readonly<{
139
139
  addToolResult: (toolCallId: string, result: any) => void;
140
140
  }>;
141
141
 
142
+ type ContentPartStatus = "done" | "in_progress" | "error";
143
+ type TextContentPartProps = {
144
+ part: TextContentPart;
145
+ status: ContentPartStatus;
146
+ };
147
+ type TextContentPartComponent = ComponentType<TextContentPartProps>;
148
+ type ImageContentPartProps = {
149
+ part: ImageContentPart;
150
+ status: ContentPartStatus;
151
+ };
152
+ type ImageContentPartComponent = ComponentType<ImageContentPartProps>;
153
+ type UIContentPartProps = {
154
+ part: UIContentPart;
155
+ status: ContentPartStatus;
156
+ };
157
+ type UIContentPartComponent = ComponentType<UIContentPartProps>;
158
+ type ToolCallContentPartProps<TArgs = any, TResult = any> = {
159
+ part: ToolCallContentPart<TArgs, TResult>;
160
+ status: ContentPartStatus;
161
+ addResult: (result: any) => void;
162
+ };
163
+ type ToolCallContentPartComponent<TArgs = any, TResult = any> = ComponentType<ToolCallContentPartProps<TArgs, TResult>>;
164
+
142
165
  type ThreadRuntime = Readonly<ThreadState & ThreadActionsState & {
166
+ messages: readonly ThreadMessage[];
143
167
  subscribe: (callback: () => void) => Unsubscribe;
144
168
  }>;
145
169
 
@@ -185,47 +209,9 @@ type EditComposerState = BaseComposerState & Readonly<{
185
209
  }>;
186
210
 
187
211
  type ThreadState = Readonly<{
188
- messages: readonly ThreadMessage[];
189
212
  isRunning: boolean;
190
213
  }>;
191
214
 
192
- type ComposerState = BaseComposerState & Readonly<{
193
- isEditing: true;
194
- send: () => void;
195
- cancel: () => boolean;
196
- focus: () => void;
197
- onFocus: (listener: () => void) => Unsubscribe;
198
- }>;
199
-
200
- type ThreadViewportState = Readonly<{
201
- isAtBottom: boolean;
202
- scrollToBottom: () => void;
203
- onScrollToBottom: (callback: () => void) => Unsubscribe;
204
- }>;
205
-
206
- type ContentPartStatus = "done" | "in_progress" | "error";
207
- type TextContentPartProps = {
208
- part: TextContentPart;
209
- status: ContentPartStatus;
210
- };
211
- type TextContentPartComponent = ComponentType<TextContentPartProps>;
212
- type ImageContentPartProps = {
213
- part: ImageContentPart;
214
- status: ContentPartStatus;
215
- };
216
- type ImageContentPartComponent = ComponentType<ImageContentPartProps>;
217
- type UIContentPartProps = {
218
- part: UIContentPart;
219
- status: ContentPartStatus;
220
- };
221
- type UIContentPartComponent = ComponentType<UIContentPartProps>;
222
- type ToolCallContentPartProps<TArgs = any, TResult = any> = {
223
- part: ToolCallContentPart<TArgs, TResult>;
224
- status: ContentPartStatus;
225
- addResult: (result: any) => void;
226
- };
227
- type ToolCallContentPartComponent<TArgs = any, TResult = any> = ComponentType<ToolCallContentPartProps<TArgs, TResult>>;
228
-
229
215
  type AssistantToolUIsState = Readonly<{
230
216
  getToolUI: (toolName: string) => ToolCallContentPartComponent | null;
231
217
  setToolUI: (toolName: string, render: ToolCallContentPartComponent) => () => void;
@@ -242,8 +228,17 @@ type AssistantContextValue = {
242
228
  };
243
229
  declare const useAssistantContext: () => AssistantContextValue;
244
230
 
231
+ type ThreadViewportState = Readonly<{
232
+ isAtBottom: boolean;
233
+ scrollToBottom: () => void;
234
+ onScrollToBottom: (callback: () => void) => Unsubscribe;
235
+ }>;
236
+
237
+ type ThreadMessagesState = readonly ThreadMessage[];
238
+
245
239
  type ThreadContextValue = {
246
240
  useThread: ReadonlyStore<ThreadState>;
241
+ useThreadMessages: ReadonlyStore<ThreadMessagesState>;
247
242
  useThreadActions: ReadonlyStore<ThreadActionsState>;
248
243
  useComposer: ReadonlyStore<ComposerState>;
249
244
  useViewport: ReadonlyStore<ThreadViewportState>;
@@ -257,8 +252,7 @@ type ComposerContextValue = {
257
252
  declare const useComposerContext: () => ComposerContextValue;
258
253
 
259
254
  type MessageUtilsState = Readonly<{
260
- inProgressIndicator: ReactNode | null;
261
- setInProgressIndicator: (value: ReactNode | null) => void;
255
+ inProgressIndicator: HTMLSpanElement;
262
256
  isCopied: boolean;
263
257
  setIsCopied: (value: boolean) => void;
264
258
  isHovering: boolean;
@@ -277,6 +271,14 @@ type ContentPartContextValue = {
277
271
  };
278
272
  declare const useContentPartContext: () => ContentPartContextValue;
279
273
 
274
+ type ComposerState = BaseComposerState & Readonly<{
275
+ isEditing: true;
276
+ send: () => void;
277
+ cancel: () => boolean;
278
+ focus: () => void;
279
+ onFocus: (listener: () => void) => Unsubscribe;
280
+ }>;
281
+
280
282
  type CreateAppendMessage = string | {
281
283
  parentId?: string | null | undefined;
282
284
  role?: AppendMessage["role"];
@@ -339,8 +341,6 @@ declare const useContentPartDisplay: () => react.ReactNode;
339
341
 
340
342
  declare const useContentPartImage: () => string;
341
343
 
342
- declare const useContentPartInProgressIndicator: () => react.ReactNode;
343
-
344
344
  declare const useContentPartText: () => string;
345
345
 
346
346
  type MessageIfFilters = {
@@ -428,8 +428,10 @@ declare const AssistantModalPrimitiveContent: react.ForwardRefExoticComponent<Om
428
428
  dissmissOnInteractOutside?: boolean;
429
429
  } & react.RefAttributes<HTMLDivElement>>;
430
430
 
431
+ declare const AssistantModalPrimitiveAnchor: react.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverAnchorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
432
+
431
433
  declare namespace index$5 {
432
- export { AssistantModalPrimitiveContent as Content, AssistantModalPrimitiveRoot as Root, AssistantModalPrimitiveTrigger as Trigger };
434
+ export { AssistantModalPrimitiveAnchor as Anchor, AssistantModalPrimitiveContent as Content, AssistantModalPrimitiveRoot as Root, AssistantModalPrimitiveTrigger as Trigger };
433
435
  }
434
436
 
435
437
  type BranchPickerPrimitiveNextProps = ActionButtonProps<typeof useBranchPickerNext>;
@@ -658,4 +660,4 @@ declare namespace internal {
658
660
  export { internal_BaseAssistantRuntime as BaseAssistantRuntime, internal_MessageRepository as MessageRepository, internal_ProxyConfigProvider as ProxyConfigProvider };
659
661
  }
660
662
 
661
- export { index$6 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, type AppendContentPart, type AppendMessage, type AssistantContentPart, type AssistantContextValue, type AssistantMessage, index$5 as AssistantModalPrimitive, type AssistantModalPrimitiveContentProps, type AssistantModalPrimitiveRootProps, type AssistantModalPrimitiveTriggerProps, type AssistantModelConfigState, type AssistantRuntime, AssistantRuntimeProvider, type AssistantToolProps, type AssistantToolUIProps, index$4 as BranchPickerPrimitive, type BranchPickerPrimitiveCountProps, type BranchPickerPrimitiveNextProps, type BranchPickerPrimitiveNumberProps, type BranchPickerPrimitivePreviousProps, type BranchPickerPrimitiveRootProps, type ChatModelAdapter, type ChatModelRunOptions, type ComposerContextValue, index$3 as ComposerPrimitive, type ComposerPrimitiveCancelProps, type ComposerPrimitiveIfProps, type ComposerPrimitiveInputProps, type ComposerPrimitiveRootProps, type ComposerPrimitiveSendProps, type ComposerState, type ContentPartContextValue, index$2 as ContentPartPrimitive, type ContentPartPrimitiveDisplayProps, type ContentPartPrimitiveImageProps, type ContentPartPrimitiveInProgressIndicatorProps, type ContentPartPrimitiveTextProps, type ContentPartState, type EditComposerState, internal as INTERNAL, type ImageContentPart, type ImageContentPartComponent, type ImageContentPartProps, type MessageContextValue, index$1 as MessagePrimitive, type MessagePrimitiveContentProps, type MessagePrimitiveIfProps, type MessagePrimitiveInProgressProps, type MessagePrimitiveRootProps, type MessageState, type ModelConfig, type ModelConfigProvider, type ReactThreadRuntime, type TextContentPart, type TextContentPartComponent, type TextContentPartProps, type ThreadContextValue, type ThreadMessage, index as ThreadPrimitive, type ThreadPrimitiveEmptyProps, type ThreadPrimitiveIfProps, type ThreadPrimitiveMessagesProps, type ThreadPrimitiveRootProps, type ThreadPrimitiveScrollToBottomProps, type ThreadPrimitiveSuggestionProps, type ThreadPrimitiveViewportProps, type ThreadRuntime, type ThreadState, type ThreadViewportState, type ToolCallContentPart, type ToolCallContentPartComponent, type ToolCallContentPartProps, type UIContentPart, type UIContentPartComponent, type UIContentPartProps, type Unsubscribe, type UserContentPart, type UserMessage, makeAssistantTool, makeAssistantToolUI, useActionBarCopy, useActionBarEdit, useActionBarReload, useAppendMessage, useAssistantContext, useAssistantInstructions, useAssistantTool, useAssistantToolUI, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposerCancel, useComposerContext, useComposerIf, useComposerSend, useContentPartContext, useContentPartDisplay, useContentPartImage, useContentPartInProgressIndicator, useContentPartText, useLocalRuntime, useMessageContext, useMessageIf, useSwitchToNewThread, useThreadContext, useThreadEmpty, useThreadIf, useThreadScrollToBottom, useThreadSuggestion };
663
+ export { index$6 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, type AppendContentPart, type AppendMessage, type AssistantContentPart, type AssistantContextValue, type AssistantMessage, index$5 as AssistantModalPrimitive, type AssistantModalPrimitiveContentProps, type AssistantModalPrimitiveRootProps, type AssistantModalPrimitiveTriggerProps, type AssistantModelConfigState, type AssistantRuntime, AssistantRuntimeProvider, type AssistantToolProps, type AssistantToolUIProps, index$4 as BranchPickerPrimitive, type BranchPickerPrimitiveCountProps, type BranchPickerPrimitiveNextProps, type BranchPickerPrimitiveNumberProps, type BranchPickerPrimitivePreviousProps, type BranchPickerPrimitiveRootProps, type ChatModelAdapter, type ChatModelRunOptions, type ComposerContextValue, index$3 as ComposerPrimitive, type ComposerPrimitiveCancelProps, type ComposerPrimitiveIfProps, type ComposerPrimitiveInputProps, type ComposerPrimitiveRootProps, type ComposerPrimitiveSendProps, type ComposerState, type ContentPartContextValue, index$2 as ContentPartPrimitive, type ContentPartPrimitiveDisplayProps, type ContentPartPrimitiveImageProps, type ContentPartPrimitiveInProgressIndicatorProps, type ContentPartPrimitiveTextProps, type ContentPartState, type EditComposerState, internal as INTERNAL, type ImageContentPart, type ImageContentPartComponent, type ImageContentPartProps, type MessageContextValue, index$1 as MessagePrimitive, type MessagePrimitiveContentProps, type MessagePrimitiveIfProps, type MessagePrimitiveInProgressProps, type MessagePrimitiveRootProps, type MessageState, type ModelConfig, type ModelConfigProvider, type ReactThreadRuntime, type TextContentPart, type TextContentPartComponent, type TextContentPartProps, type ThreadContextValue, type ThreadMessage, index as ThreadPrimitive, type ThreadPrimitiveEmptyProps, type ThreadPrimitiveIfProps, type ThreadPrimitiveMessagesProps, type ThreadPrimitiveRootProps, type ThreadPrimitiveScrollToBottomProps, type ThreadPrimitiveSuggestionProps, type ThreadPrimitiveViewportProps, type ThreadRuntime, type ThreadState, type ThreadViewportState, type ToolCallContentPart, type ToolCallContentPartComponent, type ToolCallContentPartProps, type UIContentPart, type UIContentPartComponent, type UIContentPartProps, type Unsubscribe, type UserContentPart, type UserMessage, makeAssistantTool, makeAssistantToolUI, useActionBarCopy, useActionBarEdit, useActionBarReload, useAppendMessage, useAssistantContext, useAssistantInstructions, useAssistantTool, useAssistantToolUI, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposerCancel, useComposerContext, useComposerIf, useComposerSend, useContentPartContext, useContentPartDisplay, useContentPartImage, useContentPartText, useLocalRuntime, useMessageContext, useMessageIf, useSwitchToNewThread, useThreadContext, useThreadEmpty, useThreadIf, useThreadScrollToBottom, useThreadSuggestion };
package/dist/index.d.ts CHANGED
@@ -139,7 +139,31 @@ type ThreadActionsState = Readonly<{
139
139
  addToolResult: (toolCallId: string, result: any) => void;
140
140
  }>;
141
141
 
142
+ type ContentPartStatus = "done" | "in_progress" | "error";
143
+ type TextContentPartProps = {
144
+ part: TextContentPart;
145
+ status: ContentPartStatus;
146
+ };
147
+ type TextContentPartComponent = ComponentType<TextContentPartProps>;
148
+ type ImageContentPartProps = {
149
+ part: ImageContentPart;
150
+ status: ContentPartStatus;
151
+ };
152
+ type ImageContentPartComponent = ComponentType<ImageContentPartProps>;
153
+ type UIContentPartProps = {
154
+ part: UIContentPart;
155
+ status: ContentPartStatus;
156
+ };
157
+ type UIContentPartComponent = ComponentType<UIContentPartProps>;
158
+ type ToolCallContentPartProps<TArgs = any, TResult = any> = {
159
+ part: ToolCallContentPart<TArgs, TResult>;
160
+ status: ContentPartStatus;
161
+ addResult: (result: any) => void;
162
+ };
163
+ type ToolCallContentPartComponent<TArgs = any, TResult = any> = ComponentType<ToolCallContentPartProps<TArgs, TResult>>;
164
+
142
165
  type ThreadRuntime = Readonly<ThreadState & ThreadActionsState & {
166
+ messages: readonly ThreadMessage[];
143
167
  subscribe: (callback: () => void) => Unsubscribe;
144
168
  }>;
145
169
 
@@ -185,47 +209,9 @@ type EditComposerState = BaseComposerState & Readonly<{
185
209
  }>;
186
210
 
187
211
  type ThreadState = Readonly<{
188
- messages: readonly ThreadMessage[];
189
212
  isRunning: boolean;
190
213
  }>;
191
214
 
192
- type ComposerState = BaseComposerState & Readonly<{
193
- isEditing: true;
194
- send: () => void;
195
- cancel: () => boolean;
196
- focus: () => void;
197
- onFocus: (listener: () => void) => Unsubscribe;
198
- }>;
199
-
200
- type ThreadViewportState = Readonly<{
201
- isAtBottom: boolean;
202
- scrollToBottom: () => void;
203
- onScrollToBottom: (callback: () => void) => Unsubscribe;
204
- }>;
205
-
206
- type ContentPartStatus = "done" | "in_progress" | "error";
207
- type TextContentPartProps = {
208
- part: TextContentPart;
209
- status: ContentPartStatus;
210
- };
211
- type TextContentPartComponent = ComponentType<TextContentPartProps>;
212
- type ImageContentPartProps = {
213
- part: ImageContentPart;
214
- status: ContentPartStatus;
215
- };
216
- type ImageContentPartComponent = ComponentType<ImageContentPartProps>;
217
- type UIContentPartProps = {
218
- part: UIContentPart;
219
- status: ContentPartStatus;
220
- };
221
- type UIContentPartComponent = ComponentType<UIContentPartProps>;
222
- type ToolCallContentPartProps<TArgs = any, TResult = any> = {
223
- part: ToolCallContentPart<TArgs, TResult>;
224
- status: ContentPartStatus;
225
- addResult: (result: any) => void;
226
- };
227
- type ToolCallContentPartComponent<TArgs = any, TResult = any> = ComponentType<ToolCallContentPartProps<TArgs, TResult>>;
228
-
229
215
  type AssistantToolUIsState = Readonly<{
230
216
  getToolUI: (toolName: string) => ToolCallContentPartComponent | null;
231
217
  setToolUI: (toolName: string, render: ToolCallContentPartComponent) => () => void;
@@ -242,8 +228,17 @@ type AssistantContextValue = {
242
228
  };
243
229
  declare const useAssistantContext: () => AssistantContextValue;
244
230
 
231
+ type ThreadViewportState = Readonly<{
232
+ isAtBottom: boolean;
233
+ scrollToBottom: () => void;
234
+ onScrollToBottom: (callback: () => void) => Unsubscribe;
235
+ }>;
236
+
237
+ type ThreadMessagesState = readonly ThreadMessage[];
238
+
245
239
  type ThreadContextValue = {
246
240
  useThread: ReadonlyStore<ThreadState>;
241
+ useThreadMessages: ReadonlyStore<ThreadMessagesState>;
247
242
  useThreadActions: ReadonlyStore<ThreadActionsState>;
248
243
  useComposer: ReadonlyStore<ComposerState>;
249
244
  useViewport: ReadonlyStore<ThreadViewportState>;
@@ -257,8 +252,7 @@ type ComposerContextValue = {
257
252
  declare const useComposerContext: () => ComposerContextValue;
258
253
 
259
254
  type MessageUtilsState = Readonly<{
260
- inProgressIndicator: ReactNode | null;
261
- setInProgressIndicator: (value: ReactNode | null) => void;
255
+ inProgressIndicator: HTMLSpanElement;
262
256
  isCopied: boolean;
263
257
  setIsCopied: (value: boolean) => void;
264
258
  isHovering: boolean;
@@ -277,6 +271,14 @@ type ContentPartContextValue = {
277
271
  };
278
272
  declare const useContentPartContext: () => ContentPartContextValue;
279
273
 
274
+ type ComposerState = BaseComposerState & Readonly<{
275
+ isEditing: true;
276
+ send: () => void;
277
+ cancel: () => boolean;
278
+ focus: () => void;
279
+ onFocus: (listener: () => void) => Unsubscribe;
280
+ }>;
281
+
280
282
  type CreateAppendMessage = string | {
281
283
  parentId?: string | null | undefined;
282
284
  role?: AppendMessage["role"];
@@ -339,8 +341,6 @@ declare const useContentPartDisplay: () => react.ReactNode;
339
341
 
340
342
  declare const useContentPartImage: () => string;
341
343
 
342
- declare const useContentPartInProgressIndicator: () => react.ReactNode;
343
-
344
344
  declare const useContentPartText: () => string;
345
345
 
346
346
  type MessageIfFilters = {
@@ -428,8 +428,10 @@ declare const AssistantModalPrimitiveContent: react.ForwardRefExoticComponent<Om
428
428
  dissmissOnInteractOutside?: boolean;
429
429
  } & react.RefAttributes<HTMLDivElement>>;
430
430
 
431
+ declare const AssistantModalPrimitiveAnchor: react.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverAnchorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
432
+
431
433
  declare namespace index$5 {
432
- export { AssistantModalPrimitiveContent as Content, AssistantModalPrimitiveRoot as Root, AssistantModalPrimitiveTrigger as Trigger };
434
+ export { AssistantModalPrimitiveAnchor as Anchor, AssistantModalPrimitiveContent as Content, AssistantModalPrimitiveRoot as Root, AssistantModalPrimitiveTrigger as Trigger };
433
435
  }
434
436
 
435
437
  type BranchPickerPrimitiveNextProps = ActionButtonProps<typeof useBranchPickerNext>;
@@ -658,4 +660,4 @@ declare namespace internal {
658
660
  export { internal_BaseAssistantRuntime as BaseAssistantRuntime, internal_MessageRepository as MessageRepository, internal_ProxyConfigProvider as ProxyConfigProvider };
659
661
  }
660
662
 
661
- export { index$6 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, type AppendContentPart, type AppendMessage, type AssistantContentPart, type AssistantContextValue, type AssistantMessage, index$5 as AssistantModalPrimitive, type AssistantModalPrimitiveContentProps, type AssistantModalPrimitiveRootProps, type AssistantModalPrimitiveTriggerProps, type AssistantModelConfigState, type AssistantRuntime, AssistantRuntimeProvider, type AssistantToolProps, type AssistantToolUIProps, index$4 as BranchPickerPrimitive, type BranchPickerPrimitiveCountProps, type BranchPickerPrimitiveNextProps, type BranchPickerPrimitiveNumberProps, type BranchPickerPrimitivePreviousProps, type BranchPickerPrimitiveRootProps, type ChatModelAdapter, type ChatModelRunOptions, type ComposerContextValue, index$3 as ComposerPrimitive, type ComposerPrimitiveCancelProps, type ComposerPrimitiveIfProps, type ComposerPrimitiveInputProps, type ComposerPrimitiveRootProps, type ComposerPrimitiveSendProps, type ComposerState, type ContentPartContextValue, index$2 as ContentPartPrimitive, type ContentPartPrimitiveDisplayProps, type ContentPartPrimitiveImageProps, type ContentPartPrimitiveInProgressIndicatorProps, type ContentPartPrimitiveTextProps, type ContentPartState, type EditComposerState, internal as INTERNAL, type ImageContentPart, type ImageContentPartComponent, type ImageContentPartProps, type MessageContextValue, index$1 as MessagePrimitive, type MessagePrimitiveContentProps, type MessagePrimitiveIfProps, type MessagePrimitiveInProgressProps, type MessagePrimitiveRootProps, type MessageState, type ModelConfig, type ModelConfigProvider, type ReactThreadRuntime, type TextContentPart, type TextContentPartComponent, type TextContentPartProps, type ThreadContextValue, type ThreadMessage, index as ThreadPrimitive, type ThreadPrimitiveEmptyProps, type ThreadPrimitiveIfProps, type ThreadPrimitiveMessagesProps, type ThreadPrimitiveRootProps, type ThreadPrimitiveScrollToBottomProps, type ThreadPrimitiveSuggestionProps, type ThreadPrimitiveViewportProps, type ThreadRuntime, type ThreadState, type ThreadViewportState, type ToolCallContentPart, type ToolCallContentPartComponent, type ToolCallContentPartProps, type UIContentPart, type UIContentPartComponent, type UIContentPartProps, type Unsubscribe, type UserContentPart, type UserMessage, makeAssistantTool, makeAssistantToolUI, useActionBarCopy, useActionBarEdit, useActionBarReload, useAppendMessage, useAssistantContext, useAssistantInstructions, useAssistantTool, useAssistantToolUI, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposerCancel, useComposerContext, useComposerIf, useComposerSend, useContentPartContext, useContentPartDisplay, useContentPartImage, useContentPartInProgressIndicator, useContentPartText, useLocalRuntime, useMessageContext, useMessageIf, useSwitchToNewThread, useThreadContext, useThreadEmpty, useThreadIf, useThreadScrollToBottom, useThreadSuggestion };
663
+ export { index$6 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, type AppendContentPart, type AppendMessage, type AssistantContentPart, type AssistantContextValue, type AssistantMessage, index$5 as AssistantModalPrimitive, type AssistantModalPrimitiveContentProps, type AssistantModalPrimitiveRootProps, type AssistantModalPrimitiveTriggerProps, type AssistantModelConfigState, type AssistantRuntime, AssistantRuntimeProvider, type AssistantToolProps, type AssistantToolUIProps, index$4 as BranchPickerPrimitive, type BranchPickerPrimitiveCountProps, type BranchPickerPrimitiveNextProps, type BranchPickerPrimitiveNumberProps, type BranchPickerPrimitivePreviousProps, type BranchPickerPrimitiveRootProps, type ChatModelAdapter, type ChatModelRunOptions, type ComposerContextValue, index$3 as ComposerPrimitive, type ComposerPrimitiveCancelProps, type ComposerPrimitiveIfProps, type ComposerPrimitiveInputProps, type ComposerPrimitiveRootProps, type ComposerPrimitiveSendProps, type ComposerState, type ContentPartContextValue, index$2 as ContentPartPrimitive, type ContentPartPrimitiveDisplayProps, type ContentPartPrimitiveImageProps, type ContentPartPrimitiveInProgressIndicatorProps, type ContentPartPrimitiveTextProps, type ContentPartState, type EditComposerState, internal as INTERNAL, type ImageContentPart, type ImageContentPartComponent, type ImageContentPartProps, type MessageContextValue, index$1 as MessagePrimitive, type MessagePrimitiveContentProps, type MessagePrimitiveIfProps, type MessagePrimitiveInProgressProps, type MessagePrimitiveRootProps, type MessageState, type ModelConfig, type ModelConfigProvider, type ReactThreadRuntime, type TextContentPart, type TextContentPartComponent, type TextContentPartProps, type ThreadContextValue, type ThreadMessage, index as ThreadPrimitive, type ThreadPrimitiveEmptyProps, type ThreadPrimitiveIfProps, type ThreadPrimitiveMessagesProps, type ThreadPrimitiveRootProps, type ThreadPrimitiveScrollToBottomProps, type ThreadPrimitiveSuggestionProps, type ThreadPrimitiveViewportProps, type ThreadRuntime, type ThreadState, type ThreadViewportState, type ToolCallContentPart, type ToolCallContentPartComponent, type ToolCallContentPartProps, type UIContentPart, type UIContentPartComponent, type UIContentPartProps, type Unsubscribe, type UserContentPart, type UserMessage, makeAssistantTool, makeAssistantToolUI, useActionBarCopy, useActionBarEdit, useActionBarReload, useAppendMessage, useAssistantContext, useAssistantInstructions, useAssistantTool, useAssistantToolUI, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposerCancel, useComposerContext, useComposerIf, useComposerSend, useContentPartContext, useContentPartDisplay, useContentPartImage, useContentPartText, useLocalRuntime, useMessageContext, useMessageIf, useSwitchToNewThread, useThreadContext, useThreadEmpty, useThreadIf, useThreadScrollToBottom, useThreadSuggestion };