@assistant-ui/react 0.5.69 → 0.5.71
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{edge-BhYWMe-K.d.mts → edge-DRioHVD9.d.mts} +6 -7
- package/dist/{edge-BhYWMe-K.d.ts → edge-DRioHVD9.d.ts} +6 -7
- package/dist/index.d.mts +284 -43
- package/dist/index.d.ts +284 -43
- package/dist/index.js +143 -104
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +129 -90
- package/dist/index.mjs.map +1 -1
- package/dist/styles/index.css +48 -3
- package/dist/styles/index.css.map +1 -1
- package/dist/styles/tailwindcss/thread.css +12 -4
- package/dist/tailwindcss/index.js +2 -2
- package/dist/tailwindcss/index.js.map +1 -1
- package/dist/tailwindcss/index.mjs +1 -1
- package/dist/tailwindcss/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { A as Attachment, P as PendingAttachment, T as ThreadMessage, C as CoreMessage, a as AppendMessage, M as ModelConfig, b as ModelConfigProvider, c as ThreadAssistantContentPart, d as MessageStatus, e as ThreadRoundtrip, f as PendingAttachmentStatus, g as CompleteAttachment, h as CompleteAttachmentStatus, i as Tool, j as TextContentPart, I as ImageContentPart, k as ToolCallContentPart, l as CoreToolCallContentPart, U as UIContentPart, m as CreateEdgeRuntimeAPIOptions, n as ThreadUserContentPart, o as ContentPartStatus, p as ToolCallContentPartStatus } from './edge-
|
2
|
-
export { q as AttachmentStatus, v as CoreAssistantContentPart, y as CoreAssistantMessage, w as CoreSystemMessage, u as CoreUserContentPart, x as CoreUserMessage, E as EdgeRuntimeRequestOptions, s as ThreadAssistantMessage, r as ThreadSystemMessage, t as ThreadUserMessage } from './edge-
|
1
|
+
import { A as Attachment, P as PendingAttachment, T as ThreadMessage, C as CoreMessage, a as AppendMessage, M as ModelConfig, b as ModelConfigProvider, c as ThreadAssistantContentPart, d as MessageStatus, e as ThreadRoundtrip, f as PendingAttachmentStatus, g as CompleteAttachment, h as CompleteAttachmentStatus, i as Tool, j as TextContentPart, I as ImageContentPart, k as ToolCallContentPart, l as CoreToolCallContentPart, U as UIContentPart, m as CreateEdgeRuntimeAPIOptions, n as ThreadUserContentPart, o as ContentPartStatus, p as ToolCallContentPartStatus } from './edge-DRioHVD9.mjs';
|
2
|
+
export { q as AttachmentStatus, v as CoreAssistantContentPart, y as CoreAssistantMessage, w as CoreSystemMessage, u as CoreUserContentPart, x as CoreUserMessage, E as EdgeRuntimeRequestOptions, s as ThreadAssistantMessage, r as ThreadSystemMessage, t as ThreadUserMessage } from './edge-DRioHVD9.mjs';
|
3
3
|
import * as react from 'react';
|
4
4
|
import { ComponentType, PropsWithChildren, FC, ComponentPropsWithoutRef, ElementType, ReactNode } from 'react';
|
5
5
|
import { StoreApi, UseBoundStore } from 'zustand';
|
@@ -107,6 +107,9 @@ type SubmitFeedbackOptions = {
|
|
107
107
|
messageId: string;
|
108
108
|
type: "negative" | "positive";
|
109
109
|
};
|
110
|
+
type ThreadSuggestion = {
|
111
|
+
prompt: string;
|
112
|
+
};
|
110
113
|
type ThreadRuntimeCore = Readonly<{
|
111
114
|
getBranches: (messageId: string) => readonly string[];
|
112
115
|
switchToBranch: (branchId: string) => void;
|
@@ -124,6 +127,8 @@ type ThreadRuntimeCore = Readonly<{
|
|
124
127
|
threadId: string;
|
125
128
|
isDisabled: boolean;
|
126
129
|
messages: readonly ThreadMessage[];
|
130
|
+
suggestions: readonly ThreadSuggestion[];
|
131
|
+
extras: unknown;
|
127
132
|
subscribe: (callback: () => void) => Unsubscribe;
|
128
133
|
import(repository: ExportedMessageRepository): void;
|
129
134
|
export(): ExportedMessageRepository;
|
@@ -316,12 +321,14 @@ declare class LocalThreadRuntimeCore implements ThreadRuntimeCore {
|
|
316
321
|
};
|
317
322
|
readonly threadId: string;
|
318
323
|
readonly isDisabled = false;
|
324
|
+
readonly suggestions: readonly ThreadSuggestion[];
|
319
325
|
get messages(): ThreadMessage[];
|
320
326
|
readonly composer: DefaultThreadComposerRuntimeCore;
|
321
327
|
constructor(configProvider: ModelConfigProvider, adapter: ChatModelAdapter, { initialMessages, ...options }: LocalRuntimeOptions);
|
322
328
|
getModelConfig(): ModelConfig;
|
323
329
|
private _options;
|
324
330
|
get options(): LocalRuntimeOptions;
|
331
|
+
get extras(): undefined;
|
325
332
|
set options({ initialMessages, ...options }: LocalRuntimeOptions);
|
326
333
|
private _editComposers;
|
327
334
|
getEditComposer(messageId: string): DefaultEditComposerRuntimeCore | undefined;
|
@@ -353,7 +360,21 @@ declare class LocalRuntimeCore extends BaseAssistantRuntimeCore<LocalThreadRunti
|
|
353
360
|
}): void;
|
354
361
|
}
|
355
362
|
|
356
|
-
|
363
|
+
type AssistantRuntime = {
|
364
|
+
thread: ThreadRuntime;
|
365
|
+
switchToNewThread(): void;
|
366
|
+
switchToThread(threadId: string): void;
|
367
|
+
/**
|
368
|
+
* @deprecated Use `switchToNewThread` instead. This will be removed in 0.6.0.
|
369
|
+
*/
|
370
|
+
switchToThread(threadId: string | null): void;
|
371
|
+
registerModelConfigProvider(provider: ModelConfigProvider): Unsubscribe;
|
372
|
+
/**
|
373
|
+
* @deprecated Thread is now static and never gets updated. This will be removed in 0.6.0.
|
374
|
+
*/
|
375
|
+
subscribe(callback: () => void): Unsubscribe;
|
376
|
+
};
|
377
|
+
declare class AssistantRuntimeImpl<TThreadRuntime extends ThreadRuntime = ThreadRuntime> implements AssistantRuntimeCore, AssistantRuntime {
|
357
378
|
private _core;
|
358
379
|
constructor(_core: AssistantRuntimeCore, CustomThreadRuntime: new (binding: ThreadRuntimeCoreBinding) => TThreadRuntime);
|
359
380
|
readonly thread: TThreadRuntime;
|
@@ -370,7 +391,7 @@ declare class AssistantRuntime<TThreadRuntime extends ThreadRuntime = ThreadRunt
|
|
370
391
|
subscribe(callback: () => void): Unsubscribe;
|
371
392
|
}
|
372
393
|
|
373
|
-
declare class LocalRuntime extends
|
394
|
+
declare class LocalRuntime extends AssistantRuntimeImpl {
|
374
395
|
private core;
|
375
396
|
constructor(core: LocalRuntimeCore);
|
376
397
|
reset(options?: Parameters<LocalRuntimeCore["reset"]>[0]): void;
|
@@ -454,6 +475,8 @@ type ExternalStoreAdapterBase<T> = {
|
|
454
475
|
isDisabled?: boolean | undefined;
|
455
476
|
isRunning?: boolean | undefined;
|
456
477
|
messages: T[];
|
478
|
+
suggestions?: readonly ThreadSuggestion[] | undefined;
|
479
|
+
extras?: unknown;
|
457
480
|
setMessages?: ((messages: T[]) => void) | undefined;
|
458
481
|
onNew: (message: AppendMessage) => Promise<void>;
|
459
482
|
onEdit?: ((message: AppendMessage) => Promise<void>) | undefined;
|
@@ -474,7 +497,7 @@ type ExternalStoreAdapterBase<T> = {
|
|
474
497
|
};
|
475
498
|
type ExternalStoreAdapter<T = ThreadMessage> = ExternalStoreAdapterBase<T> & (T extends ThreadMessage ? object : ExternalStoreMessageConverterAdapter<T>);
|
476
499
|
|
477
|
-
declare const useExternalStoreRuntime: <T>(store: ExternalStoreAdapter<T>) =>
|
500
|
+
declare const useExternalStoreRuntime: <T>(store: ExternalStoreAdapter<T>) => AssistantRuntimeImpl<ThreadRuntimeImpl>;
|
478
501
|
|
479
502
|
declare const getExternalStoreMessage: <T>(message: ThreadMessage) => T | undefined;
|
480
503
|
|
@@ -543,9 +566,9 @@ type LegacyThreadComposerState = Readonly<{
|
|
543
566
|
attachmentAccept: string;
|
544
567
|
attachments: readonly Attachment[];
|
545
568
|
/** @deprecated Use `useComposerRuntime().addAttachment` instead. This will be removed in 0.6.0. */
|
546
|
-
addAttachment: (file: File) => void
|
569
|
+
addAttachment: (file: File) => Promise<void>;
|
547
570
|
/** @deprecated Use `useComposerRuntime().removeAttachment` instead. This will be removed in 0.6.0. */
|
548
|
-
removeAttachment: (attachmentId: string) => void
|
571
|
+
removeAttachment: (attachmentId: string) => Promise<void>;
|
549
572
|
text: string;
|
550
573
|
/** @deprecated Use `useComposerRuntime().setText` instead. This will be removed in 0.6.0. */
|
551
574
|
setText: (value: string) => void;
|
@@ -581,7 +604,36 @@ type EditComposerState = LegacyEditComposerState & BaseComposerState & {
|
|
581
604
|
type: "edit";
|
582
605
|
};
|
583
606
|
type ComposerState = ThreadComposerState | EditComposerState;
|
584
|
-
|
607
|
+
type ComposerRuntime = {
|
608
|
+
readonly type: "edit" | "thread";
|
609
|
+
getState(): ComposerState;
|
610
|
+
/** @deprecated Use `getState().isEditing` instead. This will be removed in 0.6.0. */
|
611
|
+
readonly isEditing: boolean;
|
612
|
+
/** @deprecated Use `getState().isEmpty` instead. This will be removed in 0.6.0. */
|
613
|
+
readonly isEmpty: boolean;
|
614
|
+
/** @deprecated Use `getState().canCancel` instead. This will be removed in 0.6.0. */
|
615
|
+
readonly canCancel: boolean;
|
616
|
+
/** @deprecated Use `getState().text` instead. This will be removed in 0.6.0. */
|
617
|
+
readonly text: string;
|
618
|
+
/** @deprecated Use `getState().attachmentAccept` instead. This will be removed in 0.6.0. */
|
619
|
+
readonly attachmentAccept: string;
|
620
|
+
/** @deprecated Use `getState().attachments` instead. This will be removed in 0.6.0. */
|
621
|
+
readonly attachments: readonly Attachment[];
|
622
|
+
/** @deprecated Use `getState().text` instead. This will be removed in 0.6.0. */
|
623
|
+
readonly value: string;
|
624
|
+
setText(text: string): void;
|
625
|
+
setValue(text: string): void;
|
626
|
+
addAttachment(file: File): Promise<void>;
|
627
|
+
/** @deprecated Use `getAttachmentById(id).removeAttachment()` instead. This will be removed in 0.6.0. */
|
628
|
+
removeAttachment(attachmentId: string): Promise<void>;
|
629
|
+
/** @deprecated This method will be removed in 0.6.0. Submit feedback if you need this functionality. */
|
630
|
+
reset(): void;
|
631
|
+
send(): void;
|
632
|
+
cancel(): void;
|
633
|
+
subscribe(callback: () => void): Unsubscribe;
|
634
|
+
getAttachmentByIndex(idx: number): AttachmentRuntime;
|
635
|
+
};
|
636
|
+
declare abstract class ComposerRuntimeImpl implements ComposerRuntimeCore, ComposerRuntime {
|
585
637
|
protected _core: ComposerRuntimeCoreBinding;
|
586
638
|
abstract get type(): "edit" | "thread";
|
587
639
|
constructor(_core: ComposerRuntimeCoreBinding);
|
@@ -617,6 +669,9 @@ declare abstract class ComposerRuntime implements ComposerRuntimeCore {
|
|
617
669
|
setText(text: string): void;
|
618
670
|
setValue(text: string): void;
|
619
671
|
addAttachment(file: File): Promise<void>;
|
672
|
+
/**
|
673
|
+
* @deprecated Use `getAttachmentById(id).removeAttachment()` instead. This will be removed in 0.6.0.
|
674
|
+
*/
|
620
675
|
removeAttachment(attachmentId: string): Promise<void>;
|
621
676
|
/**
|
622
677
|
* @deprecated This method will be removed in 0.6.0. Submit feedback if you need this functionality.
|
@@ -625,20 +680,53 @@ declare abstract class ComposerRuntime implements ComposerRuntimeCore {
|
|
625
680
|
send(): void;
|
626
681
|
cancel(): void;
|
627
682
|
subscribe(callback: () => void): Unsubscribe;
|
628
|
-
abstract
|
683
|
+
abstract getAttachmentByIndex(idx: number): AttachmentRuntime;
|
629
684
|
}
|
630
|
-
|
685
|
+
type ThreadComposerRuntime = Omit<ComposerRuntime, "getState" | "getAttachmentByIndex"> & {
|
686
|
+
readonly type: "thread";
|
687
|
+
getState(): ThreadComposerState;
|
688
|
+
/**
|
689
|
+
* @deprecated Use `getState().attachments` instead. This will be removed in 0.6.0.
|
690
|
+
*/
|
691
|
+
attachments: readonly PendingAttachment[];
|
692
|
+
/** @deprecated This feature is being removed in 0.6.0. Submit feedback if you need it. */
|
693
|
+
focus(): void;
|
694
|
+
/** @deprecated This feature is being removed in 0.6.0. Submit feedback if you need it. */
|
695
|
+
onFocus(callback: () => void): Unsubscribe;
|
696
|
+
getAttachmentByIndex(idx: number): AttachmentRuntime & {
|
697
|
+
source: "thread-composer";
|
698
|
+
};
|
699
|
+
};
|
700
|
+
declare class ThreadComposerRuntimeImpl extends ComposerRuntimeImpl implements ThreadComposerRuntime, ThreadComposerState {
|
631
701
|
get type(): "thread";
|
632
702
|
private _getState;
|
633
703
|
constructor(core: ThreadComposerRuntimeCoreBinding);
|
634
704
|
get attachments(): readonly Attachment[] & readonly PendingAttachment[];
|
635
705
|
getState(): ThreadComposerState;
|
636
706
|
private _focusListeners;
|
707
|
+
/**
|
708
|
+
* @deprecated This feature is being removed in 0.6.0. Submit feedback if you need it.
|
709
|
+
*/
|
637
710
|
focus(): void;
|
711
|
+
/**
|
712
|
+
* @deprecated This feature is being removed in 0.6.0. Submit feedback if you need it.
|
713
|
+
*/
|
638
714
|
onFocus(callback: () => void): () => boolean;
|
639
|
-
|
715
|
+
getAttachmentByIndex(idx: number): ThreadComposerAttachmentRuntimeImpl;
|
640
716
|
}
|
641
|
-
|
717
|
+
type EditComposerRuntime = Omit<ComposerRuntime, "getState" | "getAttachmentByIndex"> & {
|
718
|
+
readonly type: "edit";
|
719
|
+
getState(): EditComposerState;
|
720
|
+
beginEdit(): void;
|
721
|
+
/**
|
722
|
+
* @deprecated Use `beginEdit()` instead. This will be removed in 0.6.0.
|
723
|
+
*/
|
724
|
+
edit(): void;
|
725
|
+
getAttachmentByIndex(idx: number): AttachmentRuntime & {
|
726
|
+
source: "edit-composer";
|
727
|
+
};
|
728
|
+
};
|
729
|
+
declare class EditComposerRuntimeImpl extends ComposerRuntimeImpl implements EditComposerRuntime, EditComposerState {
|
642
730
|
private _beginEdit;
|
643
731
|
get type(): "edit";
|
644
732
|
private _getState;
|
@@ -649,7 +737,7 @@ declare class EditComposerRuntime extends ComposerRuntime implements EditCompose
|
|
649
737
|
* @deprecated Use `beginEdit()` instead. This will be removed in 0.6.0.
|
650
738
|
*/
|
651
739
|
edit(): void;
|
652
|
-
|
740
|
+
getAttachmentByIndex(idx: number): EditComposerAttachmentRuntimeImpl;
|
653
741
|
}
|
654
742
|
|
655
743
|
type MessageAttachmentState = CompleteAttachment & {
|
@@ -678,7 +766,15 @@ type AttachmentSnapshotBinding<Source extends AttachmentRuntimeSource> = Subscri
|
|
678
766
|
source: Source;
|
679
767
|
}>;
|
680
768
|
type AttachmentRuntimeSource = AttachmentState["source"];
|
681
|
-
|
769
|
+
type AttachmentRuntime<TSource extends AttachmentRuntimeSource = AttachmentRuntimeSource> = {
|
770
|
+
readonly source: TSource;
|
771
|
+
getState(): AttachmentState & {
|
772
|
+
source: TSource;
|
773
|
+
};
|
774
|
+
remove(): Promise<void>;
|
775
|
+
subscribe(callback: () => void): Unsubscribe;
|
776
|
+
};
|
777
|
+
declare abstract class AttachmentRuntimeImpl<Source extends AttachmentRuntimeSource = AttachmentRuntimeSource> implements AttachmentRuntime {
|
682
778
|
private _core;
|
683
779
|
abstract get source(): Source;
|
684
780
|
constructor(_core: AttachmentSnapshotBinding<Source>);
|
@@ -688,18 +784,18 @@ declare abstract class AttachmentRuntime<Source extends AttachmentRuntimeSource
|
|
688
784
|
abstract remove(): Promise<void>;
|
689
785
|
subscribe(callback: () => void): Unsubscribe;
|
690
786
|
}
|
691
|
-
declare abstract class ComposerAttachmentRuntime<Source extends "thread-composer" | "edit-composer"> extends
|
787
|
+
declare abstract class ComposerAttachmentRuntime<Source extends "thread-composer" | "edit-composer"> extends AttachmentRuntimeImpl<Source> {
|
692
788
|
private _composerApi;
|
693
789
|
constructor(core: AttachmentSnapshotBinding<Source>, _composerApi: ComposerRuntimeCoreBinding);
|
694
790
|
remove(): Promise<void>;
|
695
791
|
}
|
696
|
-
declare class
|
792
|
+
declare class ThreadComposerAttachmentRuntimeImpl extends ComposerAttachmentRuntime<"thread-composer"> {
|
697
793
|
get source(): "thread-composer";
|
698
794
|
}
|
699
|
-
declare class
|
795
|
+
declare class EditComposerAttachmentRuntimeImpl extends ComposerAttachmentRuntime<"edit-composer"> {
|
700
796
|
get source(): "edit-composer";
|
701
797
|
}
|
702
|
-
declare class
|
798
|
+
declare class MessageAttachmentRuntimeImpl extends AttachmentRuntimeImpl<"message"> {
|
703
799
|
get source(): "message";
|
704
800
|
constructor(core: AttachmentSnapshotBinding<"message">);
|
705
801
|
remove(): never;
|
@@ -720,13 +816,30 @@ type MessageState = ThreadMessage & {
|
|
720
816
|
branchCount: number;
|
721
817
|
};
|
722
818
|
type MessageStateBinding = SubscribableWithState<MessageState>;
|
723
|
-
|
819
|
+
type MessageRuntime = {
|
820
|
+
composer: EditComposerRuntime;
|
821
|
+
getState(): MessageState;
|
822
|
+
reload(): void;
|
823
|
+
speak(): SpeechSynthesisAdapter.Utterance;
|
824
|
+
submitFeedback({ type }: {
|
825
|
+
type: "positive" | "negative";
|
826
|
+
}): void;
|
827
|
+
switchToBranch({ position, branchId, }: {
|
828
|
+
position?: "previous" | "next" | undefined;
|
829
|
+
branchId?: string | undefined;
|
830
|
+
}): void;
|
831
|
+
subscribe(callback: () => void): Unsubscribe;
|
832
|
+
getContentPartByIndex(idx: number): ContentPartRuntime;
|
833
|
+
getAttachmentByIndex(idx: number): AttachmentRuntime & {
|
834
|
+
source: "message";
|
835
|
+
};
|
836
|
+
};
|
837
|
+
declare class MessageRuntimeImpl implements MessageRuntime {
|
724
838
|
private _core;
|
725
839
|
private _threadBinding;
|
726
840
|
constructor(_core: MessageStateBinding, _threadBinding: ThreadRuntimeCoreBinding);
|
727
|
-
composer:
|
841
|
+
composer: EditComposerRuntimeImpl;
|
728
842
|
getState(): MessageState;
|
729
|
-
unstable_edit(message: Omit<AppendMessage, "parentId">): void;
|
730
843
|
reload(): void;
|
731
844
|
speak(): SpeechSynthesisAdapter.Utterance;
|
732
845
|
submitFeedback({ type }: {
|
@@ -737,8 +850,8 @@ declare class MessageRuntime {
|
|
737
850
|
branchId?: string | undefined;
|
738
851
|
}): void;
|
739
852
|
subscribe(callback: () => void): Unsubscribe;
|
740
|
-
|
741
|
-
|
853
|
+
getContentPartByIndex(idx: number): ContentPartRuntimeImpl;
|
854
|
+
getAttachmentByIndex(idx: number): MessageAttachmentRuntimeImpl;
|
742
855
|
}
|
743
856
|
|
744
857
|
type CreateAppendMessage = string | {
|
@@ -754,8 +867,82 @@ type ThreadState = Readonly<{
|
|
754
867
|
isRunning: boolean;
|
755
868
|
capabilities: RuntimeCapabilities;
|
756
869
|
messages: readonly ThreadMessage[];
|
870
|
+
suggestions: readonly ThreadSuggestion[];
|
871
|
+
extras: unknown;
|
757
872
|
}>;
|
758
|
-
|
873
|
+
type ThreadRuntime = {
|
874
|
+
composer: ThreadComposerRuntime;
|
875
|
+
getState(): ThreadState;
|
876
|
+
/**
|
877
|
+
* @deprecated This method will be removed in 0.6.0. Submit feedback if you need this functionality.
|
878
|
+
*/
|
879
|
+
unstable_getCore(): ThreadRuntimeCore;
|
880
|
+
append(message: CreateAppendMessage): void;
|
881
|
+
startRun(parentId: string | null): void;
|
882
|
+
subscribe(callback: () => void): Unsubscribe;
|
883
|
+
cancelRun(): void;
|
884
|
+
getModelConfig(): ModelConfig;
|
885
|
+
export(): ExportedMessageRepository;
|
886
|
+
import(repository: ExportedMessageRepository): void;
|
887
|
+
getMesssageByIndex(idx: number): MessageRuntime;
|
888
|
+
/**
|
889
|
+
* @deprecated Use `getState().capabilities` instead. This will be removed in 0.6.0.
|
890
|
+
*/
|
891
|
+
capabilities: Readonly<RuntimeCapabilities>;
|
892
|
+
/**
|
893
|
+
* @deprecated Use `getState().threadId` instead. This will be removed in 0.6.0.
|
894
|
+
*/
|
895
|
+
threadId: string;
|
896
|
+
/**
|
897
|
+
* @deprecated Use `getState().isDisabled` instead. This will be removed in 0.6.0.
|
898
|
+
*/
|
899
|
+
isDisabled: boolean;
|
900
|
+
/**
|
901
|
+
* @deprecated Use `getState().isRunning` instead. This will be removed in 0.6.0.
|
902
|
+
*/
|
903
|
+
isRunning: boolean;
|
904
|
+
/**
|
905
|
+
* @deprecated Use `getState().messages` instead. This will be removed in 0.6.0.
|
906
|
+
*/
|
907
|
+
messages: readonly ThreadMessage[];
|
908
|
+
/**
|
909
|
+
* @deprecated Use `getState().followupSuggestions` instead. This will be removed in 0.6.0.
|
910
|
+
*/
|
911
|
+
suggestions: readonly ThreadSuggestion[];
|
912
|
+
/**
|
913
|
+
* @deprecated Use `getState().extras` instead. This will be removed in 0.6.0.
|
914
|
+
*/
|
915
|
+
extras: unknown;
|
916
|
+
/**
|
917
|
+
* @deprecated Use `getMesssageById(id).getState().branchNumber` / `getMesssageById(id).getState().branchCount` instead. This will be removed in 0.6.0.
|
918
|
+
*/
|
919
|
+
getBranches: (messageId: string) => readonly string[];
|
920
|
+
/**
|
921
|
+
* @deprecated Use `getMesssageById(id).switchToBranch({ options })` instead. This will be removed in 0.6.0.
|
922
|
+
*/
|
923
|
+
switchToBranch: (branchId: string) => void;
|
924
|
+
/**
|
925
|
+
* @deprecated Use `getMesssageById(id).getContentPartByToolCallId(toolCallId).addToolResult({ result })` instead. This will be removed in 0.6.0.
|
926
|
+
*/
|
927
|
+
addToolResult: (options: AddToolResultOptions) => void;
|
928
|
+
/**
|
929
|
+
* @deprecated Use `getMesssageById(id).speak()` instead. This will be removed in 0.6.0.
|
930
|
+
*/
|
931
|
+
speak: (messageId: string) => SpeechSynthesisAdapter.Utterance;
|
932
|
+
/**
|
933
|
+
* @deprecated Use `getMesssageById(id).submitFeedback({ type })` instead. This will be removed in 0.6.0.
|
934
|
+
*/
|
935
|
+
submitFeedback: (feedback: SubmitFeedbackOptions) => void;
|
936
|
+
/**
|
937
|
+
* @deprecated Use `getMesssageById(id).getMessageByIndex(idx).composer` instead. This will be removed in 0.6.0.
|
938
|
+
*/
|
939
|
+
getEditComposer: (messageId: string) => ComposerRuntimeCore | undefined;
|
940
|
+
/**
|
941
|
+
* @deprecated Use `getMesssageById(id).getMessageByIndex(idx).composer.beginEdit()` instead. This will be removed in 0.6.0.
|
942
|
+
*/
|
943
|
+
beginEdit: (messageId: string) => void;
|
944
|
+
};
|
945
|
+
declare class ThreadRuntimeImpl implements ThreadRuntimeCore, ThreadRuntime {
|
759
946
|
/**
|
760
947
|
* @deprecated Use `getState().threadId` instead. This will be removed in 0.6.0.
|
761
948
|
*/
|
@@ -781,6 +968,14 @@ declare class ThreadRuntime implements ThreadRuntimeCore {
|
|
781
968
|
attachments: boolean;
|
782
969
|
feedback: boolean;
|
783
970
|
}>;
|
971
|
+
/**
|
972
|
+
* @deprecated Use `getState().extras` instead. This will be removed in 0.6.0.
|
973
|
+
*/
|
974
|
+
get extras(): unknown;
|
975
|
+
/**
|
976
|
+
* @deprecated Use `getState().followupSuggestions` instead. This will be removed in 0.6.0.
|
977
|
+
*/
|
978
|
+
get suggestions(): readonly ThreadSuggestion[];
|
784
979
|
/**
|
785
980
|
* @deprecated Use `getState().messages` instead. This will be removed in 0.6.0.
|
786
981
|
*/
|
@@ -802,32 +997,45 @@ declare class ThreadRuntime implements ThreadRuntimeCore {
|
|
802
997
|
threadId: string;
|
803
998
|
isDisabled: boolean;
|
804
999
|
messages: readonly ThreadMessage[];
|
1000
|
+
suggestions: readonly ThreadSuggestion[];
|
1001
|
+
extras: unknown;
|
805
1002
|
subscribe: (callback: () => void) => Unsubscribe;
|
806
1003
|
import(repository: ExportedMessageRepository): void;
|
807
1004
|
export(): ExportedMessageRepository;
|
808
1005
|
}>;
|
809
1006
|
private _threadBinding;
|
810
1007
|
constructor(threadBinding: ThreadRuntimeCoreBinding);
|
811
|
-
readonly composer:
|
1008
|
+
readonly composer: ThreadComposerRuntimeImpl;
|
812
1009
|
getState(): Readonly<{
|
813
1010
|
threadId: string;
|
814
1011
|
isDisabled: boolean;
|
815
1012
|
isRunning: boolean;
|
816
1013
|
capabilities: RuntimeCapabilities;
|
817
1014
|
messages: readonly ThreadMessage[];
|
1015
|
+
suggestions: readonly ThreadSuggestion[];
|
1016
|
+
extras: unknown;
|
818
1017
|
}>;
|
819
1018
|
append(message: CreateAppendMessage): void;
|
820
1019
|
subscribe(callback: () => void): Unsubscribe;
|
1020
|
+
/**
|
1021
|
+
* @derprecated Use `getMesssageById(id).getState().branchNumber` / `getMesssageById(id).getState().branchCount` instead. This will be removed in 0.6.0.
|
1022
|
+
*/
|
821
1023
|
getBranches(messageId: string): readonly string[];
|
822
1024
|
getModelConfig(): ModelConfig;
|
823
1025
|
startRun(parentId: string | null): void;
|
824
1026
|
cancelRun(): void;
|
1027
|
+
/**
|
1028
|
+
* @deprecated Use `getMesssageById(id).getContentPartByToolCallId(toolCallId).addToolResult({ result })` instead. This will be removed in 0.6.0.
|
1029
|
+
*/
|
825
1030
|
addToolResult(options: AddToolResultOptions): void;
|
1031
|
+
/**
|
1032
|
+
* @deprecated Use `getMesssageById(id).switchToBranch({ options })` instead. This will be removed in 0.6.0.
|
1033
|
+
*/
|
826
1034
|
switchToBranch(branchId: string): void;
|
827
1035
|
speak(messageId: string): SpeechSynthesisAdapter.Utterance;
|
828
1036
|
submitFeedback(options: SubmitFeedbackOptions): void;
|
829
1037
|
/**
|
830
|
-
* @deprecated Use `getMesssageById(id).
|
1038
|
+
* @deprecated Use `getMesssageById(id).getMessageByIndex(idx).composer` instead. This will be removed in 0.6.0.
|
831
1039
|
*/
|
832
1040
|
getEditComposer(messageId: string): Readonly<{
|
833
1041
|
attachmentAccept: string;
|
@@ -845,12 +1053,12 @@ declare class ThreadRuntime implements ThreadRuntimeCore {
|
|
845
1053
|
subscribe: (callback: () => void) => Unsubscribe;
|
846
1054
|
}> | undefined;
|
847
1055
|
/**
|
848
|
-
* @deprecated Use `getMesssageById(id).
|
1056
|
+
* @deprecated Use `getMesssageById(id).getMessageByIndex(idx).composer.beginEdit()` instead. This will be removed in 0.6.0.
|
849
1057
|
*/
|
850
1058
|
beginEdit(messageId: string): void;
|
851
1059
|
export(): ExportedMessageRepository;
|
852
1060
|
import(data: ExportedMessageRepository): void;
|
853
|
-
|
1061
|
+
getMesssageByIndex(idx: number): MessageRuntimeImpl;
|
854
1062
|
}
|
855
1063
|
|
856
1064
|
type ContentPartState = (ThreadUserContentPart | ThreadAssistantContentPart) & {
|
@@ -861,7 +1069,12 @@ type ContentPartState = (ThreadUserContentPart | ThreadAssistantContentPart) & {
|
|
861
1069
|
status: ContentPartStatus | ToolCallContentPartStatus;
|
862
1070
|
};
|
863
1071
|
type ContentPartSnapshotBinding = SubscribableWithState<ContentPartState>;
|
864
|
-
|
1072
|
+
type ContentPartRuntime = {
|
1073
|
+
getState(): ContentPartState;
|
1074
|
+
addToolResult(result: any): void;
|
1075
|
+
subscribe(callback: () => void): Unsubscribe;
|
1076
|
+
};
|
1077
|
+
declare class ContentPartRuntimeImpl implements ContentPartRuntime {
|
865
1078
|
private contentBinding;
|
866
1079
|
private messageApi;
|
867
1080
|
private threadApi;
|
@@ -926,10 +1139,15 @@ type MessageUtilsState = Readonly<{
|
|
926
1139
|
setIsCopied: (value: boolean) => void;
|
927
1140
|
isHovering: boolean;
|
928
1141
|
setIsHovering: (value: boolean) => void;
|
1142
|
+
/** @deprecated This will be moved to `useMessage().isSpeaking` instead. This will be removed in 0.6.0. */
|
929
1143
|
isSpeaking: boolean;
|
1144
|
+
/** @deprecated This will be moved to `useMessageRuntime().stopSpeaking()` instead. This will be removed in 0.6.0. */
|
930
1145
|
stopSpeaking: () => void;
|
1146
|
+
/** @deprecated This will be moved to `useMessageRuntime().speak()` instead. This will be removed in 0.6.0. */
|
931
1147
|
addUtterance: (utterance: SpeechSynthesisAdapter.Utterance) => void;
|
1148
|
+
/** @deprecated This will be moved to `useMessage().submittedFeedback`. This will be removed in 0.6.0. */
|
932
1149
|
submittedFeedback: "positive" | "negative" | null;
|
1150
|
+
/** @deprecated This will be moved to `useMessageRuntime().submitFeedback()` instead. This will be removed in 0.6.0. */
|
933
1151
|
setSubmittedFeedback: (feedback: "positive" | "negative" | null) => void;
|
934
1152
|
}>;
|
935
1153
|
|
@@ -967,33 +1185,33 @@ declare function useAssistantRuntime(options?: {
|
|
967
1185
|
* @deprecated Use `useAssistantRuntime` instead. This will be removed in 0.6.0.
|
968
1186
|
*/
|
969
1187
|
declare const useAssistantActionsStore: {
|
970
|
-
(): ReadonlyStore<AssistantRuntime
|
1188
|
+
(): ReadonlyStore<AssistantRuntime>;
|
971
1189
|
(options: {
|
972
1190
|
optional: true;
|
973
|
-
}): ReadonlyStore<AssistantRuntime
|
1191
|
+
}): ReadonlyStore<AssistantRuntime> | null;
|
974
1192
|
};
|
975
1193
|
/**
|
976
1194
|
* @deprecated Use `useAssistantRuntime` instead. This will be removed in 0.6.0.
|
977
1195
|
*/
|
978
1196
|
declare const useAssistantActions: {
|
979
|
-
(): AssistantRuntime
|
980
|
-
<TSelected>(selector: (state: AssistantRuntime
|
1197
|
+
(): AssistantRuntime;
|
1198
|
+
<TSelected>(selector: (state: AssistantRuntime) => TSelected): TSelected;
|
981
1199
|
(options: {
|
982
1200
|
optional: true;
|
983
|
-
}): AssistantRuntime
|
1201
|
+
}): AssistantRuntime | null;
|
984
1202
|
<TSelected>(options: {
|
985
1203
|
optional: true;
|
986
|
-
selector?: (state: AssistantRuntime
|
1204
|
+
selector?: (state: AssistantRuntime) => TSelected;
|
987
1205
|
}): TSelected | null;
|
988
1206
|
};
|
989
1207
|
/**
|
990
1208
|
* @deprecated Use `useAssistantRuntime` instead. This will be removed in 0.6.0.
|
991
1209
|
*/
|
992
1210
|
declare const useAssistantRuntimeStore: {
|
993
|
-
(): ReadonlyStore<AssistantRuntime
|
1211
|
+
(): ReadonlyStore<AssistantRuntime>;
|
994
1212
|
(options: {
|
995
1213
|
optional: true;
|
996
|
-
}): ReadonlyStore<AssistantRuntime
|
1214
|
+
}): ReadonlyStore<AssistantRuntime> | null;
|
997
1215
|
};
|
998
1216
|
declare const useToolUIs: {
|
999
1217
|
(): Readonly<{
|
@@ -1104,6 +1322,8 @@ declare const useThread: {
|
|
1104
1322
|
feedback: boolean;
|
1105
1323
|
}>;
|
1106
1324
|
messages: readonly ThreadMessage[];
|
1325
|
+
suggestions: readonly ThreadSuggestion[];
|
1326
|
+
extras: unknown;
|
1107
1327
|
}>;
|
1108
1328
|
<TSelected>(selector: (state: Readonly<{
|
1109
1329
|
threadId: string;
|
@@ -1120,6 +1340,8 @@ declare const useThread: {
|
|
1120
1340
|
feedback: boolean;
|
1121
1341
|
}>;
|
1122
1342
|
messages: readonly ThreadMessage[];
|
1343
|
+
suggestions: readonly ThreadSuggestion[];
|
1344
|
+
extras: unknown;
|
1123
1345
|
}>) => TSelected): TSelected;
|
1124
1346
|
(options: {
|
1125
1347
|
optional: true;
|
@@ -1138,6 +1360,8 @@ declare const useThread: {
|
|
1138
1360
|
feedback: boolean;
|
1139
1361
|
}>;
|
1140
1362
|
messages: readonly ThreadMessage[];
|
1363
|
+
suggestions: readonly ThreadSuggestion[];
|
1364
|
+
extras: unknown;
|
1141
1365
|
}> | null;
|
1142
1366
|
<TSelected>(options: {
|
1143
1367
|
optional: true;
|
@@ -1156,6 +1380,8 @@ declare const useThread: {
|
|
1156
1380
|
feedback: boolean;
|
1157
1381
|
}>;
|
1158
1382
|
messages: readonly ThreadMessage[];
|
1383
|
+
suggestions: readonly ThreadSuggestion[];
|
1384
|
+
extras: unknown;
|
1159
1385
|
}>) => TSelected;
|
1160
1386
|
}): TSelected | null;
|
1161
1387
|
};
|
@@ -1175,6 +1401,8 @@ declare const useThreadStore: {
|
|
1175
1401
|
feedback: boolean;
|
1176
1402
|
}>;
|
1177
1403
|
messages: readonly ThreadMessage[];
|
1404
|
+
suggestions: readonly ThreadSuggestion[];
|
1405
|
+
extras: unknown;
|
1178
1406
|
}>>;
|
1179
1407
|
(options: {
|
1180
1408
|
optional: true;
|
@@ -1193,6 +1421,8 @@ declare const useThreadStore: {
|
|
1193
1421
|
feedback: boolean;
|
1194
1422
|
}>;
|
1195
1423
|
messages: readonly ThreadMessage[];
|
1424
|
+
suggestions: readonly ThreadSuggestion[];
|
1425
|
+
extras: unknown;
|
1196
1426
|
}>> | null;
|
1197
1427
|
};
|
1198
1428
|
/**
|
@@ -1549,16 +1779,22 @@ declare const useComposerAddAttachment: () => (() => void) | null;
|
|
1549
1779
|
declare const useContentPartDisplay: () => UIContentPart & {
|
1550
1780
|
part: ThreadUserContentPart | ThreadAssistantContentPart;
|
1551
1781
|
status: ContentPartStatus | ToolCallContentPartStatus;
|
1782
|
+
} & {
|
1783
|
+
part: UIContentPart;
|
1552
1784
|
};
|
1553
1785
|
|
1554
1786
|
declare const useContentPartImage: () => ImageContentPart & {
|
1555
1787
|
part: ThreadUserContentPart | ThreadAssistantContentPart;
|
1556
1788
|
status: ContentPartStatus | ToolCallContentPartStatus;
|
1789
|
+
} & {
|
1790
|
+
part: ImageContentPart;
|
1557
1791
|
};
|
1558
1792
|
|
1559
1793
|
declare const useContentPartText: () => TextContentPart & {
|
1560
1794
|
part: ThreadUserContentPart | ThreadAssistantContentPart;
|
1561
1795
|
status: ContentPartStatus | ToolCallContentPartStatus;
|
1796
|
+
} & {
|
1797
|
+
part: TextContentPart;
|
1562
1798
|
};
|
1563
1799
|
|
1564
1800
|
type MessageIfFilters = {
|
@@ -2052,6 +2288,9 @@ type ThreadConfig = {
|
|
2052
2288
|
composer?: ComposerConfig;
|
2053
2289
|
strings?: StringsConfig;
|
2054
2290
|
tools?: AssistantToolUI[];
|
2291
|
+
components?: {
|
2292
|
+
Composer: ComponentType;
|
2293
|
+
};
|
2055
2294
|
};
|
2056
2295
|
declare const useThreadConfig: () => Omit<ThreadConfig, "runtime">;
|
2057
2296
|
type ThreadConfigProviderProps = PropsWithChildren<{
|
@@ -2213,6 +2452,7 @@ declare const exports$5: {
|
|
2213
2452
|
asChild?: boolean;
|
2214
2453
|
}, "ref"> & UseThreadViewportAutoScrollProps & react.RefAttributes<HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
2215
2454
|
Messages: FC<{
|
2455
|
+
unstable_flexGrowDiv?: boolean;
|
2216
2456
|
components?: {
|
2217
2457
|
UserMessage?: ComponentType | undefined;
|
2218
2458
|
EditComposer?: ComponentType | undefined;
|
@@ -2220,6 +2460,7 @@ declare const exports$5: {
|
|
2220
2460
|
SystemMessage?: ComponentType | undefined;
|
2221
2461
|
};
|
2222
2462
|
}>;
|
2463
|
+
FollowupSuggestions: FC;
|
2223
2464
|
ScrollToBottom: react.ForwardRefExoticComponent<Partial<TooltipIconButtonProps> & react.RefAttributes<HTMLButtonElement>>;
|
2224
2465
|
ViewportFooter: react.ForwardRefExoticComponent<Partial<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">> & react.RefAttributes<HTMLDivElement>>;
|
2225
2466
|
};
|
@@ -2346,8 +2587,8 @@ declare const useSmoothStatus: {
|
|
2346
2587
|
}): TSelected | null;
|
2347
2588
|
};
|
2348
2589
|
|
2349
|
-
type
|
2350
|
-
declare const
|
2590
|
+
type internal_AssistantRuntimeImpl<TThreadRuntime extends ThreadRuntime = ThreadRuntime> = AssistantRuntimeImpl<TThreadRuntime>;
|
2591
|
+
declare const internal_AssistantRuntimeImpl: typeof AssistantRuntimeImpl;
|
2351
2592
|
type internal_BaseAssistantRuntimeCore<TThreadRuntime extends ThreadRuntimeCore> = BaseAssistantRuntimeCore<TThreadRuntime>;
|
2352
2593
|
declare const internal_BaseAssistantRuntimeCore: typeof BaseAssistantRuntimeCore;
|
2353
2594
|
type internal_DefaultThreadComposerRuntimeCore = DefaultThreadComposerRuntimeCore;
|
@@ -2356,17 +2597,17 @@ type internal_MessageRepository = MessageRepository;
|
|
2356
2597
|
declare const internal_MessageRepository: typeof MessageRepository;
|
2357
2598
|
type internal_ProxyConfigProvider = ProxyConfigProvider;
|
2358
2599
|
declare const internal_ProxyConfigProvider: typeof ProxyConfigProvider;
|
2359
|
-
type internal_ThreadRuntime = ThreadRuntime;
|
2360
|
-
declare const internal_ThreadRuntime: typeof ThreadRuntime;
|
2361
2600
|
type internal_ThreadRuntimeCore = ThreadRuntimeCore;
|
2362
2601
|
type internal_ThreadRuntimeCoreBinding = ThreadRuntimeCoreBinding;
|
2602
|
+
type internal_ThreadRuntimeImpl = ThreadRuntimeImpl;
|
2603
|
+
declare const internal_ThreadRuntimeImpl: typeof ThreadRuntimeImpl;
|
2363
2604
|
declare const internal_TooltipIconButton: typeof TooltipIconButton;
|
2364
2605
|
declare const internal_generateId: typeof generateId;
|
2365
2606
|
declare const internal_useSmooth: typeof useSmooth;
|
2366
2607
|
declare const internal_useSmoothStatus: typeof useSmoothStatus;
|
2367
2608
|
declare const internal_withSmoothContextProvider: typeof withSmoothContextProvider;
|
2368
2609
|
declare namespace internal {
|
2369
|
-
export {
|
2610
|
+
export { internal_AssistantRuntimeImpl as AssistantRuntimeImpl, internal_BaseAssistantRuntimeCore as BaseAssistantRuntimeCore, internal_DefaultThreadComposerRuntimeCore as DefaultThreadComposerRuntimeCore, internal_MessageRepository as MessageRepository, internal_ProxyConfigProvider as ProxyConfigProvider, type internal_ThreadRuntimeCore as ThreadRuntimeCore, type internal_ThreadRuntimeCoreBinding as ThreadRuntimeCoreBinding, internal_ThreadRuntimeImpl as ThreadRuntimeImpl, internal_TooltipIconButton as TooltipIconButton, internal_generateId as generateId, internal_useSmooth as useSmooth, internal_useSmoothStatus as useSmoothStatus, internal_withSmoothContextProvider as withSmoothContextProvider };
|
2370
2611
|
}
|
2371
2612
|
|
2372
|
-
export { index$6 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveFeedbackNegativeProps, type ActionBarPrimitiveFeedbackPositiveProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, type ActionBarPrimitiveSpeakProps, type ActionBarPrimitiveStopSpeakingProps, type AddToolResultOptions, AppendMessage, _default$b as AssistantActionBar, type AssistantContextValue, _default$a as AssistantMessage, type AssistantMessageConfig, type AssistantMessageContentProps, _default$9 as AssistantModal, index$5 as AssistantModalPrimitive, type AssistantModalPrimitiveContentProps, type AssistantModalPrimitiveRootProps, type AssistantModalPrimitiveTriggerProps, AssistantRuntime, AssistantRuntimeProvider, type AssistantTool, type AssistantToolProps, type AssistantToolUI, type AssistantToolUIProps, type AssistantToolUIsState, Attachment, type AttachmentAdapter, _default$8 as BranchPicker, index$4 as BranchPickerPrimitive, type BranchPickerPrimitiveCountProps, type BranchPickerPrimitiveNextProps, type BranchPickerPrimitiveNumberProps, type BranchPickerPrimitivePreviousProps, type BranchPickerPrimitiveRootProps, type ChatModelAdapter, type ChatModelRunOptions, type ChatModelRunResult, type ChatModelRunUpdate, CompleteAttachment, _default$7 as Composer, _default$6 as ComposerAttachment, type ComposerContextValue, type ComposerInputProps, index$3 as ComposerPrimitive, type ComposerPrimitiveCancelProps, type ComposerPrimitiveIfProps, type ComposerPrimitiveInputProps, type ComposerPrimitiveRootProps, type ComposerPrimitiveSendProps, ComposerRuntime, type ComposerState, CompositeAttachmentAdapter, exports as ContentPart, type ContentPartContextValue, index$2 as ContentPartPrimitive, type ContentPartPrimitiveDisplayProps, type ContentPartPrimitiveImageProps, type ContentPartPrimitiveInProgressProps, type ContentPartPrimitiveTextProps, ContentPartRuntime, CoreMessage, type DangerousInBrowserRuntimeOptions, EdgeChatAdapter, type EdgeRuntimeOptions, _default$5 as EditComposer, EditComposerRuntime, type EditComposerState, type EmptyContentPartComponent, type EmptyContentPartProps, type ExternalStoreAdapter, type ExternalStoreMessageConverter, internal as INTERNAL, ImageContentPart, type ImageContentPartComponent, type ImageContentPartProps, type LocalRuntimeOptions, type MessageContextValue, index$1 as MessagePrimitive, type MessagePrimitiveContentProps, type MessagePrimitiveIfProps, type MessagePrimitiveInProgressProps, type MessagePrimitiveRootProps, MessageRuntime, type MessageState, MessageStatus, type MessageUtilsState, ModelConfig, ModelConfigProvider, PendingAttachment, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, SpeechSynthesisAdapter, StreamUtils, type StringsConfig, type SubmitFeedbackOptions, type SuggestionConfig, TextContentPart, type TextContentPartComponent, type TextContentPartProps, TextContentPartProvider, _default$4 as Thread, ThreadAssistantContentPart, ThreadComposerRuntime, type ThreadConfig, ThreadConfigProvider, type ThreadConfigProviderProps, type ThreadContextValue, ThreadMessage, type ThreadMessageLike, index as ThreadPrimitive, type ThreadPrimitiveEmptyProps, type ThreadPrimitiveIfProps, type ThreadPrimitiveMessagesProps, type ThreadPrimitiveRootProps, type ThreadPrimitiveScrollToBottomProps, type ThreadPrimitiveSuggestionProps, type ThreadPrimitiveViewportProps, type ThreadRootProps, ThreadRuntime, type ThreadState, ThreadUserContentPart, 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$2 as UserActionBar, _default$3 as UserMessage, _default$1 as UserMessageAttachment, type UserMessageConfig, type UserMessageContentProps, WebSpeechSynthesisAdapter, fromCoreMessage, fromCoreMessages, fromLanguageModelMessages, fromLanguageModelTools, getExternalStoreMessage, makeAssistantTool, makeAssistantToolUI, streamUtils, subscribeToMainThread, toCoreMessage, toCoreMessages, toLanguageModelMessages, toLanguageModelTools, useActionBarCopy, useActionBarEdit, useActionBarFeedbackNegative, useActionBarFeedbackPositive, useActionBarReload, useActionBarSpeak, useActionBarStopSpeaking, useAppendMessage, useAssistantActions, useAssistantActionsStore, useAssistantContext, useAssistantInstructions, useAssistantRuntime, useAssistantRuntimeStore, useAssistantTool, useAssistantToolUI, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposer, useComposerAddAttachment, useComposerCancel, useComposerContext, useComposerIf, useComposerRuntime, useComposerSend, useComposerStore, useContentPart, useContentPartContext, useContentPartDisplay, useContentPartImage, useContentPartRuntime, useContentPartStore, useContentPartText, useDangerousInBrowserRuntime, useEdgeRuntime, useEditComposer, useEditComposerStore, useExternalMessageConverter, useExternalStoreRuntime, useLocalRuntime, useMessage, useMessageContext, useMessageIf, useMessageRuntime, useMessageStore, useMessageUtils, useMessageUtilsStore, useSwitchToNewThread, useThread, useThreadActions, useThreadActionsStore, useThreadComposer, useThreadComposerStore, useThreadConfig, useThreadContext, useThreadEmpty, useThreadIf, useThreadMessages, useThreadMessagesStore, useThreadRuntime, useThreadRuntimeStore, useThreadScrollToBottom, useThreadStore, useThreadSuggestion, useThreadViewport, useThreadViewportStore, useToolUIs, useToolUIsStore };
|
2613
|
+
export { index$6 as ActionBarPrimitive, type ActionBarPrimitiveCopyProps, type ActionBarPrimitiveEditProps, type ActionBarPrimitiveFeedbackNegativeProps, type ActionBarPrimitiveFeedbackPositiveProps, type ActionBarPrimitiveReloadProps, type ActionBarPrimitiveRootProps, type ActionBarPrimitiveSpeakProps, type ActionBarPrimitiveStopSpeakingProps, type AddToolResultOptions, AppendMessage, _default$b as AssistantActionBar, type AssistantContextValue, _default$a as AssistantMessage, type AssistantMessageConfig, type AssistantMessageContentProps, _default$9 as AssistantModal, index$5 as AssistantModalPrimitive, type AssistantModalPrimitiveContentProps, type AssistantModalPrimitiveRootProps, type AssistantModalPrimitiveTriggerProps, type AssistantRuntime, AssistantRuntimeProvider, type AssistantTool, type AssistantToolProps, type AssistantToolUI, type AssistantToolUIProps, type AssistantToolUIsState, Attachment, type AttachmentAdapter, _default$8 as BranchPicker, index$4 as BranchPickerPrimitive, type BranchPickerPrimitiveCountProps, type BranchPickerPrimitiveNextProps, type BranchPickerPrimitiveNumberProps, type BranchPickerPrimitivePreviousProps, type BranchPickerPrimitiveRootProps, type ChatModelAdapter, type ChatModelRunOptions, type ChatModelRunResult, type ChatModelRunUpdate, CompleteAttachment, _default$7 as Composer, _default$6 as ComposerAttachment, type ComposerContextValue, type ComposerInputProps, index$3 as ComposerPrimitive, type ComposerPrimitiveCancelProps, type ComposerPrimitiveIfProps, type ComposerPrimitiveInputProps, type ComposerPrimitiveRootProps, type ComposerPrimitiveSendProps, type ComposerRuntime, type ComposerState, CompositeAttachmentAdapter, exports as ContentPart, type ContentPartContextValue, index$2 as ContentPartPrimitive, type ContentPartPrimitiveDisplayProps, type ContentPartPrimitiveImageProps, type ContentPartPrimitiveInProgressProps, type ContentPartPrimitiveTextProps, type ContentPartRuntime, CoreMessage, type DangerousInBrowserRuntimeOptions, EdgeChatAdapter, type EdgeRuntimeOptions, _default$5 as EditComposer, type EditComposerRuntime, type EditComposerState, type EmptyContentPartComponent, type EmptyContentPartProps, type ExternalStoreAdapter, type ExternalStoreMessageConverter, 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 MessageRuntime, type MessageState, MessageStatus, type MessageUtilsState, ModelConfig, ModelConfigProvider, PendingAttachment, SimpleImageAttachmentAdapter, SimpleTextAttachmentAdapter, SpeechSynthesisAdapter, StreamUtils, type StringsConfig, type SubmitFeedbackOptions, type SuggestionConfig, TextContentPart, type TextContentPartComponent, type TextContentPartProps, TextContentPartProvider, _default$4 as Thread, ThreadAssistantContentPart, type ThreadComposerRuntime, type ThreadComposerState, type ThreadConfig, ThreadConfigProvider, type ThreadConfigProviderProps, type ThreadContextValue, ThreadMessage, type ThreadMessageLike, index as ThreadPrimitive, type ThreadPrimitiveEmptyProps, type ThreadPrimitiveIfProps, type ThreadPrimitiveMessagesProps, type ThreadPrimitiveRootProps, type ThreadPrimitiveScrollToBottomProps, type ThreadPrimitiveSuggestionProps, type ThreadPrimitiveViewportProps, type ThreadRootProps, type ThreadRuntime, type ThreadState, type ThreadSuggestion, ThreadUserContentPart, 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$2 as UserActionBar, _default$3 as UserMessage, _default$1 as UserMessageAttachment, type UserMessageConfig, type UserMessageContentProps, WebSpeechSynthesisAdapter, fromCoreMessage, fromCoreMessages, fromLanguageModelMessages, fromLanguageModelTools, getExternalStoreMessage, makeAssistantTool, makeAssistantToolUI, streamUtils, subscribeToMainThread, toCoreMessage, toCoreMessages, toLanguageModelMessages, toLanguageModelTools, useActionBarCopy, useActionBarEdit, useActionBarFeedbackNegative, useActionBarFeedbackPositive, useActionBarReload, useActionBarSpeak, useActionBarStopSpeaking, useAppendMessage, useAssistantActions, useAssistantActionsStore, useAssistantContext, useAssistantInstructions, useAssistantRuntime, useAssistantRuntimeStore, useAssistantTool, useAssistantToolUI, useBranchPickerCount, useBranchPickerNext, useBranchPickerNumber, useBranchPickerPrevious, useComposer, useComposerAddAttachment, useComposerCancel, useComposerContext, useComposerIf, useComposerRuntime, useComposerSend, useComposerStore, useContentPart, useContentPartContext, useContentPartDisplay, useContentPartImage, useContentPartRuntime, useContentPartStore, useContentPartText, useDangerousInBrowserRuntime, useEdgeRuntime, useEditComposer, useEditComposerStore, useExternalMessageConverter, useExternalStoreRuntime, useLocalRuntime, useMessage, useMessageContext, useMessageIf, useMessageRuntime, useMessageStore, useMessageUtils, useMessageUtilsStore, useSwitchToNewThread, useThread, useThreadActions, useThreadActionsStore, useThreadComposer, useThreadComposerStore, useThreadConfig, useThreadContext, useThreadEmpty, useThreadIf, useThreadMessages, useThreadMessagesStore, useThreadRuntime, useThreadRuntimeStore, useThreadScrollToBottom, useThreadStore, useThreadSuggestion, useThreadViewport, useThreadViewportStore, useToolUIs, useToolUIsStore };
|