@assistant-ui/react 0.4.6 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.mts 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';
@@ -53,7 +53,7 @@ declare const LanguageModelConfigSchema: z.ZodObject<{
53
53
  }>;
54
54
  type LanguageModelConfig = z.infer<typeof LanguageModelConfigSchema>;
55
55
  type ToolExecuteFunction<TArgs, TResult> = (args: TArgs) => TResult | Promise<TResult>;
56
- type Tool<TArgs extends Record<string | number, unknown> = Record<string | number, unknown>, TResult = unknown> = {
56
+ type Tool<TArgs extends Record<string, unknown> = Record<string | number, unknown>, TResult = unknown> = {
57
57
  description?: string | undefined;
58
58
  parameters: z.ZodSchema<TArgs> | JSONSchema7;
59
59
  execute?: ToolExecuteFunction<TArgs, TResult>;
@@ -83,7 +83,7 @@ type UIContentPart = {
83
83
  type: "ui";
84
84
  display: ReactNode;
85
85
  };
86
- type CoreToolCallContentPart<TArgs extends Record<string | number, unknown> = Record<string | number, unknown>, TResult = unknown> = {
86
+ type CoreToolCallContentPart<TArgs extends Record<string, unknown> = Record<string | number, unknown>, TResult = unknown> = {
87
87
  type: "tool-call";
88
88
  toolCallId: string;
89
89
  toolName: string;
@@ -91,7 +91,7 @@ type CoreToolCallContentPart<TArgs extends Record<string | number, unknown> = Re
91
91
  result?: TResult | undefined;
92
92
  isError?: boolean | undefined;
93
93
  };
94
- type ToolCallContentPart<TArgs extends Record<string | number, unknown> = Record<string | number, unknown>, TResult = unknown> = CoreToolCallContentPart<TArgs, TResult> & {
94
+ type ToolCallContentPart<TArgs extends Record<string, unknown> = Record<string | number, unknown>, TResult = unknown> = CoreToolCallContentPart<TArgs, TResult> & {
95
95
  argsText: string;
96
96
  };
97
97
  type ThreadUserContentPart = TextContentPart | ImageContentPart | UIContentPart;
@@ -148,6 +148,8 @@ type CoreAssistantMessage = {
148
148
  };
149
149
  type CoreMessage = CoreSystemMessage | CoreUserMessage | CoreAssistantMessage;
150
150
 
151
+ type ReadonlyStore<T> = UseBoundStore<Omit<StoreApi<T>, "setState" | "destroy">>;
152
+
151
153
  type ReactThreadRuntime = ThreadRuntime & {
152
154
  unstable_synchronizer?: ComponentType;
153
155
  };
@@ -218,6 +220,8 @@ declare class LocalThreadRuntime implements ThreadRuntime {
218
220
 
219
221
  declare const useLocalRuntime: (adapter: ChatModelAdapter, options?: LocalRuntimeOptions) => LocalRuntime;
220
222
 
223
+ declare function toLanguageModelMessages(message: readonly CoreMessage[] | readonly ThreadMessage[]): LanguageModelV1Message[];
224
+
221
225
  type TextContentPartProps = {
222
226
  part: TextContentPart;
223
227
  status: MessageStatus;
@@ -233,12 +237,25 @@ type UIContentPartProps = {
233
237
  status: MessageStatus;
234
238
  };
235
239
  type UIContentPartComponent = ComponentType<UIContentPartProps>;
236
- type ToolCallContentPartProps<TArgs extends Record<string | number, unknown> = any, TResult = unknown> = {
240
+ type ToolCallContentPartProps<TArgs extends Record<string, unknown> = any, TResult = unknown> = {
237
241
  part: ToolCallContentPart<TArgs, TResult>;
238
242
  status: MessageStatus;
239
243
  addResult: (result: any) => void;
240
244
  };
241
- type ToolCallContentPartComponent<TArgs extends Record<string | number, unknown> = 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[];
242
259
 
243
260
  type EdgeChatAdapterOptions = {
244
261
  api: string;
@@ -254,11 +271,257 @@ declare class EdgeChatAdapter implements ChatModelAdapter {
254
271
  type EdgeRuntimeOptions = EdgeChatAdapterOptions & LocalRuntimeOptions;
255
272
  declare const useEdgeRuntime: ({ initialMessages, ...options }: EdgeRuntimeOptions) => LocalRuntime;
256
273
 
257
- declare function toLanguageModelMessages(message: readonly CoreMessage[] | readonly ThreadMessage[]): LanguageModelV1Message[];
258
-
259
- 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>;
260
523
 
261
- declare const fromCoreMessages: (message: readonly CoreMessage[]) => ThreadMessage[];
524
+ type ThreadRuntimeStore = ThreadRuntime;
262
525
 
263
526
  type AddToolResultOptions = {
264
527
  messageId: string;
@@ -278,7 +541,6 @@ type ThreadActionsState = Readonly<{
278
541
  startRun: (parentId: string | null) => void;
279
542
  cancelRun: () => void;
280
543
  addToolResult: (options: AddToolResultOptions) => void;
281
- getRuntime: () => ThreadRuntime;
282
544
  }>;
283
545
 
284
546
  type ThreadRuntime = Readonly<ThreadState & Omit<ThreadActionsState, "getRuntime"> & {
@@ -319,8 +581,6 @@ type BaseComposerState = Readonly<{
319
581
  setValue: (value: string) => void;
320
582
  }>;
321
583
 
322
- type ReadonlyStore<T> = UseBoundStore<Omit<StoreApi<T>, "setState" | "destroy">>;
323
-
324
584
  type AssistantContextValue = {
325
585
  useModelConfig: ReadonlyStore<AssistantModelConfigState>;
326
586
  useToolUIs: ReadonlyStore<AssistantToolUIsState>;
@@ -345,6 +605,7 @@ type ThreadMessagesState = readonly ThreadMessage[];
345
605
 
346
606
  type ThreadContextValue = {
347
607
  useThread: ReadonlyStore<ThreadState>;
608
+ useThreadRuntime: ReadonlyStore<ThreadRuntimeStore>;
348
609
  useThreadMessages: ReadonlyStore<ThreadMessagesState>;
349
610
  useThreadActions: ReadonlyStore<ThreadActionsState>;
350
611
  useComposer: ReadonlyStore<ComposerState>;
@@ -424,21 +685,21 @@ declare const useAppendMessage: () => (message: CreateAppendMessage) => void;
424
685
 
425
686
  declare const useSwitchToNewThread: () => () => void;
426
687
 
427
- type AssistantToolProps<TArgs extends Record<string | number, unknown>, TResult> = Tool<TArgs, TResult> & {
688
+ type AssistantToolProps<TArgs extends Record<string, unknown>, TResult> = Tool<TArgs, TResult> & {
428
689
  toolName: string;
429
690
  render?: ToolCallContentPartComponent<TArgs, TResult> | undefined;
430
691
  };
431
- declare const useAssistantTool: <TArgs extends Record<string | number, unknown>, TResult>(tool: AssistantToolProps<TArgs, TResult>) => void;
692
+ declare const useAssistantTool: <TArgs extends Record<string, unknown>, TResult>(tool: AssistantToolProps<TArgs, TResult>) => void;
432
693
 
433
- declare const makeAssistantTool: <TArgs extends Record<string | number, unknown>, TResult>(tool: AssistantToolProps<TArgs, TResult>) => () => null;
694
+ declare const makeAssistantTool: <TArgs extends Record<string, unknown>, TResult>(tool: AssistantToolProps<TArgs, TResult>) => () => null;
434
695
 
435
- type AssistantToolUIProps<TArgs extends Record<string | number, unknown>, TResult> = {
696
+ type AssistantToolUIProps<TArgs extends Record<string, unknown>, TResult> = {
436
697
  toolName: string;
437
698
  render: ToolCallContentPartComponent<TArgs, TResult>;
438
699
  };
439
700
  declare const useAssistantToolUI: (tool: AssistantToolUIProps<any, any> | null) => void;
440
701
 
441
- declare const makeAssistantToolUI: <TArgs extends Record<string | number, unknown>, TResult>(tool: AssistantToolUIProps<TArgs, TResult>) => () => null;
702
+ declare const makeAssistantToolUI: <TArgs extends Record<string, unknown>, TResult>(tool: AssistantToolUIProps<TArgs, TResult>) => () => null;
442
703
 
443
704
  declare const useAssistantInstructions: (instruction: string) => void;
444
705
 
@@ -1112,4 +1373,4 @@ declare namespace internal {
1112
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 };
1113
1374
  }
1114
1375
 
1115
- 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 };