@nexo-labs/chat-agent 1.9.8 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react.d.mts +39 -39
- package/dist/react.d.mts.map +1 -1
- package/dist/react.mjs +2 -2
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -1
- package/src/adapters/NexoPayloadChatAdapter.ts +17 -17
- package/src/components/SourcesList.tsx +1 -11
package/dist/react.d.mts
CHANGED
|
@@ -122,7 +122,7 @@ interface MarkdownTextProps {
|
|
|
122
122
|
}
|
|
123
123
|
declare const MarkdownText: FC<MarkdownTextProps>;
|
|
124
124
|
//#endregion
|
|
125
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
125
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/types/Unsubscribe.d.ts
|
|
126
126
|
type Unsubscribe = () => void;
|
|
127
127
|
//#endregion
|
|
128
128
|
//#region ../../node_modules/.pnpm/assistant-stream@0.2.47/node_modules/assistant-stream/dist/utils/json/json-value.d.ts
|
|
@@ -485,7 +485,7 @@ type HumanTool<TArgs extends Record<string, unknown> = Record<string, unknown>,
|
|
|
485
485
|
};
|
|
486
486
|
type Tool<TArgs extends Record<string, unknown> = Record<string, unknown>, TResult = unknown> = FrontendTool<TArgs, TResult> | BackendTool<TArgs, TResult> | HumanTool<TArgs, TResult>;
|
|
487
487
|
//#endregion
|
|
488
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
488
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/model-context/ModelContextTypes.d.ts
|
|
489
489
|
type LanguageModelV1CallSettings = {
|
|
490
490
|
maxTokens?: number;
|
|
491
491
|
temperature?: number;
|
|
@@ -512,7 +512,7 @@ type ModelContextProvider = {
|
|
|
512
512
|
subscribe?: (callback: () => void) => Unsubscribe;
|
|
513
513
|
};
|
|
514
514
|
//#endregion
|
|
515
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
515
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/types/AssistantTypes.d.ts
|
|
516
516
|
type MessageRole = ThreadMessage["role"];
|
|
517
517
|
type MessageCommonProps = {
|
|
518
518
|
readonly id: string;
|
|
@@ -617,7 +617,7 @@ type BaseThreadMessage = {
|
|
|
617
617
|
};
|
|
618
618
|
type ThreadMessage = BaseThreadMessage & (ThreadSystemMessage | ThreadUserMessage | ThreadAssistantMessage);
|
|
619
619
|
//#endregion
|
|
620
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
620
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/types/MessagePartTypes.d.ts
|
|
621
621
|
type TextMessagePart = {
|
|
622
622
|
readonly type: "text";
|
|
623
623
|
readonly text: string;
|
|
@@ -678,7 +678,7 @@ type ToolCallMessagePart<TArgs = ReadonlyJSONObject, TResult = unknown> = {
|
|
|
678
678
|
type ThreadUserMessagePart = TextMessagePart | ImageMessagePart | FileMessagePart | Unstable_AudioMessagePart;
|
|
679
679
|
type ThreadAssistantMessagePart = TextMessagePart | ReasoningMessagePart | ToolCallMessagePart | SourceMessagePart | FileMessagePart | ImageMessagePart | DataMessagePart;
|
|
680
680
|
//#endregion
|
|
681
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
681
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/types/AttachmentTypes.d.ts
|
|
682
682
|
type PendingAttachmentStatus = {
|
|
683
683
|
type: "running";
|
|
684
684
|
reason: "uploading";
|
|
@@ -711,7 +711,7 @@ type CompleteAttachment = BaseAttachment & {
|
|
|
711
711
|
};
|
|
712
712
|
type Attachment = PendingAttachment | CompleteAttachment;
|
|
713
713
|
//#endregion
|
|
714
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
714
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/adapters/attachment/AttachmentAdapter.d.ts
|
|
715
715
|
/**
|
|
716
716
|
* Interface for handling file attachments in the assistant runtime.
|
|
717
717
|
*
|
|
@@ -775,7 +775,7 @@ type AttachmentAdapter = {
|
|
|
775
775
|
send(attachment: PendingAttachment): Promise<CompleteAttachment>;
|
|
776
776
|
};
|
|
777
777
|
//#endregion
|
|
778
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
778
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/adapters/feedback/FeedbackAdapter.d.ts
|
|
779
779
|
/**
|
|
780
780
|
* Feedback data structure for rating messages.
|
|
781
781
|
*/
|
|
@@ -817,7 +817,7 @@ type FeedbackAdapter = {
|
|
|
817
817
|
submit: (feedback: FeedbackAdapterFeedback) => void;
|
|
818
818
|
};
|
|
819
819
|
//#endregion
|
|
820
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
820
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/adapters/speech/SpeechAdapterTypes.d.ts
|
|
821
821
|
/**
|
|
822
822
|
* Types and interfaces for speech synthesis (text-to-speech) functionality.
|
|
823
823
|
*/
|
|
@@ -927,7 +927,7 @@ type DictationAdapter = {
|
|
|
927
927
|
disableInputDuringDictation?: boolean;
|
|
928
928
|
};
|
|
929
929
|
//#endregion
|
|
930
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
930
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/adapters/speech/WebSpeechDictationAdapter.d.ts
|
|
931
931
|
interface SpeechRecognitionInstance extends EventTarget {
|
|
932
932
|
lang: string;
|
|
933
933
|
continuous: boolean;
|
|
@@ -960,7 +960,7 @@ declare global {
|
|
|
960
960
|
* ```
|
|
961
961
|
*/
|
|
962
962
|
//#endregion
|
|
963
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
963
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/client/types/Tools.d.ts
|
|
964
964
|
type ToolsState = {
|
|
965
965
|
tools: Record<string, ToolCallMessagePartComponent[]>;
|
|
966
966
|
};
|
|
@@ -973,7 +973,7 @@ type ToolsMeta = {
|
|
|
973
973
|
query: Record<string, never>;
|
|
974
974
|
};
|
|
975
975
|
//#endregion
|
|
976
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
976
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/local/ChatModelAdapter.d.ts
|
|
977
977
|
type ChatModelRunResult = {
|
|
978
978
|
readonly content?: readonly ThreadAssistantMessagePart[] | undefined;
|
|
979
979
|
readonly status?: MessageStatus | undefined;
|
|
@@ -1000,7 +1000,7 @@ type ChatModelRunOptions = {
|
|
|
1000
1000
|
unstable_getMessage(): ThreadMessage;
|
|
1001
1001
|
};
|
|
1002
1002
|
//#endregion
|
|
1003
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1003
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ThreadMessageLike.d.ts
|
|
1004
1004
|
type ThreadMessageLike = {
|
|
1005
1005
|
readonly role: "assistant" | "user" | "system";
|
|
1006
1006
|
readonly content: string | readonly (TextMessagePart | ReasoningMessagePart | SourceMessagePart | ImageMessagePart | FileMessagePart | DataMessagePart | Unstable_AudioMessagePart | {
|
|
@@ -1031,7 +1031,7 @@ type ThreadMessageLike = {
|
|
|
1031
1031
|
} | undefined;
|
|
1032
1032
|
};
|
|
1033
1033
|
//#endregion
|
|
1034
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1034
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/ExternalStoreAdapter.d.ts
|
|
1035
1035
|
type ExternalStoreThreadData<TState extends "regular" | "archived"> = {
|
|
1036
1036
|
status: TState;
|
|
1037
1037
|
id: string;
|
|
@@ -1103,10 +1103,10 @@ type ExternalStoreAdapterBase<T> = {
|
|
|
1103
1103
|
};
|
|
1104
1104
|
type ExternalStoreAdapter<T = ThreadMessage> = ExternalStoreAdapterBase<T> & (T extends ThreadMessage ? object : ExternalStoreMessageConverterAdapter<T>);
|
|
1105
1105
|
//#endregion
|
|
1106
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1106
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/external-store/useExternalStoreRuntime.d.ts
|
|
1107
1107
|
declare const useExternalStoreRuntime: <T>(store: ExternalStoreAdapter<T>) => AssistantRuntime;
|
|
1108
1108
|
//#endregion
|
|
1109
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1109
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/utils/MessageRepository.d.ts
|
|
1110
1110
|
/**
|
|
1111
1111
|
* Represents the entire repository state for export/import.
|
|
1112
1112
|
*/
|
|
@@ -1134,7 +1134,7 @@ declare const ExportedMessageRepository: {
|
|
|
1134
1134
|
fromArray: (messages: readonly ThreadMessageLike[]) => ExportedMessageRepository;
|
|
1135
1135
|
};
|
|
1136
1136
|
//#endregion
|
|
1137
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1137
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/core/ComposerRuntimeCore.d.ts
|
|
1138
1138
|
type ComposerRuntimeEventType = "send" | "attachment-add";
|
|
1139
1139
|
/**
|
|
1140
1140
|
* State representing an active dictation session.
|
|
@@ -1156,7 +1156,7 @@ type DictationState = {
|
|
|
1156
1156
|
readonly inputDisabled?: boolean;
|
|
1157
1157
|
};
|
|
1158
1158
|
//#endregion
|
|
1159
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1159
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime-cores/core/ThreadRuntimeCore.d.ts
|
|
1160
1160
|
type RuntimeCapabilities = {
|
|
1161
1161
|
readonly switchToBranch: boolean;
|
|
1162
1162
|
readonly switchBranchDuringRun: boolean;
|
|
@@ -1197,7 +1197,7 @@ type ResumeRunConfig = StartRunConfig & {
|
|
|
1197
1197
|
stream?: (options: ChatModelRunOptions) => AsyncGenerator<ChatModelRunResult, void, unknown>;
|
|
1198
1198
|
};
|
|
1199
1199
|
//#endregion
|
|
1200
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1200
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/RuntimePathTypes.d.ts
|
|
1201
1201
|
type ThreadListItemRuntimePath = {
|
|
1202
1202
|
readonly ref: string;
|
|
1203
1203
|
readonly threadSelector: {
|
|
@@ -1262,7 +1262,7 @@ type ComposerRuntimePath = (ThreadRuntimePath & {
|
|
|
1262
1262
|
readonly composerSource: "edit";
|
|
1263
1263
|
});
|
|
1264
1264
|
//#endregion
|
|
1265
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1265
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/RuntimeBindings.d.ts
|
|
1266
1266
|
type ThreadListItemStatus = "archived" | "regular" | "new" | "deleted";
|
|
1267
1267
|
type ThreadListItemState = {
|
|
1268
1268
|
readonly isMain: boolean;
|
|
@@ -1277,7 +1277,7 @@ type ThreadListItemState = {
|
|
|
1277
1277
|
readonly title?: string | undefined;
|
|
1278
1278
|
};
|
|
1279
1279
|
//#endregion
|
|
1280
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1280
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/AttachmentRuntime.d.ts
|
|
1281
1281
|
type MessageAttachmentState = CompleteAttachment & {
|
|
1282
1282
|
readonly source: "message";
|
|
1283
1283
|
};
|
|
@@ -1301,7 +1301,7 @@ type AttachmentRuntime<TSource extends AttachmentRuntimeSource = AttachmentRunti
|
|
|
1301
1301
|
subscribe(callback: () => void): Unsubscribe;
|
|
1302
1302
|
};
|
|
1303
1303
|
//#endregion
|
|
1304
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1304
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ComposerRuntime.d.ts
|
|
1305
1305
|
type BaseComposerState = {
|
|
1306
1306
|
readonly canCancel: boolean;
|
|
1307
1307
|
readonly isEditing: boolean;
|
|
@@ -1421,7 +1421,7 @@ type EditComposerRuntime = Omit<ComposerRuntime, "getState" | "getAttachmentByIn
|
|
|
1421
1421
|
};
|
|
1422
1422
|
};
|
|
1423
1423
|
//#endregion
|
|
1424
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1424
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/MessageRuntime.d.ts
|
|
1425
1425
|
type MessageState = ThreadMessage & {
|
|
1426
1426
|
readonly parentId: string | null;
|
|
1427
1427
|
/** The position of this message in the thread (0 for first message) */
|
|
@@ -1475,7 +1475,7 @@ type MessageRuntime = {
|
|
|
1475
1475
|
};
|
|
1476
1476
|
};
|
|
1477
1477
|
//#endregion
|
|
1478
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1478
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadRuntime.d.ts
|
|
1479
1479
|
type CreateStartRunConfig = {
|
|
1480
1480
|
parentId: string | null;
|
|
1481
1481
|
sourceId?: string | null | undefined;
|
|
@@ -1619,7 +1619,7 @@ type ThreadRuntime = {
|
|
|
1619
1619
|
unstable_on(event: ThreadRuntimeEventType, callback: () => void): Unsubscribe;
|
|
1620
1620
|
};
|
|
1621
1621
|
//#endregion
|
|
1622
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1622
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/MessagePartRuntime.d.ts
|
|
1623
1623
|
type MessagePartState = (ThreadUserMessagePart | ThreadAssistantMessagePart) & {
|
|
1624
1624
|
readonly status: MessagePartStatus | ToolCallMessagePartStatus;
|
|
1625
1625
|
};
|
|
@@ -1639,14 +1639,14 @@ type MessagePartRuntime = {
|
|
|
1639
1639
|
subscribe(callback: () => void): Unsubscribe;
|
|
1640
1640
|
};
|
|
1641
1641
|
//#endregion
|
|
1642
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1642
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/types/MessagePartComponentTypes.d.ts
|
|
1643
1643
|
type ToolCallMessagePartProps<TArgs = any, TResult = unknown> = MessagePartState & ToolCallMessagePart<TArgs, TResult> & {
|
|
1644
1644
|
addResult: (result: TResult | ToolResponse<TResult>) => void;
|
|
1645
1645
|
resume: (payload: unknown) => void;
|
|
1646
1646
|
};
|
|
1647
1647
|
type ToolCallMessagePartComponent<TArgs = any, TResult = any> = ComponentType<ToolCallMessagePartProps<TArgs, TResult>>;
|
|
1648
1648
|
//#endregion
|
|
1649
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1649
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadListRuntime.d.ts
|
|
1650
1650
|
type ThreadListState = {
|
|
1651
1651
|
readonly mainThreadId: string;
|
|
1652
1652
|
readonly newThread: string | undefined;
|
|
@@ -1668,7 +1668,7 @@ type ThreadListRuntime = {
|
|
|
1668
1668
|
switchToNewThread(): Promise<void>;
|
|
1669
1669
|
};
|
|
1670
1670
|
//#endregion
|
|
1671
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1671
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/ThreadListItemRuntime.d.ts
|
|
1672
1672
|
type ThreadListItemEventType = "switched-to" | "switched-away";
|
|
1673
1673
|
type ThreadListItemRuntime = {
|
|
1674
1674
|
readonly path: ThreadListItemRuntimePath;
|
|
@@ -1691,7 +1691,7 @@ type ThreadListItemRuntime = {
|
|
|
1691
1691
|
unstable_on(event: ThreadListItemEventType, callback: () => void): Unsubscribe;
|
|
1692
1692
|
};
|
|
1693
1693
|
//#endregion
|
|
1694
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1694
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/types/EventTypes.d.ts
|
|
1695
1695
|
type EventSource<T extends AssistantEvent = AssistantEvent> = T extends `${infer Source}.${string}` ? Source : never;
|
|
1696
1696
|
type ScopeConfig = {
|
|
1697
1697
|
composer: "thread" | "message";
|
|
@@ -1738,7 +1738,7 @@ type AssistantEventMap = {
|
|
|
1738
1738
|
};
|
|
1739
1739
|
type AssistantEventCallback<TEvent extends AssistantEvent> = (payload: AssistantEventMap[TEvent]) => void;
|
|
1740
1740
|
//#endregion
|
|
1741
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1741
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/legacy-runtime/runtime/AssistantRuntime.d.ts
|
|
1742
1742
|
type AssistantRuntime = {
|
|
1743
1743
|
/**
|
|
1744
1744
|
* The threads in this assistant.
|
|
@@ -1781,14 +1781,14 @@ type AssistantRuntime = {
|
|
|
1781
1781
|
reset: unknown;
|
|
1782
1782
|
};
|
|
1783
1783
|
//#endregion
|
|
1784
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1784
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/client/types/Attachment.d.ts
|
|
1785
1785
|
type AttachmentClientState = Attachment;
|
|
1786
1786
|
type AttachmentClientApi = {
|
|
1787
1787
|
getState(): AttachmentClientState;
|
|
1788
1788
|
remove(): Promise<void>;
|
|
1789
1789
|
};
|
|
1790
1790
|
//#endregion
|
|
1791
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1791
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/client/types/Composer.d.ts
|
|
1792
1792
|
type ComposerClientState = {
|
|
1793
1793
|
readonly text: string;
|
|
1794
1794
|
readonly role: MessageRole;
|
|
@@ -1832,7 +1832,7 @@ type ComposerClientApi = {
|
|
|
1832
1832
|
stopDictation(): void;
|
|
1833
1833
|
};
|
|
1834
1834
|
//#endregion
|
|
1835
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1835
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/client/types/Part.d.ts
|
|
1836
1836
|
type MessagePartClientState = (ThreadUserMessagePart | ThreadAssistantMessagePart) & {
|
|
1837
1837
|
readonly status: MessagePartStatus | ToolCallMessagePartStatus;
|
|
1838
1838
|
};
|
|
@@ -1853,7 +1853,7 @@ type MessagePartClientApi = {
|
|
|
1853
1853
|
resumeToolCall(payload: unknown): void;
|
|
1854
1854
|
};
|
|
1855
1855
|
//#endregion
|
|
1856
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1856
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/client/types/Message.d.ts
|
|
1857
1857
|
type MessageClientState = ThreadMessage & {
|
|
1858
1858
|
readonly parentId: string | null;
|
|
1859
1859
|
readonly isLast: boolean;
|
|
@@ -1927,7 +1927,7 @@ type MessageClientApi = {
|
|
|
1927
1927
|
setIsHovering(value: boolean): void;
|
|
1928
1928
|
};
|
|
1929
1929
|
//#endregion
|
|
1930
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1930
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/client/types/ThreadListItem.d.ts
|
|
1931
1931
|
type ThreadListItemClientState = {
|
|
1932
1932
|
readonly id: string;
|
|
1933
1933
|
readonly remoteId: string | undefined;
|
|
@@ -1950,7 +1950,7 @@ type ThreadListItemClientApi = {
|
|
|
1950
1950
|
detach(): void;
|
|
1951
1951
|
};
|
|
1952
1952
|
//#endregion
|
|
1953
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
1953
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/client/types/Thread.d.ts
|
|
1954
1954
|
type ThreadClientState = {
|
|
1955
1955
|
/**
|
|
1956
1956
|
* Whether the thread is empty. A thread is considered empty when it has no messages and is not loading.
|
|
@@ -2061,7 +2061,7 @@ type ThreadClientApi = {
|
|
|
2061
2061
|
stopVoice(): Promise<void>;
|
|
2062
2062
|
};
|
|
2063
2063
|
//#endregion
|
|
2064
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
2064
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/client/types/ThreadList.d.ts
|
|
2065
2065
|
type ThreadListClientState = {
|
|
2066
2066
|
readonly mainThreadId: string;
|
|
2067
2067
|
readonly newThreadId: string | null;
|
|
@@ -2084,7 +2084,7 @@ type ThreadListClientApi = {
|
|
|
2084
2084
|
thread(selector: "main"): ThreadClientApi;
|
|
2085
2085
|
};
|
|
2086
2086
|
//#endregion
|
|
2087
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
2087
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/client/types/ModelContext.d.ts
|
|
2088
2088
|
type ModelContextState = {};
|
|
2089
2089
|
type ModelContextApi = ModelContextProvider & {
|
|
2090
2090
|
getState(): ModelContextState;
|
|
@@ -2095,7 +2095,7 @@ type ModelContextMeta = {
|
|
|
2095
2095
|
query: Record<string, never>;
|
|
2096
2096
|
};
|
|
2097
2097
|
//#endregion
|
|
2098
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
2098
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/context/react/AssistantApiContext.d.ts
|
|
2099
2099
|
type AssistantApiField<TApi, TMeta extends {
|
|
2100
2100
|
source: string | null;
|
|
2101
2101
|
query: any;
|
|
@@ -2168,7 +2168,7 @@ type AssistantApi = {
|
|
|
2168
2168
|
on<TEvent extends AssistantEvent>(event: AssistantEventSelector<TEvent>, callback: AssistantEventCallback<TEvent>): Unsubscribe;
|
|
2169
2169
|
};
|
|
2170
2170
|
//#endregion
|
|
2171
|
-
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@
|
|
2171
|
+
//#region ../../node_modules/.pnpm/@assistant-ui+react@0.11.58_@types+react-dom@19.1.6_@types+react@19.1.8__@types+react@1_208388ea9c15e4b1ade4e38a87aab050/node_modules/@assistant-ui/react/dist/devtools/DevToolsHooks.d.ts
|
|
2172
2172
|
interface EventLog {
|
|
2173
2173
|
time: Date;
|
|
2174
2174
|
event: string;
|