@copilotkit/runtime 1.3.16-mme-reset-chat.10 → 1.3.16-mme-reset-chat.11

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +21 -43
  2. package/dist/{chunk-2S6JGN2A.mjs → chunk-NJH4ZBXT.mjs} +2 -2
  3. package/dist/{chunk-TBNMKEWV.mjs → chunk-T2MGJXW2.mjs} +2 -2
  4. package/dist/{chunk-3XICZ4K2.mjs → chunk-XR3QOJ47.mjs} +2 -2
  5. package/dist/{chunk-ODOSADGH.mjs → chunk-YILXJQFD.mjs} +78 -57
  6. package/dist/chunk-YILXJQFD.mjs.map +1 -0
  7. package/dist/{copilot-runtime-b9715bd4.d.ts → copilot-runtime-335a610d.d.ts} +8 -8
  8. package/dist/{groq-adapter-dbfba3eb.d.ts → groq-adapter-2f8fd767.d.ts} +1 -1
  9. package/dist/index.d.ts +3 -3
  10. package/dist/index.js +80 -59
  11. package/dist/index.js.map +1 -1
  12. package/dist/index.mjs +6 -6
  13. package/dist/{langserve-f00629d2.d.ts → langserve-cc06e76e.d.ts} +1 -0
  14. package/dist/lib/index.d.ts +3 -3
  15. package/dist/lib/index.js +80 -59
  16. package/dist/lib/index.js.map +1 -1
  17. package/dist/lib/index.mjs +6 -6
  18. package/dist/lib/integrations/index.d.ts +3 -3
  19. package/dist/lib/integrations/index.js +12 -11
  20. package/dist/lib/integrations/index.js.map +1 -1
  21. package/dist/lib/integrations/index.mjs +4 -4
  22. package/dist/lib/integrations/nest/index.d.ts +2 -2
  23. package/dist/lib/integrations/nest/index.js +12 -11
  24. package/dist/lib/integrations/nest/index.js.map +1 -1
  25. package/dist/lib/integrations/nest/index.mjs +2 -2
  26. package/dist/lib/integrations/node-express/index.d.ts +2 -2
  27. package/dist/lib/integrations/node-express/index.js +12 -11
  28. package/dist/lib/integrations/node-express/index.js.map +1 -1
  29. package/dist/lib/integrations/node-express/index.mjs +2 -2
  30. package/dist/lib/integrations/node-http/index.d.ts +2 -2
  31. package/dist/lib/integrations/node-http/index.js +12 -11
  32. package/dist/lib/integrations/node-http/index.js.map +1 -1
  33. package/dist/lib/integrations/node-http/index.mjs +1 -1
  34. package/dist/service-adapters/index.d.ts +3 -3
  35. package/package.json +4 -4
  36. package/src/agents/langgraph/event-source.ts +2 -2
  37. package/src/lib/runtime/copilot-runtime.ts +40 -33
  38. package/src/lib/runtime/remote-action-constructors.ts +7 -7
  39. package/src/lib/runtime/remote-actions.ts +9 -9
  40. package/src/lib/runtime/{remote-lg-cloud-action.ts → remote-lg-action.ts} +34 -31
  41. package/src/lib/telemetry-client.ts +3 -3
  42. package/src/service-adapters/events.ts +13 -1
  43. package/dist/chunk-ODOSADGH.mjs.map +0 -1
  44. /package/dist/{chunk-2S6JGN2A.mjs.map → chunk-NJH4ZBXT.mjs.map} +0 -0
  45. /package/dist/{chunk-TBNMKEWV.mjs.map → chunk-T2MGJXW2.mjs.map} +0 -0
  46. /package/dist/{chunk-3XICZ4K2.mjs.map → chunk-XR3QOJ47.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -44,7 +44,7 @@ var require_package = __commonJS({
44
44
  publishConfig: {
45
45
  access: "public"
46
46
  },
47
- version: "1.3.16-mme-reset-chat.10",
47
+ version: "1.3.16-mme-reset-chat.11",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -147,14 +147,14 @@ __export(src_exports, {
147
147
  createContext: () => createContext,
148
148
  flattenToolCallsNoDuplicates: () => flattenToolCallsNoDuplicates,
149
149
  getCommonConfig: () => getCommonConfig,
150
- langGraphCloudEndpoint: () => langGraphCloudEndpoint,
150
+ langGraphPlatformEndpoint: () => langGraphPlatformEndpoint,
151
151
  resolveEndpointType: () => resolveEndpointType
152
152
  });
153
153
  module.exports = __toCommonJS(src_exports);
154
154
  var import_reflect_metadata = require("reflect-metadata");
155
155
 
156
156
  // src/lib/runtime/copilot-runtime.ts
157
- var import_shared9 = require("@copilotkit/shared");
157
+ var import_shared10 = require("@copilotkit/shared");
158
158
 
159
159
  // src/service-adapters/langchain/langserve.ts
160
160
  var import_remote = require("langchain/runnables/remote");
@@ -1342,6 +1342,7 @@ var FilterThinkingTextBuffer = /* @__PURE__ */ __name(class FilterThinkingTextBu
1342
1342
  }, "FilterThinkingTextBuffer");
1343
1343
 
1344
1344
  // src/service-adapters/events.ts
1345
+ var import_shared9 = require("@copilotkit/shared");
1345
1346
  var import_rxjs2 = require("rxjs");
1346
1347
 
1347
1348
  // src/lib/telemetry-client.ts
@@ -1404,7 +1405,7 @@ var RemoteLangGraphEventSource = class {
1404
1405
  acc.content = null;
1405
1406
  }
1406
1407
  const toolCallChunks = (
1407
- // @ts-expect-error -- LangGraph Cloud implementation stores data outside of kwargs
1408
+ // @ts-expect-error -- LangGraph Platform implementation stores data outside of kwargs
1408
1409
  ((_h = (_g = (_f = event.data) == null ? void 0 : _f.chunk) == null ? void 0 : _g.kwargs) == null ? void 0 : _h.tool_call_chunks) ?? ((_j = (_i = event.data) == null ? void 0 : _i.chunk) == null ? void 0 : _j.tool_call_chunks)
1409
1410
  );
1410
1411
  const toolCallMessageId = ((_m = (_l = (_k = event.data) == null ? void 0 : _k.chunk) == null ? void 0 : _l.kwargs) == null ? void 0 : _m.id) ?? ((_o = (_n = event.data) == null ? void 0 : _n.chunk) == null ? void 0 : _o.id);
@@ -1582,7 +1583,7 @@ var RemoteLangGraphEventSource = class {
1582
1583
  };
1583
1584
  __name(RemoteLangGraphEventSource, "RemoteLangGraphEventSource");
1584
1585
 
1585
- // src/lib/runtime/remote-lg-cloud-action.ts
1586
+ // src/lib/runtime/remote-lg-action.ts
1586
1587
  var import_langgraph_sdk = require("@langchain/langgraph-sdk");
1587
1588
  var import_node_crypto = require("crypto");
1588
1589
  var import_partial_json = require("partial-json");
@@ -1623,7 +1624,7 @@ var CopilotRequestType;
1623
1624
  description: "The type of Copilot request"
1624
1625
  });
1625
1626
 
1626
- // src/lib/runtime/remote-lg-cloud-action.ts
1627
+ // src/lib/runtime/remote-lg-action.ts
1627
1628
  async function execute(args) {
1628
1629
  return new ReadableStream({
1629
1630
  async start(controller) {
@@ -1687,7 +1688,7 @@ async function streamEvents(controller, args) {
1687
1688
  if (!assistantId) {
1688
1689
  console.error(`
1689
1690
  No agent found for the agent name specified in CopilotKit provider
1690
- Please check your available agents or provide an agent ID in the LangGraph Cloud endpoint definition.
1691
+ Please check your available agents or provide an agent ID in the LangGraph Platform endpoint definition.
1691
1692
 
1692
1693
 
1693
1694
  These are the available agents: [${assistants.map((a) => `${a.name} (ID: ${a.assistant_id})`).join(", ")}]
@@ -1711,6 +1712,7 @@ async function streamEvents(controller, args) {
1711
1712
  const emit = /* @__PURE__ */ __name((message) => controller.enqueue(new TextEncoder().encode(message)), "emit");
1712
1713
  let latestStateValues = {};
1713
1714
  let updatedState = state;
1715
+ let manuallyEmittedState = null;
1714
1716
  let streamInfo = {
1715
1717
  hashedLgcKey: (0, import_node_crypto.createHash)("sha256").update(langsmithApiKey).digest("hex")
1716
1718
  };
@@ -1751,23 +1753,25 @@ async function streamEvents(controller, args) {
1751
1753
  shouldExit = shouldExit || eventType === LangGraphEventTypes.OnCustomEvent && event.name === CustomEventNames.CopilotKitExit;
1752
1754
  const emitIntermediateState = metadata["copilotkit:emit-intermediate-state"];
1753
1755
  const manuallyEmitIntermediateState = eventType === LangGraphEventTypes.OnCustomEvent && event.name === CustomEventNames.CopilotKitManuallyEmitIntermediateState;
1756
+ const exitingNode = nodeName === currentNodeName && eventType === LangGraphEventTypes.OnChainEnd;
1757
+ if (exitingNode) {
1758
+ manuallyEmittedState = null;
1759
+ }
1754
1760
  if (graphInfo["nodes"].some((node) => node.id === currentNodeName)) {
1755
1761
  nodeName = currentNodeName;
1756
- if (eventType === LangGraphEventTypes.OnChainStart || eventType === LangGraphEventTypes.OnChainEnd) {
1757
- updatedState = latestStateValues;
1758
- }
1759
1762
  }
1763
+ updatedState = manuallyEmittedState ?? latestStateValues;
1760
1764
  if (!nodeName) {
1761
1765
  continue;
1762
1766
  }
1763
1767
  if (manuallyEmitIntermediateState) {
1764
- updatedState = event.data;
1768
+ manuallyEmittedState = event.data;
1765
1769
  emit(getStateSyncEvent({
1766
1770
  threadId,
1767
1771
  runId,
1768
1772
  agentName: agent.name,
1769
1773
  nodeName,
1770
- state: updatedState,
1774
+ state: manuallyEmittedState,
1771
1775
  running: true,
1772
1776
  active: true
1773
1777
  }));
@@ -1791,7 +1795,6 @@ async function streamEvents(controller, args) {
1791
1795
  if (!emitIntermediateState && currentNodeName === emitIntermediateStateUntilEnd && eventType === LangGraphEventTypes.OnChainEnd) {
1792
1796
  emitIntermediateStateUntilEnd = null;
1793
1797
  }
1794
- const exitingNode = nodeName === currentNodeName && eventType === LangGraphEventTypes.OnChainEnd;
1795
1798
  if (JSON.stringify(updatedState) !== JSON.stringify(state) || prevNodeName != nodeName || exitingNode) {
1796
1799
  state = updatedState;
1797
1800
  prevNodeName = nodeName;
@@ -2057,10 +2060,10 @@ function constructLGCRemoteAction({ endpoint, graphqlContext, logger: logger2, m
2057
2060
  var _a;
2058
2061
  logger2.debug({
2059
2062
  actionName: agent.name
2060
- }, "Executing LangGraph Cloud agent");
2063
+ }, "Executing LangGraph Platform agent");
2061
2064
  telemetry_client_default.capture("oss.runtime.remote_action_executed", {
2062
2065
  agentExecution: true,
2063
- type: "langgraph-cloud",
2066
+ type: "langgraph-platform",
2064
2067
  agentsAmount: endpoint.agents.length,
2065
2068
  hashedLgcKey: (0, import_node_crypto2.createHash)("sha256").update(endpoint.langsmithApiKey).digest("hex")
2066
2069
  });
@@ -2096,8 +2099,8 @@ function constructLGCRemoteAction({ endpoint, graphqlContext, logger: logger2, m
2096
2099
  url: endpoint.deploymentUrl,
2097
2100
  status: 500,
2098
2101
  body: error.message
2099
- }, "Failed to execute LangGraph Cloud agent");
2100
- throw new Error("Failed to execute LangGraph Cloud agent");
2102
+ }, "Failed to execute LangGraph Platform agent");
2103
+ throw new Error("Failed to execute LangGraph Platform agent");
2101
2104
  }
2102
2105
  }
2103
2106
  }));
@@ -2279,7 +2282,7 @@ __name(createHeaders, "createHeaders");
2279
2282
  var EndpointType;
2280
2283
  (function(EndpointType2) {
2281
2284
  EndpointType2["CopilotKit"] = "copilotKit";
2282
- EndpointType2["LangGraphCloud"] = "langgraph-cloud";
2285
+ EndpointType2["LangGraphPlatform"] = "langgraph-platform";
2283
2286
  })(EndpointType || (EndpointType = {}));
2284
2287
  function isLangGraphAgentAction(action) {
2285
2288
  if (!action) {
@@ -2337,13 +2340,13 @@ async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, m
2337
2340
  remoteEndpointDefinitions
2338
2341
  }, "Fetching from remote endpoints");
2339
2342
  const filtered = remoteEndpointDefinitions.filter((value, index, self) => {
2340
- if (value.type === "langgraph-cloud") {
2343
+ if (value.type === "langgraph-platform") {
2341
2344
  return value;
2342
2345
  }
2343
2346
  return index === self.findIndex((t) => t.url === value.url);
2344
2347
  });
2345
2348
  const result = await Promise.all(filtered.map(async (endpoint) => {
2346
- if (endpoint.type === "langgraph-cloud") {
2349
+ if (endpoint.type === "langgraph-platform") {
2347
2350
  return constructLGCRemoteAction({
2348
2351
  endpoint,
2349
2352
  messages,
@@ -2404,7 +2407,7 @@ function getRuntimeInstanceTelemetryInfo(runtime) {
2404
2407
  ]
2405
2408
  };
2406
2409
  }
2407
- if (endpointType === EndpointType.LangGraphCloud) {
2410
+ if (endpointType === EndpointType.LangGraphPlatform) {
2408
2411
  const ep = endpoint;
2409
2412
  info = {
2410
2413
  ...info,
@@ -2519,9 +2522,20 @@ var RuntimeEventSource = class {
2519
2522
  async stream(callback) {
2520
2523
  this.callback = callback;
2521
2524
  }
2525
+ sendErrorMessageToChat() {
2526
+ const errorMessage = "\u274C An error occurred. Please try again.";
2527
+ if (!this.callback) {
2528
+ this.stream(async (eventStream$) => {
2529
+ eventStream$.sendTextMessage((0, import_shared9.randomId)(), errorMessage);
2530
+ });
2531
+ } else {
2532
+ this.eventStream$.sendTextMessage((0, import_shared9.randomId)(), errorMessage);
2533
+ }
2534
+ }
2522
2535
  processRuntimeEvents({ serverSideActions, guardrailsResult$, actionInputsWithoutAgents }) {
2523
2536
  this.callback(this.eventStream$).catch((error) => {
2524
2537
  console.error("Error in event source callback", error);
2538
+ this.sendErrorMessageToChat();
2525
2539
  });
2526
2540
  return this.eventStream$.pipe(
2527
2541
  // mark tools for server side execution
@@ -2764,37 +2778,37 @@ var CopilotRuntime = class {
2764
2778
  const remoteChain = new RemoteChain(chain);
2765
2779
  this.langserve.push(remoteChain.toAction());
2766
2780
  }
2767
- this.remoteEndpointDefinitions = (params == null ? void 0 : params.remoteEndpoints) || [];
2781
+ this.remoteEndpointDefinitions = (params == null ? void 0 : params.remoteEndpoints) ?? (params == null ? void 0 : params.remoteActions) ?? [];
2768
2782
  this.onBeforeRequest = (_a = params == null ? void 0 : params.middleware) == null ? void 0 : _a.onBeforeRequest;
2769
2783
  this.onAfterRequest = (_b = params == null ? void 0 : params.middleware) == null ? void 0 : _b.onAfterRequest;
2770
2784
  }
2771
2785
  async processRuntimeRequest(request) {
2772
2786
  var _a;
2773
2787
  const { serviceAdapter, messages: rawMessages, actions: clientSideActionsInput, threadId, runId, outputMessagesPromise, graphqlContext, forwardedParameters, agentSession, url } = request;
2774
- if (agentSession) {
2775
- return this.processAgentRequest(request);
2776
- }
2777
- const messages = rawMessages.filter((message) => !message.agentStateMessage);
2778
- const inputMessages = convertGqlInputToMessages(messages);
2779
- const serverSideActions = await this.getServerSideActions(request);
2780
- const serverSideActionsInput = serverSideActions.map((action) => ({
2781
- name: action.name,
2782
- description: action.description,
2783
- jsonSchema: JSON.stringify((0, import_shared9.actionParametersToJsonSchema)(action.parameters))
2784
- }));
2785
- const actionInputs = flattenToolCallsNoDuplicates([
2786
- ...serverSideActionsInput,
2787
- ...clientSideActionsInput
2788
- ]);
2789
- await ((_a = this.onBeforeRequest) == null ? void 0 : _a.call(this, {
2790
- threadId,
2791
- runId,
2792
- inputMessages,
2793
- properties: graphqlContext.properties,
2794
- url
2795
- }));
2788
+ const eventSource = new RuntimeEventSource();
2796
2789
  try {
2797
- const eventSource = new RuntimeEventSource();
2790
+ if (agentSession) {
2791
+ return await this.processAgentRequest(request);
2792
+ }
2793
+ const messages = rawMessages.filter((message) => !message.agentStateMessage);
2794
+ const inputMessages = convertGqlInputToMessages(messages);
2795
+ const serverSideActions = await this.getServerSideActions(request);
2796
+ const serverSideActionsInput = serverSideActions.map((action) => ({
2797
+ name: action.name,
2798
+ description: action.description,
2799
+ jsonSchema: JSON.stringify((0, import_shared10.actionParametersToJsonSchema)(action.parameters))
2800
+ }));
2801
+ const actionInputs = flattenToolCallsNoDuplicates([
2802
+ ...serverSideActionsInput,
2803
+ ...clientSideActionsInput
2804
+ ]);
2805
+ await ((_a = this.onBeforeRequest) == null ? void 0 : _a.call(this, {
2806
+ threadId,
2807
+ runId,
2808
+ inputMessages,
2809
+ properties: graphqlContext.properties,
2810
+ url
2811
+ }));
2798
2812
  const result = await serviceAdapter.process({
2799
2813
  messages: inputMessages,
2800
2814
  actions: actionInputs,
@@ -2827,7 +2841,14 @@ var CopilotRuntime = class {
2827
2841
  };
2828
2842
  } catch (error) {
2829
2843
  console.error("Error getting response:", error);
2830
- throw error;
2844
+ eventSource.sendErrorMessageToChat();
2845
+ return {
2846
+ threadId: threadId || (0, import_shared10.randomId)(),
2847
+ runId: runId || (0, import_shared10.randomId)(),
2848
+ eventSource,
2849
+ serverSideActions: [],
2850
+ actionInputsWithoutAgents: []
2851
+ };
2831
2852
  }
2832
2853
  }
2833
2854
  async processAgentRequest(request) {
@@ -2843,7 +2864,7 @@ var CopilotRuntime = class {
2843
2864
  const serverSideActionsInput = serverSideActions.filter((action) => !isLangGraphAgentAction(action)).map((action) => ({
2844
2865
  name: action.name,
2845
2866
  description: action.description,
2846
- jsonSchema: JSON.stringify((0, import_shared9.actionParametersToJsonSchema)(action.parameters))
2867
+ jsonSchema: JSON.stringify((0, import_shared10.actionParametersToJsonSchema)(action.parameters))
2847
2868
  }));
2848
2869
  const actionInputsWithoutAgents = flattenToolCallsNoDuplicates([
2849
2870
  ...serverSideActionsInput,
@@ -2947,17 +2968,17 @@ function copilotKitEndpoint(config2) {
2947
2968
  };
2948
2969
  }
2949
2970
  __name(copilotKitEndpoint, "copilotKitEndpoint");
2950
- function langGraphCloudEndpoint(config2) {
2971
+ function langGraphPlatformEndpoint(config2) {
2951
2972
  return {
2952
2973
  ...config2,
2953
- type: EndpointType.LangGraphCloud
2974
+ type: EndpointType.LangGraphPlatform
2954
2975
  };
2955
2976
  }
2956
- __name(langGraphCloudEndpoint, "langGraphCloudEndpoint");
2977
+ __name(langGraphPlatformEndpoint, "langGraphPlatformEndpoint");
2957
2978
  function resolveEndpointType(endpoint) {
2958
2979
  if (!endpoint.type) {
2959
2980
  if ("langsmithApiKey" in endpoint && "deploymentUrl" in endpoint && "agents" in endpoint) {
2960
- return EndpointType.LangGraphCloud;
2981
+ return EndpointType.LangGraphPlatform;
2961
2982
  } else {
2962
2983
  return EndpointType.CopilotKit;
2963
2984
  }
@@ -3978,7 +3999,7 @@ var UnknownErrorResponse = class extends FailedResponseStatus {
3978
3999
  __name(UnknownErrorResponse, "UnknownErrorResponse");
3979
4000
 
3980
4001
  // src/graphql/resolvers/copilot.resolver.ts
3981
- var import_shared10 = require("@copilotkit/shared");
4002
+ var import_shared11 = require("@copilotkit/shared");
3982
4003
  function _ts_decorate14(decorators, target, key, desc) {
3983
4004
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3984
4005
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
@@ -4095,7 +4116,7 @@ var CopilotResolver = class {
4095
4116
  rejectOutputMessagesPromise = reject;
4096
4117
  });
4097
4118
  logger2.debug("Processing");
4098
- const { eventSource, threadId = (0, import_shared10.randomId)(), runId, serverSideActions, actionInputsWithoutAgents } = await copilotRuntime.processRuntimeRequest({
4119
+ const { eventSource, threadId = (0, import_shared11.randomId)(), runId, serverSideActions, actionInputsWithoutAgents } = await copilotRuntime.processRuntimeRequest({
4099
4120
  serviceAdapter,
4100
4121
  messages: data.messages,
4101
4122
  actions: data.frontend.actions,
@@ -4140,7 +4161,7 @@ var CopilotResolver = class {
4140
4161
  });
4141
4162
  outputMessages = [
4142
4163
  (0, import_class_transformer2.plainToInstance)(TextMessage, {
4143
- id: (0, import_shared10.randomId)(),
4164
+ id: (0, import_shared11.randomId)(),
4144
4165
  createdAt: /* @__PURE__ */ new Date(),
4145
4166
  content: result.reason,
4146
4167
  role: MessageRole.assistant
@@ -4303,7 +4324,7 @@ var CopilotResolver = class {
4303
4324
  result: event.result
4304
4325
  }, "Action execution result event received");
4305
4326
  pushMessage({
4306
- id: (0, import_shared10.randomId)(),
4327
+ id: (0, import_shared11.randomId)(),
4307
4328
  status: new SuccessMessageStatus(),
4308
4329
  createdAt: /* @__PURE__ */ new Date(),
4309
4330
  actionExecutionId: event.actionExecutionId,
@@ -4311,7 +4332,7 @@ var CopilotResolver = class {
4311
4332
  result: event.result
4312
4333
  });
4313
4334
  outputMessages.push((0, import_class_transformer2.plainToInstance)(ResultMessage, {
4314
- id: (0, import_shared10.randomId)(),
4335
+ id: (0, import_shared11.randomId)(),
4315
4336
  createdAt: /* @__PURE__ */ new Date(),
4316
4337
  actionExecutionId: event.actionExecutionId,
4317
4338
  actionName: event.actionName,
@@ -4323,7 +4344,7 @@ var CopilotResolver = class {
4323
4344
  event
4324
4345
  }, "Agent message event received");
4325
4346
  pushMessage({
4326
- id: (0, import_shared10.randomId)(),
4347
+ id: (0, import_shared11.randomId)(),
4327
4348
  status: new SuccessMessageStatus(),
4328
4349
  threadId: event.threadId,
4329
4350
  agentName: event.agentName,
@@ -4336,7 +4357,7 @@ var CopilotResolver = class {
4336
4357
  createdAt: /* @__PURE__ */ new Date()
4337
4358
  });
4338
4359
  outputMessages.push((0, import_class_transformer2.plainToInstance)(AgentStateMessage, {
4339
- id: (0, import_shared10.randomId)(),
4360
+ id: (0, import_shared11.randomId)(),
4340
4361
  threadId: event.threadId,
4341
4362
  agentName: event.agentName,
4342
4363
  nodeName: event.nodeName,
@@ -4648,7 +4669,7 @@ __name(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
4648
4669
  createContext,
4649
4670
  flattenToolCallsNoDuplicates,
4650
4671
  getCommonConfig,
4651
- langGraphCloudEndpoint,
4672
+ langGraphPlatformEndpoint,
4652
4673
  resolveEndpointType
4653
4674
  });
4654
4675
  //# sourceMappingURL=index.js.map