@copilotkit/react-core 1.52.0-next.7 → 1.52.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/index.umd.js CHANGED
@@ -3658,11 +3658,11 @@ react_markdown = __toESM(react_markdown);
3658
3658
  };
3659
3659
  }
3660
3660
  function useLangGraphInterrupt(action, _dependencies) {
3661
- var _existingConfig$agent;
3661
+ var _ref, _action$agentId;
3662
3662
  const actionRef = (0, react.useRef)(action);
3663
3663
  actionRef.current = action;
3664
3664
  const existingConfig = (0, _copilotkitnext_react.useCopilotChatConfiguration)();
3665
- const resolvedAgentId = (_existingConfig$agent = existingConfig === null || existingConfig === void 0 ? void 0 : existingConfig.agentId) !== null && _existingConfig$agent !== void 0 ? _existingConfig$agent : "default";
3665
+ const resolvedAgentId = (_ref = (_action$agentId = action.agentId) !== null && _action$agentId !== void 0 ? _action$agentId : existingConfig === null || existingConfig === void 0 ? void 0 : existingConfig.agentId) !== null && _ref !== void 0 ? _ref : "default";
3666
3666
  const threadId = existingConfig === null || existingConfig === void 0 ? void 0 : existingConfig.threadId;
3667
3667
  const nodeName = useAgentNodeName(resolvedAgentId);
3668
3668
  const metadataRef = (0, react.useRef)({