@copilotkit/react-core 1.10.5-next.0 → 1.10.5-next.10
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/CHANGELOG.md +74 -0
- package/dist/{chunk-6INCKUL6.mjs → chunk-3N4MVKFZ.mjs} +32 -18
- package/dist/chunk-3N4MVKFZ.mjs.map +1 -0
- package/dist/{chunk-CLQLVMW4.mjs → chunk-3WUDRJTT.mjs} +2 -2
- package/dist/{chunk-AGP7SAEE.mjs → chunk-7LTRT3IV.mjs} +4 -4
- package/dist/{chunk-CXDK6XA5.mjs → chunk-BBUQMG45.mjs} +2 -2
- package/dist/{chunk-G2GQX4FI.mjs → chunk-CUWOXXM5.mjs} +3 -3
- package/dist/{chunk-YHT6CWIY.mjs → chunk-EUX2P2E7.mjs} +5 -3
- package/dist/{chunk-YHT6CWIY.mjs.map → chunk-EUX2P2E7.mjs.map} +1 -1
- package/dist/{chunk-4JBVPOHK.mjs → chunk-GIGUZ2OK.mjs} +3 -3
- package/dist/{chunk-36FJAVOF.mjs → chunk-HDOG2RTM.mjs} +2 -2
- package/dist/{chunk-AR7HJPGU.mjs → chunk-HI6SPUOX.mjs} +2 -2
- package/dist/{chunk-FCRODLLL.mjs → chunk-HYJUBYMU.mjs} +5 -5
- package/dist/{chunk-7D4OASUM.mjs → chunk-IHV5PTID.mjs} +2 -2
- package/dist/{chunk-7LZXD5RJ.mjs → chunk-ITDKIB5E.mjs} +30 -23
- package/dist/chunk-ITDKIB5E.mjs.map +1 -0
- package/dist/{chunk-KA3NCZEJ.mjs → chunk-JBACWIFW.mjs} +2 -2
- package/dist/{chunk-HHLBUGRA.mjs → chunk-JCHRWCYH.mjs} +3 -3
- package/dist/{chunk-NALRM7KT.mjs → chunk-L5MS4UDD.mjs} +11 -5
- package/dist/chunk-L5MS4UDD.mjs.map +1 -0
- package/dist/{chunk-MY2BUA6F.mjs → chunk-M37URBJS.mjs} +2 -2
- package/dist/{chunk-MZ37BAAE.mjs → chunk-MGWRDFBE.mjs} +2 -2
- package/dist/{chunk-23SOG4FI.mjs → chunk-TUTNHDM3.mjs} +2 -2
- package/dist/{chunk-QF3Q5LUN.mjs → chunk-ZVOLWJCY.mjs} +5 -5
- package/dist/chunk-ZVOLWJCY.mjs.map +1 -0
- package/dist/components/copilot-provider/copilot-messages.js +4 -2
- package/dist/components/copilot-provider/copilot-messages.js.map +1 -1
- package/dist/components/copilot-provider/copilot-messages.mjs +2 -2
- package/dist/components/copilot-provider/copilotkit-props.d.ts +1 -1
- package/dist/components/copilot-provider/copilotkit.d.ts +1 -1
- package/dist/components/copilot-provider/copilotkit.js +30 -21
- package/dist/components/copilot-provider/copilotkit.js.map +1 -1
- package/dist/components/copilot-provider/copilotkit.mjs +5 -5
- package/dist/components/copilot-provider/index.d.ts +1 -1
- package/dist/components/copilot-provider/index.js +30 -21
- package/dist/components/copilot-provider/index.js.map +1 -1
- package/dist/components/copilot-provider/index.mjs +5 -5
- package/dist/components/dev-console/console-trigger.js +4 -2
- package/dist/components/dev-console/console-trigger.js.map +1 -1
- package/dist/components/dev-console/console-trigger.mjs +3 -3
- package/dist/components/dev-console/developer-console-modal.js +4 -2
- package/dist/components/dev-console/developer-console-modal.js.map +1 -1
- package/dist/components/dev-console/developer-console-modal.mjs +2 -2
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +30 -21
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +5 -5
- package/dist/context/copilot-context.d.ts +1 -1
- package/dist/context/copilot-context.js +4 -2
- package/dist/context/copilot-context.js.map +1 -1
- package/dist/context/copilot-context.mjs +1 -1
- package/dist/context/copilot-messages-context.d.ts +2 -2
- package/dist/context/index.d.ts +2 -2
- package/dist/context/index.js +4 -2
- package/dist/context/index.js.map +1 -1
- package/dist/context/index.mjs +1 -1
- package/dist/{copilot-context-59740e82.d.ts → copilot-context-cf9de848.d.ts} +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +44 -22
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +18 -18
- package/dist/hooks/use-chat.d.ts +1 -1
- package/dist/hooks/use-chat.js +33 -17
- package/dist/hooks/use-chat.js.map +1 -1
- package/dist/hooks/use-chat.mjs +2 -2
- package/dist/hooks/use-coagent-state-render.js +4 -2
- package/dist/hooks/use-coagent-state-render.js.map +1 -1
- package/dist/hooks/use-coagent-state-render.mjs +2 -2
- package/dist/hooks/use-coagent.d.ts +1 -1
- package/dist/hooks/use-coagent.js +36 -20
- package/dist/hooks/use-coagent.js.map +1 -1
- package/dist/hooks/use-coagent.mjs +9 -9
- package/dist/hooks/use-copilot-action.js +4 -2
- package/dist/hooks/use-copilot-action.js.map +1 -1
- package/dist/hooks/use-copilot-action.mjs +2 -2
- package/dist/hooks/use-copilot-additional-instructions.js +4 -2
- package/dist/hooks/use-copilot-additional-instructions.js.map +1 -1
- package/dist/hooks/use-copilot-additional-instructions.mjs +2 -2
- package/dist/hooks/use-copilot-authenticated-action.js +4 -2
- package/dist/hooks/use-copilot-authenticated-action.js.map +1 -1
- package/dist/hooks/use-copilot-authenticated-action.mjs +3 -3
- package/dist/hooks/use-copilot-chat-headless_c.d.ts +2 -2
- package/dist/hooks/use-copilot-chat-headless_c.js +36 -20
- package/dist/hooks/use-copilot-chat-headless_c.js.map +1 -1
- package/dist/hooks/use-copilot-chat-headless_c.mjs +9 -9
- package/dist/hooks/use-copilot-chat.d.ts +2 -2
- package/dist/hooks/use-copilot-chat.js +36 -20
- package/dist/hooks/use-copilot-chat.js.map +1 -1
- package/dist/hooks/use-copilot-chat.mjs +9 -9
- package/dist/hooks/use-copilot-chat_internal.d.ts +2 -2
- package/dist/hooks/use-copilot-chat_internal.js +36 -20
- package/dist/hooks/use-copilot-chat_internal.js.map +1 -1
- package/dist/hooks/use-copilot-chat_internal.mjs +8 -8
- package/dist/hooks/use-copilot-readable.js +4 -2
- package/dist/hooks/use-copilot-readable.js.map +1 -1
- package/dist/hooks/use-copilot-readable.mjs +2 -2
- package/dist/hooks/use-langgraph-interrupt-render.js +7 -5
- package/dist/hooks/use-langgraph-interrupt-render.js.map +1 -1
- package/dist/hooks/use-langgraph-interrupt-render.mjs +2 -2
- package/dist/hooks/use-langgraph-interrupt.d.ts +1 -1
- package/dist/hooks/use-langgraph-interrupt.js +44 -22
- package/dist/hooks/use-langgraph-interrupt.js.map +1 -1
- package/dist/hooks/use-langgraph-interrupt.mjs +9 -9
- package/dist/hooks/use-make-copilot-document-readable.js +4 -2
- package/dist/hooks/use-make-copilot-document-readable.js.map +1 -1
- package/dist/hooks/use-make-copilot-document-readable.mjs +2 -2
- package/dist/{index-d1743abe.d.ts → index-1f5b66ac.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +70 -41
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -19
- package/dist/lib/copilot-task.d.ts +1 -1
- package/dist/lib/copilot-task.js.map +1 -1
- package/dist/lib/copilot-task.mjs +6 -6
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +6 -6
- package/dist/types/interrupt-action.d.ts +1 -1
- package/dist/types/interrupt-action.js.map +1 -1
- package/dist/utils/extract.d.ts +2 -2
- package/dist/utils/extract.js.map +1 -1
- package/dist/utils/extract.mjs +5 -5
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +5 -5
- package/dist/utils/suggestions.d.ts +2 -2
- package/dist/utils/suggestions.js.map +1 -1
- package/dist/utils/suggestions.mjs +5 -5
- package/package.json +3 -3
- package/src/components/copilot-provider/copilotkit.tsx +27 -17
- package/src/context/copilot-context.tsx +3 -3
- package/src/hooks/use-chat.ts +27 -11
- package/src/hooks/use-langgraph-interrupt-render.ts +4 -3
- package/src/hooks/use-langgraph-interrupt.ts +8 -3
- package/src/types/interrupt-action.ts +4 -1
- package/dist/chunk-6INCKUL6.mjs.map +0 -1
- package/dist/chunk-7LZXD5RJ.mjs.map +0 -1
- package/dist/chunk-NALRM7KT.mjs.map +0 -1
- package/dist/chunk-QF3Q5LUN.mjs.map +0 -1
- /package/dist/{chunk-CLQLVMW4.mjs.map → chunk-3WUDRJTT.mjs.map} +0 -0
- /package/dist/{chunk-AGP7SAEE.mjs.map → chunk-7LTRT3IV.mjs.map} +0 -0
- /package/dist/{chunk-CXDK6XA5.mjs.map → chunk-BBUQMG45.mjs.map} +0 -0
- /package/dist/{chunk-G2GQX4FI.mjs.map → chunk-CUWOXXM5.mjs.map} +0 -0
- /package/dist/{chunk-4JBVPOHK.mjs.map → chunk-GIGUZ2OK.mjs.map} +0 -0
- /package/dist/{chunk-36FJAVOF.mjs.map → chunk-HDOG2RTM.mjs.map} +0 -0
- /package/dist/{chunk-AR7HJPGU.mjs.map → chunk-HI6SPUOX.mjs.map} +0 -0
- /package/dist/{chunk-FCRODLLL.mjs.map → chunk-HYJUBYMU.mjs.map} +0 -0
- /package/dist/{chunk-7D4OASUM.mjs.map → chunk-IHV5PTID.mjs.map} +0 -0
- /package/dist/{chunk-KA3NCZEJ.mjs.map → chunk-JBACWIFW.mjs.map} +0 -0
- /package/dist/{chunk-HHLBUGRA.mjs.map → chunk-JCHRWCYH.mjs.map} +0 -0
- /package/dist/{chunk-MY2BUA6F.mjs.map → chunk-M37URBJS.mjs.map} +0 -0
- /package/dist/{chunk-MZ37BAAE.mjs.map → chunk-MGWRDFBE.mjs.map} +0 -0
- /package/dist/{chunk-23SOG4FI.mjs.map → chunk-TUTNHDM3.mjs.map} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCopilotChat
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-JBACWIFW.mjs";
|
|
4
|
+
import "../chunk-HYJUBYMU.mjs";
|
|
5
|
+
import "../chunk-ZVOLWJCY.mjs";
|
|
6
6
|
import "../chunk-YPSGKPDA.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-ITDKIB5E.mjs";
|
|
8
8
|
import "../chunk-L3I57GMV.mjs";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-M37URBJS.mjs";
|
|
10
|
+
import "../chunk-CUWOXXM5.mjs";
|
|
11
|
+
import "../chunk-TUTNHDM3.mjs";
|
|
12
12
|
import "../chunk-PIF5KJYI.mjs";
|
|
13
13
|
import "../chunk-2IDV5OHF.mjs";
|
|
14
14
|
import "../chunk-PMAFHQ7P.mjs";
|
|
@@ -16,13 +16,13 @@ import "../chunk-5FHSUKQL.mjs";
|
|
|
16
16
|
import "../chunk-RKTVJRK7.mjs";
|
|
17
17
|
import "../chunk-ZLQVRPDS.mjs";
|
|
18
18
|
import "../chunk-6ZLPNY7X.mjs";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-3N4MVKFZ.mjs";
|
|
20
20
|
import "../chunk-4CEQJ2X6.mjs";
|
|
21
21
|
import "../chunk-N4WEHORG.mjs";
|
|
22
22
|
import "../chunk-O7ARI5CV.mjs";
|
|
23
23
|
import "../chunk-Q3MCVRO3.mjs";
|
|
24
24
|
import "../chunk-ICIK2BSB.mjs";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-EUX2P2E7.mjs";
|
|
26
26
|
import "../chunk-EFL5OBKN.mjs";
|
|
27
27
|
import "../chunk-SKC7AJIV.mjs";
|
|
28
28
|
export {
|
|
@@ -2,9 +2,9 @@ import { SystemMessageFunction } from '../types/system-message.js';
|
|
|
2
2
|
import { Message as Message$1 } from '@copilotkit/runtime-client-gql';
|
|
3
3
|
import { Message } from '@copilotkit/shared';
|
|
4
4
|
import { AppendMessageOptions } from './use-chat.js';
|
|
5
|
-
import { S as SuggestionItem } from '../index-
|
|
5
|
+
import { S as SuggestionItem } from '../index-1f5b66ac.js';
|
|
6
6
|
import 'react';
|
|
7
|
-
import '../copilot-context-
|
|
7
|
+
import '../copilot-context-cf9de848.js';
|
|
8
8
|
import '../types/frontend-action.js';
|
|
9
9
|
import './use-tree.js';
|
|
10
10
|
import '../types/document-pointer.js';
|
|
@@ -157,8 +157,10 @@ var emptyCopilotContext = {
|
|
|
157
157
|
setExtensions: () => {
|
|
158
158
|
},
|
|
159
159
|
langGraphInterruptAction: null,
|
|
160
|
-
setLangGraphInterruptAction: () =>
|
|
161
|
-
|
|
160
|
+
setLangGraphInterruptAction: () => {
|
|
161
|
+
},
|
|
162
|
+
removeLangGraphInterruptAction: () => {
|
|
163
|
+
},
|
|
162
164
|
onError: () => {
|
|
163
165
|
},
|
|
164
166
|
bannerError: null,
|
|
@@ -531,7 +533,18 @@ function useChat(options) {
|
|
|
531
533
|
const runChatCompletionRef = (0, import_react6.useRef)();
|
|
532
534
|
const addErrorToast = useErrorToast();
|
|
533
535
|
const { setBannerError } = useToast();
|
|
534
|
-
const { onError } = useCopilotContext();
|
|
536
|
+
const { onError, showDevConsole, getAllContext } = useCopilotContext();
|
|
537
|
+
const copilotReadableContext = getAllContext();
|
|
538
|
+
const context = (0, import_react6.useMemo)(
|
|
539
|
+
() => copilotReadableContext.map((contextItem) => {
|
|
540
|
+
const [description, ...valueParts] = contextItem.value.split(":");
|
|
541
|
+
return {
|
|
542
|
+
description: description.trim(),
|
|
543
|
+
value: valueParts.join(":").trim()
|
|
544
|
+
};
|
|
545
|
+
}),
|
|
546
|
+
[copilotReadableContext]
|
|
547
|
+
);
|
|
535
548
|
const traceUIError = (error, originalError) => __async(this, null, function* () {
|
|
536
549
|
try {
|
|
537
550
|
const traceEvent = {
|
|
@@ -565,7 +578,6 @@ function useChat(options) {
|
|
|
565
578
|
extensionsRef.current = extensions;
|
|
566
579
|
const publicApiKey = copilotConfig.publicApiKey;
|
|
567
580
|
const headers = __spreadValues(__spreadValues({}, copilotConfig.headers || {}), publicApiKey ? { [import_shared4.COPILOT_CLOUD_PUBLIC_API_KEY_HEADER]: publicApiKey } : {});
|
|
568
|
-
const { showDevConsole } = useCopilotContext();
|
|
569
581
|
const runtimeClient = useCopilotRuntimeClient({
|
|
570
582
|
url: copilotConfig.chatApiEndpoint,
|
|
571
583
|
publicApiKey: copilotConfig.publicApiKey,
|
|
@@ -646,7 +658,8 @@ function useChat(options) {
|
|
|
646
658
|
}
|
|
647
659
|
return stateObject;
|
|
648
660
|
}),
|
|
649
|
-
forwardedParameters: options.forwardedParameters || {}
|
|
661
|
+
forwardedParameters: options.forwardedParameters || {},
|
|
662
|
+
context
|
|
650
663
|
}),
|
|
651
664
|
properties: finalProperties,
|
|
652
665
|
signal: (_e = chatAbortControllerRef.current) == null ? void 0 : _e.signal
|
|
@@ -690,7 +703,7 @@ function useChat(options) {
|
|
|
690
703
|
if (ev.name === import_runtime_client_gql3.MetaEventName.LangGraphInterruptEvent) {
|
|
691
704
|
let eventValue = (0, import_runtime_client_gql3.langGraphInterruptEvent)(ev).value;
|
|
692
705
|
eventValue = (0, import_shared4.parseJson)(eventValue, eventValue);
|
|
693
|
-
setLangGraphInterruptAction({
|
|
706
|
+
setLangGraphInterruptAction(threadId, {
|
|
694
707
|
event: __spreadProps(__spreadValues({}, (0, import_runtime_client_gql3.langGraphInterruptEvent)(ev)), {
|
|
695
708
|
value: eventValue
|
|
696
709
|
})
|
|
@@ -753,7 +766,7 @@ function useChat(options) {
|
|
|
753
766
|
preservedStructure: !!originalCode
|
|
754
767
|
});
|
|
755
768
|
setIsLoading(false);
|
|
756
|
-
|
|
769
|
+
throw new Error(structuredError.message);
|
|
757
770
|
} else if (messages2.length > 0) {
|
|
758
771
|
newMessages = [...messages2];
|
|
759
772
|
for (const message of messages2) {
|
|
@@ -874,8 +887,8 @@ function useChat(options) {
|
|
|
874
887
|
}
|
|
875
888
|
const currentResultMessagePairedFeAction = message.isResultMessage() ? getPairedFeAction(actions, message) : null;
|
|
876
889
|
if (action && message.isActionExecutionMessage()) {
|
|
877
|
-
const
|
|
878
|
-
const alreadyProcessed =
|
|
890
|
+
const pairedFeAction = getPairedFeAction(actions, message);
|
|
891
|
+
const alreadyProcessed = !pairedFeAction && finalMessages.some(
|
|
879
892
|
(fm) => fm.isResultMessage() && fm.actionExecutionId === message.id
|
|
880
893
|
);
|
|
881
894
|
if (alreadyProcessed) {
|
|
@@ -884,16 +897,16 @@ function useChat(options) {
|
|
|
884
897
|
action,
|
|
885
898
|
message
|
|
886
899
|
);
|
|
887
|
-
const
|
|
888
|
-
if (
|
|
900
|
+
const pairedFeAction2 = getPairedFeAction(actions, resultMessage);
|
|
901
|
+
if (pairedFeAction2) {
|
|
889
902
|
const newExecutionMessage = new import_runtime_client_gql3.ActionExecutionMessage({
|
|
890
|
-
name:
|
|
903
|
+
name: pairedFeAction2.name,
|
|
891
904
|
arguments: (0, import_shared4.parseJson)(resultMessage.result, resultMessage.result),
|
|
892
905
|
status: message.status,
|
|
893
906
|
createdAt: message.createdAt,
|
|
894
907
|
parentMessageId: message.parentMessageId
|
|
895
908
|
});
|
|
896
|
-
yield executeActionFromMessage(
|
|
909
|
+
yield executeActionFromMessage(pairedFeAction2, newExecutionMessage);
|
|
897
910
|
}
|
|
898
911
|
}
|
|
899
912
|
} else if (message.isResultMessage() && currentResultMessagePairedFeAction) {
|
|
@@ -958,7 +971,8 @@ function useChat(options) {
|
|
|
958
971
|
coagentStatesRef,
|
|
959
972
|
agentSession,
|
|
960
973
|
setAgentSession,
|
|
961
|
-
disableSystemMessage
|
|
974
|
+
disableSystemMessage,
|
|
975
|
+
context
|
|
962
976
|
]
|
|
963
977
|
);
|
|
964
978
|
runChatCompletionRef.current = runChatCompletion;
|
|
@@ -987,7 +1001,7 @@ function useChat(options) {
|
|
|
987
1001
|
switch (event.name) {
|
|
988
1002
|
case import_runtime_client_gql3.MetaEventName.LangGraphInterruptEvent:
|
|
989
1003
|
if (event.response) {
|
|
990
|
-
setLangGraphInterruptAction(null);
|
|
1004
|
+
setLangGraphInterruptAction(threadId, null);
|
|
991
1005
|
const value = event.value;
|
|
992
1006
|
return [
|
|
993
1007
|
...acc,
|
|
@@ -1037,8 +1051,8 @@ function useChat(options) {
|
|
|
1037
1051
|
console.warn(`Regenerate cannot be performed on ${reloadMessageRole} role`);
|
|
1038
1052
|
return;
|
|
1039
1053
|
}
|
|
1040
|
-
let historyCutoff = [];
|
|
1041
|
-
if (messages.length > 2) {
|
|
1054
|
+
let historyCutoff = [messages[0]];
|
|
1055
|
+
if (messages.length > 2 && reloadMessageIndex !== 0) {
|
|
1042
1056
|
const lastUserMessageBeforeRegenerate = messages.slice(0, reloadMessageIndex).reverse().find(
|
|
1043
1057
|
(msg) => (
|
|
1044
1058
|
// @ts-expect-error -- message has role
|
|
@@ -1049,6 +1063,8 @@ function useChat(options) {
|
|
|
1049
1063
|
(msg) => msg.id === lastUserMessageBeforeRegenerate.id
|
|
1050
1064
|
);
|
|
1051
1065
|
historyCutoff = messages.slice(0, indexOfLastUserMessageBeforeRegenerate + 1);
|
|
1066
|
+
} else if (messages.length > 2 && reloadMessageIndex === 0) {
|
|
1067
|
+
historyCutoff = [messages[0], messages[1]];
|
|
1052
1068
|
}
|
|
1053
1069
|
setMessages(historyCutoff);
|
|
1054
1070
|
return runChatCompletionAndHandleFunctionCall(historyCutoff);
|
|
@@ -1441,16 +1457,16 @@ var InterruptRenderer = ({ event, result, render, resolve }) => {
|
|
|
1441
1457
|
return render({ event, result, resolve });
|
|
1442
1458
|
};
|
|
1443
1459
|
function useLangGraphInterruptRender() {
|
|
1444
|
-
const { langGraphInterruptAction, setLangGraphInterruptAction, agentSession } = useCopilotContext();
|
|
1460
|
+
const { langGraphInterruptAction, setLangGraphInterruptAction, agentSession, threadId } = useCopilotContext();
|
|
1445
1461
|
const responseRef = import_react8.default.useRef();
|
|
1446
1462
|
const resolveInterrupt = (0, import_react8.useCallback)(
|
|
1447
1463
|
(response) => {
|
|
1448
1464
|
responseRef.current = response;
|
|
1449
1465
|
setTimeout(() => {
|
|
1450
|
-
setLangGraphInterruptAction({ event: { response } });
|
|
1466
|
+
setLangGraphInterruptAction(threadId, { event: { response } });
|
|
1451
1467
|
}, 0);
|
|
1452
1468
|
},
|
|
1453
|
-
[setLangGraphInterruptAction]
|
|
1469
|
+
[setLangGraphInterruptAction, threadId]
|
|
1454
1470
|
);
|
|
1455
1471
|
if (!langGraphInterruptAction || !langGraphInterruptAction.event || !langGraphInterruptAction.render)
|
|
1456
1472
|
return null;
|