@assistant-ui/react 0.5.86 → 0.5.88
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{chunk-C6UZOY5A.js → chunk-75WIGDCW.js} +2 -3
- package/dist/chunk-75WIGDCW.js.map +1 -0
- package/dist/{chunk-TWIMAOZR.mjs → chunk-CKNRD26B.mjs} +2 -3
- package/dist/chunk-CKNRD26B.mjs.map +1 -0
- package/dist/edge.js +1 -2
- package/dist/edge.js.map +1 -1
- package/dist/edge.mjs +1 -2
- package/dist/edge.mjs.map +1 -1
- package/dist/index.d.mts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.js +81 -80
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +60 -59
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-C6UZOY5A.js.map +0 -1
- package/dist/chunk-TWIMAOZR.mjs.map +0 -1
package/dist/index.js
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
|
12
|
-
var
|
12
|
+
var _chunk75WIGDCWjs = require('./chunk-75WIGDCW.js');
|
13
13
|
|
14
14
|
|
15
15
|
var _chunkPZ5AY32Cjs = require('./chunk-PZ5AY32C.js');
|
@@ -436,6 +436,62 @@ function useComposerRuntime(options) {
|
|
436
436
|
return messageRuntime ? messageRuntime.composer : _nullishCoalesce(_optionalChain([threadRuntime, 'optionalAccess', _9 => _9.composer]), () => ( null));
|
437
437
|
}
|
438
438
|
|
439
|
+
// src/context/react/AttachmentContext.ts
|
440
|
+
|
441
|
+
var AttachmentContext = _react.createContext.call(void 0,
|
442
|
+
null
|
443
|
+
);
|
444
|
+
function useAttachmentContext(options) {
|
445
|
+
const context = _react.useContext.call(void 0, AttachmentContext);
|
446
|
+
if (!_optionalChain([options, 'optionalAccess', _10 => _10.optional]) && !context)
|
447
|
+
throw new Error(
|
448
|
+
"This component must be used within a ComposerPrimitive.Attachments or MessagePrimitive.Attachments component."
|
449
|
+
);
|
450
|
+
return context;
|
451
|
+
}
|
452
|
+
function useThreadComposerAttachmentContext(options) {
|
453
|
+
const context = useAttachmentContext(options);
|
454
|
+
if (!context) return null;
|
455
|
+
if (context.source !== "thread-composer")
|
456
|
+
throw new Error(
|
457
|
+
"This component must be used within a thread's ComposerPrimitive.Attachments component."
|
458
|
+
);
|
459
|
+
return context;
|
460
|
+
}
|
461
|
+
function useEditComposerAttachmentContext(options) {
|
462
|
+
const context = useAttachmentContext(options);
|
463
|
+
if (!context) return null;
|
464
|
+
if (context.source !== "edit-composer")
|
465
|
+
throw new Error(
|
466
|
+
"This component must be used within a messages's ComposerPrimitive.Attachments component."
|
467
|
+
);
|
468
|
+
return context;
|
469
|
+
}
|
470
|
+
function useMessageAttachmentContext(options) {
|
471
|
+
const context = useAttachmentContext(options);
|
472
|
+
if (!context) return null;
|
473
|
+
if (context.source !== "message")
|
474
|
+
throw new Error(
|
475
|
+
"This component must be used within a MessagePrimitive.Attachments component."
|
476
|
+
);
|
477
|
+
return context;
|
478
|
+
}
|
479
|
+
function useAttachmentRuntime(options) {
|
480
|
+
const attachmentRuntime = useAttachmentContext(options);
|
481
|
+
if (!attachmentRuntime) return null;
|
482
|
+
return attachmentRuntime.useAttachmentRuntime();
|
483
|
+
}
|
484
|
+
var { useAttachment } = createContextStoreHook(
|
485
|
+
useAttachmentContext,
|
486
|
+
"useAttachment"
|
487
|
+
);
|
488
|
+
var { useAttachment: useThreadComposerAttachment } = createContextStoreHook(useThreadComposerAttachmentContext, "useAttachment");
|
489
|
+
var { useAttachment: useEditComposerAttachment } = createContextStoreHook(useEditComposerAttachmentContext, "useAttachment");
|
490
|
+
var { useAttachment: useMessageAttachment } = createContextStoreHook(
|
491
|
+
useMessageAttachmentContext,
|
492
|
+
"useAttachment"
|
493
|
+
);
|
494
|
+
|
439
495
|
// src/hooks/useAppendMessage.tsx
|
440
496
|
|
441
497
|
var useAppendMessage = () => {
|
@@ -497,7 +553,7 @@ var useAssistantToolUI = (tool) => {
|
|
497
553
|
_react.useEffect.call(void 0, () => {
|
498
554
|
if (!tool) return;
|
499
555
|
return toolUIsStore.getState().setToolUI(tool.toolName, tool.render);
|
500
|
-
}, [toolUIsStore, _optionalChain([tool, 'optionalAccess',
|
556
|
+
}, [toolUIsStore, _optionalChain([tool, 'optionalAccess', _11 => _11.toolName]), _optionalChain([tool, 'optionalAccess', _12 => _12.render])]);
|
501
557
|
};
|
502
558
|
|
503
559
|
// src/model-config/makeAssistantToolUI.tsx
|
@@ -750,7 +806,7 @@ var useComposerAddAttachment = () => {
|
|
750
806
|
input.accept = attachmentAccept;
|
751
807
|
}
|
752
808
|
input.onchange = (e) => {
|
753
|
-
const file = _optionalChain([e, 'access',
|
809
|
+
const file = _optionalChain([e, 'access', _13 => _13.target, 'access', _14 => _14.files, 'optionalAccess', _15 => _15[0]]);
|
754
810
|
if (!file) return;
|
755
811
|
composerRuntime.addAttachment(file);
|
756
812
|
};
|
@@ -826,7 +882,7 @@ var useMessageIf = (props) => {
|
|
826
882
|
return false;
|
827
883
|
if (props.hasContent === true && content.length === 0) return false;
|
828
884
|
if (props.hasContent === false && content.length > 0) return false;
|
829
|
-
if (props.submittedFeedback !== void 0 && (_nullishCoalesce(_optionalChain([submittedFeedback, 'optionalAccess',
|
885
|
+
if (props.submittedFeedback !== void 0 && (_nullishCoalesce(_optionalChain([submittedFeedback, 'optionalAccess', _16 => _16.type]), () => ( null))) !== props.submittedFeedback)
|
830
886
|
return false;
|
831
887
|
return true;
|
832
888
|
}
|
@@ -960,7 +1016,7 @@ var ActionBarPrimitiveCopy = _react.forwardRef.call(void 0, ({ copiedDuration, o
|
|
960
1016
|
ref: forwardedRef,
|
961
1017
|
disabled: disabled || !callback,
|
962
1018
|
onClick: _primitive.composeEventHandlers.call(void 0, onClick, () => {
|
963
|
-
_optionalChain([callback, 'optionalCall',
|
1019
|
+
_optionalChain([callback, 'optionalCall', _17 => _17()]);
|
964
1020
|
})
|
965
1021
|
}
|
966
1022
|
);
|
@@ -992,7 +1048,7 @@ var createActionButton = (displayName, useActionButton, forwardProps = []) => {
|
|
992
1048
|
ref: forwardedRef,
|
993
1049
|
disabled: primitiveProps.disabled || !callback,
|
994
1050
|
onClick: _primitive.composeEventHandlers.call(void 0, primitiveProps.onClick, () => {
|
995
|
-
_optionalChain([callback, 'optionalCall',
|
1051
|
+
_optionalChain([callback, 'optionalCall', _18 => _18()]);
|
996
1052
|
})
|
997
1053
|
}
|
998
1054
|
);
|
@@ -1041,7 +1097,7 @@ var ActionBarPrimitiveStopSpeaking = _react.forwardRef.call(void 0, (props, ref)
|
|
1041
1097
|
...props,
|
1042
1098
|
ref,
|
1043
1099
|
onClick: _primitive.composeEventHandlers.call(void 0, props.onClick, () => {
|
1044
|
-
_optionalChain([callback, 'optionalCall',
|
1100
|
+
_optionalChain([callback, 'optionalCall', _19 => _19()]);
|
1045
1101
|
})
|
1046
1102
|
}
|
1047
1103
|
);
|
@@ -1055,7 +1111,7 @@ ActionBarPrimitiveStopSpeaking.displayName = "ActionBarPrimitive.StopSpeaking";
|
|
1055
1111
|
|
1056
1112
|
var ActionBarPrimitiveFeedbackPositive = _react.forwardRef.call(void 0, ({ onClick, disabled, ...props }, forwardedRef) => {
|
1057
1113
|
const isSubmitted = useMessage(
|
1058
|
-
(u) => _optionalChain([u, 'access',
|
1114
|
+
(u) => _optionalChain([u, 'access', _20 => _20.submittedFeedback, 'optionalAccess', _21 => _21.type]) === "positive"
|
1059
1115
|
);
|
1060
1116
|
const callback = useActionBarFeedbackPositive();
|
1061
1117
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
@@ -1067,7 +1123,7 @@ var ActionBarPrimitiveFeedbackPositive = _react.forwardRef.call(void 0, ({ onCli
|
|
1067
1123
|
ref: forwardedRef,
|
1068
1124
|
disabled: disabled || !callback,
|
1069
1125
|
onClick: _primitive.composeEventHandlers.call(void 0, onClick, () => {
|
1070
|
-
_optionalChain([callback, 'optionalCall',
|
1126
|
+
_optionalChain([callback, 'optionalCall', _22 => _22()]);
|
1071
1127
|
})
|
1072
1128
|
}
|
1073
1129
|
);
|
@@ -1081,7 +1137,7 @@ ActionBarPrimitiveFeedbackPositive.displayName = "ActionBarPrimitive.FeedbackPos
|
|
1081
1137
|
|
1082
1138
|
var ActionBarPrimitiveFeedbackNegative = _react.forwardRef.call(void 0, ({ onClick, disabled, ...props }, forwardedRef) => {
|
1083
1139
|
const isSubmitted = useMessage(
|
1084
|
-
(u) => _optionalChain([u, 'access',
|
1140
|
+
(u) => _optionalChain([u, 'access', _23 => _23.submittedFeedback, 'optionalAccess', _24 => _24.type]) === "negative"
|
1085
1141
|
);
|
1086
1142
|
const callback = useActionBarFeedbackNegative();
|
1087
1143
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
@@ -1093,7 +1149,7 @@ var ActionBarPrimitiveFeedbackNegative = _react.forwardRef.call(void 0, ({ onCli
|
|
1093
1149
|
ref: forwardedRef,
|
1094
1150
|
disabled: disabled || !callback,
|
1095
1151
|
onClick: _primitive.composeEventHandlers.call(void 0, onClick, () => {
|
1096
|
-
_optionalChain([callback, 'optionalCall',
|
1152
|
+
_optionalChain([callback, 'optionalCall', _25 => _25()]);
|
1097
1153
|
})
|
1098
1154
|
}
|
1099
1155
|
);
|
@@ -1244,64 +1300,6 @@ AttachmentPrimitiveRoot.displayName = "AttachmentPrimitive.Root";
|
|
1244
1300
|
// src/primitives/attachment/AttachmentThumb.tsx
|
1245
1301
|
|
1246
1302
|
|
1247
|
-
// src/context/react/AttachmentContext.ts
|
1248
|
-
|
1249
|
-
var AttachmentContext = _react.createContext.call(void 0,
|
1250
|
-
null
|
1251
|
-
);
|
1252
|
-
function useAttachmentContext(options) {
|
1253
|
-
const context = _react.useContext.call(void 0, AttachmentContext);
|
1254
|
-
if (!_optionalChain([options, 'optionalAccess', _25 => _25.optional]) && !context)
|
1255
|
-
throw new Error(
|
1256
|
-
"This component must be used within a ComposerPrimitive.Attachments or MessagePrimitive.Attachments component."
|
1257
|
-
);
|
1258
|
-
return context;
|
1259
|
-
}
|
1260
|
-
function useThreadComposerAttachmentContext(options) {
|
1261
|
-
const context = useAttachmentContext(options);
|
1262
|
-
if (!context) return null;
|
1263
|
-
if (context.source !== "thread-composer")
|
1264
|
-
throw new Error(
|
1265
|
-
"This component must be used within a thread's ComposerPrimitive.Attachments component."
|
1266
|
-
);
|
1267
|
-
return context;
|
1268
|
-
}
|
1269
|
-
function useEditComposerAttachmentContext(options) {
|
1270
|
-
const context = useAttachmentContext(options);
|
1271
|
-
if (!context) return null;
|
1272
|
-
if (context.source !== "edit-composer")
|
1273
|
-
throw new Error(
|
1274
|
-
"This component must be used within a messages's ComposerPrimitive.Attachments component."
|
1275
|
-
);
|
1276
|
-
return context;
|
1277
|
-
}
|
1278
|
-
function useMessageAttachmentContext(options) {
|
1279
|
-
const context = useAttachmentContext(options);
|
1280
|
-
if (!context) return null;
|
1281
|
-
if (context.source !== "message")
|
1282
|
-
throw new Error(
|
1283
|
-
"This component must be used within a MessagePrimitive.Attachments component."
|
1284
|
-
);
|
1285
|
-
return context;
|
1286
|
-
}
|
1287
|
-
function useAttachmentRuntime(options) {
|
1288
|
-
const attachmentRuntime = useAttachmentContext(options);
|
1289
|
-
if (!attachmentRuntime) return null;
|
1290
|
-
return attachmentRuntime.useAttachmentRuntime();
|
1291
|
-
}
|
1292
|
-
var { useAttachment } = createContextStoreHook(
|
1293
|
-
useAttachmentContext,
|
1294
|
-
"useAttachment"
|
1295
|
-
);
|
1296
|
-
var { useAttachment: useThreadComposerAttachment } = createContextStoreHook(useThreadComposerAttachmentContext, "useAttachment");
|
1297
|
-
var { useAttachment: useEditComposerAttachment } = createContextStoreHook(useEditComposerAttachmentContext, "useAttachment");
|
1298
|
-
var { useAttachment: useMessageAttachment } = createContextStoreHook(
|
1299
|
-
useMessageAttachmentContext,
|
1300
|
-
"useAttachment"
|
1301
|
-
);
|
1302
|
-
|
1303
|
-
// src/primitives/attachment/AttachmentThumb.tsx
|
1304
|
-
|
1305
1303
|
|
1306
1304
|
var AttachmentPrimitiveThumb = _react.forwardRef.call(void 0, (props, ref) => {
|
1307
1305
|
const ext = useAttachment((a) => a.name.split(".").pop());
|
@@ -3066,7 +3064,7 @@ var subscribeToMainThread = (runtime, callback) => {
|
|
3066
3064
|
var ProxyConfigProvider = (_class5 = class {constructor() { _class5.prototype.__init9.call(this);_class5.prototype.__init10.call(this); }
|
3067
3065
|
__init9() {this._providers = /* @__PURE__ */ new Set()}
|
3068
3066
|
getModelConfig() {
|
3069
|
-
return
|
3067
|
+
return _chunk75WIGDCWjs.mergeModelConfigs.call(void 0, this._providers);
|
3070
3068
|
}
|
3071
3069
|
registerModelConfigProvider(provider) {
|
3072
3070
|
this._providers.add(provider);
|
@@ -4089,14 +4087,14 @@ function streamPartDecoderStream() {
|
|
4089
4087
|
controller.enqueue(decodeStreamPart(chunk));
|
4090
4088
|
}
|
4091
4089
|
});
|
4092
|
-
return new (0,
|
4090
|
+
return new (0, _chunk75WIGDCWjs.PipeableTransformStream)((readable) => {
|
4093
4091
|
return readable.pipeThrough(new TextDecoderStream()).pipeThrough(chunkByLineStream()).pipeThrough(decodeStream);
|
4094
4092
|
});
|
4095
4093
|
}
|
4096
4094
|
|
4097
4095
|
// src/runtimes/edge/streams/utils/index.ts
|
4098
4096
|
var streamUtils = {
|
4099
|
-
streamPartEncoderStream:
|
4097
|
+
streamPartEncoderStream: _chunk75WIGDCWjs.streamPartEncoderStream,
|
4100
4098
|
streamPartDecoderStream
|
4101
4099
|
};
|
4102
4100
|
|
@@ -4178,6 +4176,7 @@ function assistantDecoderStream() {
|
|
4178
4176
|
}
|
4179
4177
|
case "9" /* ToolCall */: {
|
4180
4178
|
const { toolCallId, toolName, args } = value;
|
4179
|
+
toolCallNames.set(toolCallId, toolName);
|
4181
4180
|
const argsText = JSON.stringify(args);
|
4182
4181
|
controller.enqueue({
|
4183
4182
|
type: "tool-call-delta",
|
@@ -4241,8 +4240,8 @@ var EdgeChatAdapter = class {
|
|
4241
4240
|
credentials: _nullishCoalesce(this.options.credentials, () => ( "same-origin")),
|
4242
4241
|
body: JSON.stringify({
|
4243
4242
|
system: config.system,
|
4244
|
-
messages:
|
4245
|
-
tools: config.tools ?
|
4243
|
+
messages: _chunk75WIGDCWjs.toCoreMessages.call(void 0, messages2),
|
4244
|
+
tools: config.tools ? _chunk75WIGDCWjs.toLanguageModelTools.call(void 0, config.tools) : [],
|
4246
4245
|
...config.callSettings,
|
4247
4246
|
...config.config,
|
4248
4247
|
...this.options.body
|
@@ -4252,7 +4251,7 @@ var EdgeChatAdapter = class {
|
|
4252
4251
|
if (!result.ok) {
|
4253
4252
|
throw new Error(`Status ${result.status}: ${await result.text()}`);
|
4254
4253
|
}
|
4255
|
-
const stream = result.body.pipeThrough(streamPartDecoderStream()).pipeThrough(assistantDecoderStream()).pipeThrough(
|
4254
|
+
const stream = result.body.pipeThrough(streamPartDecoderStream()).pipeThrough(assistantDecoderStream()).pipeThrough(_chunk75WIGDCWjs.toolResultStream.call(void 0, config.tools, abortSignal)).pipeThrough(_chunk75WIGDCWjs.runResultStream.call(void 0, ));
|
4256
4255
|
let update;
|
4257
4256
|
for await (update of asAsyncIterable(stream)) {
|
4258
4257
|
yield update;
|
@@ -5391,18 +5390,18 @@ var DangerousInBrowserAdapter = class {
|
|
5391
5390
|
this.options = options;
|
5392
5391
|
}
|
5393
5392
|
async *run({ messages: messages2, abortSignal, config }) {
|
5394
|
-
const res = await
|
5393
|
+
const res = await _chunk75WIGDCWjs.getEdgeRuntimeStream.call(void 0, {
|
5395
5394
|
options: this.options,
|
5396
5395
|
abortSignal,
|
5397
5396
|
requestData: {
|
5398
5397
|
system: config.system,
|
5399
|
-
messages:
|
5400
|
-
tools: config.tools ?
|
5398
|
+
messages: _chunk75WIGDCWjs.toCoreMessages.call(void 0, messages2),
|
5399
|
+
tools: config.tools ? _chunk75WIGDCWjs.toLanguageModelTools.call(void 0, config.tools) : [],
|
5401
5400
|
...config.callSettings,
|
5402
5401
|
...config.config
|
5403
5402
|
}
|
5404
5403
|
});
|
5405
|
-
const stream = res.pipeThrough(
|
5404
|
+
const stream = res.pipeThrough(_chunk75WIGDCWjs.toolResultStream.call(void 0, config.tools, abortSignal)).pipeThrough(_chunk75WIGDCWjs.runResultStream.call(void 0, ));
|
5406
5405
|
for await (const update of asAsyncIterable(stream)) {
|
5407
5406
|
yield update;
|
5408
5407
|
}
|
@@ -6785,5 +6784,7 @@ var assistant_modal_default = Object.assign(AssistantModal, exports12);
|
|
6785
6784
|
|
6786
6785
|
|
6787
6786
|
|
6788
|
-
|
6787
|
+
|
6788
|
+
|
6789
|
+
exports.ActionBarPrimitive = actionBar_exports; exports.AssistantActionBar = assistant_action_bar_default; exports.AssistantMessage = assistant_message_default; exports.AssistantModal = assistant_modal_default; exports.AssistantModalPrimitive = assistantModal_exports; exports.AssistantRuntimeProvider = AssistantRuntimeProvider; exports.AttachmentPrimitive = attachment_exports; exports.AttachmentUI = attachment_default; exports.BranchPicker = branch_picker_default; exports.BranchPickerPrimitive = branchPicker_exports; exports.Composer = composer_default; exports.ComposerAttachment = attachment_default; exports.ComposerPrimitive = composer_exports; exports.CompositeAttachmentAdapter = CompositeAttachmentAdapter; exports.ContentPart = content_part_default; exports.ContentPartPrimitive = contentPart_exports; exports.EdgeChatAdapter = EdgeChatAdapter; exports.EditComposer = edit_composer_default; exports.INTERNAL = internal_exports; exports.MessagePrimitive = message_exports; exports.SimpleImageAttachmentAdapter = SimpleImageAttachmentAdapter; exports.SimpleTextAttachmentAdapter = SimpleTextAttachmentAdapter; exports.TextContentPartProvider = TextContentPartProvider; exports.Thread = thread_default; exports.ThreadConfigProvider = ThreadConfigProvider; exports.ThreadPrimitive = thread_exports; exports.ThreadWelcome = thread_welcome_default; exports.UserActionBar = user_action_bar_default; exports.UserMessage = user_message_default; exports.UserMessageAttachment = attachment_default; exports.WebSpeechSynthesisAdapter = WebSpeechSynthesisAdapter; exports.fromCoreMessage = fromCoreMessage; exports.fromCoreMessages = fromCoreMessages; exports.fromLanguageModelMessages = fromLanguageModelMessages; exports.fromLanguageModelTools = fromLanguageModelTools; exports.getExternalStoreMessage = getExternalStoreMessage; exports.makeAssistantTool = makeAssistantTool; exports.makeAssistantToolUI = makeAssistantToolUI; exports.streamUtils = streamUtils; exports.subscribeToMainThread = subscribeToMainThread; exports.toCoreMessage = _chunk75WIGDCWjs.toCoreMessage; exports.toCoreMessages = _chunk75WIGDCWjs.toCoreMessages; exports.toLanguageModelMessages = _chunk75WIGDCWjs.toLanguageModelMessages; exports.toLanguageModelTools = _chunk75WIGDCWjs.toLanguageModelTools; exports.useActionBarCopy = useActionBarCopy; exports.useActionBarEdit = useActionBarEdit; exports.useActionBarFeedbackNegative = useActionBarFeedbackNegative; exports.useActionBarFeedbackPositive = useActionBarFeedbackPositive; exports.useActionBarReload = useActionBarReload; exports.useActionBarSpeak = useActionBarSpeak; exports.useActionBarStopSpeaking = useActionBarStopSpeaking; exports.useAppendMessage = useAppendMessage; exports.useAssistantActions = useAssistantActions; exports.useAssistantActionsStore = useAssistantActionsStore; exports.useAssistantContext = useAssistantContext; exports.useAssistantInstructions = useAssistantInstructions; exports.useAssistantRuntime = useAssistantRuntime; exports.useAssistantRuntimeStore = useAssistantRuntimeStore; exports.useAssistantTool = useAssistantTool; exports.useAssistantToolUI = useAssistantToolUI; exports.useAttachment = useAttachment; exports.useAttachmentRuntime = useAttachmentRuntime; exports.useBranchPickerCount = useBranchPickerCount; exports.useBranchPickerNext = useBranchPickerNext; exports.useBranchPickerNumber = useBranchPickerNumber; exports.useBranchPickerPrevious = useBranchPickerPrevious; exports.useComposer = useComposer; exports.useComposerAddAttachment = useComposerAddAttachment; exports.useComposerCancel = useComposerCancel; exports.useComposerContext = useComposerContext; exports.useComposerIf = useComposerIf; exports.useComposerRuntime = useComposerRuntime; exports.useComposerSend = useComposerSend; exports.useComposerStore = useComposerStore; exports.useContentPart = useContentPart; exports.useContentPartContext = useContentPartContext; exports.useContentPartDisplay = useContentPartDisplay; exports.useContentPartImage = useContentPartImage; exports.useContentPartRuntime = useContentPartRuntime; exports.useContentPartStore = useContentPartStore; exports.useContentPartText = useContentPartText; exports.useDangerousInBrowserRuntime = useDangerousInBrowserRuntime; exports.useEdgeRuntime = useEdgeRuntime; exports.useEditComposer = useEditComposer; exports.useEditComposerStore = useEditComposerStore; exports.useExternalMessageConverter = useExternalMessageConverter; exports.useExternalStoreRuntime = useExternalStoreRuntime; exports.useInlineRender = useInlineRender; exports.useLocalRuntime = useLocalRuntime; exports.useMessage = useMessage; exports.useMessageContext = useMessageContext; exports.useMessageIf = useMessageIf; exports.useMessageRuntime = useMessageRuntime; exports.useMessageStore = useMessageStore; exports.useMessageUtils = useMessageUtils; exports.useMessageUtilsStore = useMessageUtilsStore; exports.useSwitchToNewThread = useSwitchToNewThread; exports.useThread = useThread; exports.useThreadActions = useThreadActions; exports.useThreadActionsStore = useThreadActionsStore; exports.useThreadComposer = useThreadComposer; exports.useThreadComposerStore = useThreadComposerStore; exports.useThreadConfig = useThreadConfig; exports.useThreadContext = useThreadContext; exports.useThreadEmpty = useThreadEmpty; exports.useThreadIf = useThreadIf; exports.useThreadManager = useThreadManager; exports.useThreadMessages = useThreadMessages; exports.useThreadMessagesStore = useThreadMessagesStore; exports.useThreadModelConfig = useThreadModelConfig; exports.useThreadRuntime = useThreadRuntime; exports.useThreadRuntimeStore = useThreadRuntimeStore; exports.useThreadScrollToBottom = useThreadScrollToBottom; exports.useThreadStore = useThreadStore; exports.useThreadSuggestion = useThreadSuggestion; exports.useThreadViewport = useThreadViewport; exports.useThreadViewportStore = useThreadViewportStore; exports.useToolUIs = useToolUIs; exports.useToolUIsStore = useToolUIsStore;
|
6789
6790
|
//# sourceMappingURL=index.js.map
|