@copilotkit/runtime 1.3.16-mme-lgc-langgraph-package.10 → 1.3.16-mme-reset-chat.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.
Files changed (65) hide show
  1. package/CHANGELOG.md +45 -63
  2. package/dist/{chunk-JE2DM46O.mjs → chunk-2S6JGN2A.mjs} +4 -3
  3. package/dist/chunk-2S6JGN2A.mjs.map +1 -0
  4. package/dist/{chunk-SM3JAVXQ.mjs → chunk-3XICZ4K2.mjs} +5 -4
  5. package/dist/chunk-3XICZ4K2.mjs.map +1 -0
  6. package/dist/chunk-DFOKBSIS.mjs +1 -0
  7. package/dist/chunk-DFOKBSIS.mjs.map +1 -0
  8. package/dist/{chunk-PGK7SFLR.mjs → chunk-ODOSADGH.mjs} +376 -28
  9. package/dist/chunk-ODOSADGH.mjs.map +1 -0
  10. package/dist/{chunk-JCC4W3AU.mjs → chunk-TBNMKEWV.mjs} +4 -3
  11. package/dist/chunk-TBNMKEWV.mjs.map +1 -0
  12. package/dist/{chunk-BNQDVBQH.mjs → chunk-WHJ3DAYL.mjs} +251 -34
  13. package/dist/chunk-WHJ3DAYL.mjs.map +1 -0
  14. package/dist/{copilot-runtime-8d3f40c7.d.ts → copilot-runtime-b9715bd4.d.ts} +3 -3
  15. package/dist/index.d.ts +1 -1
  16. package/dist/index.js +141 -45
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.mjs +22 -22
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/lib/index.d.ts +1 -1
  21. package/dist/lib/index.js +141 -45
  22. package/dist/lib/index.js.map +1 -1
  23. package/dist/lib/index.mjs +21 -21
  24. package/dist/lib/integrations/index.d.ts +2 -2
  25. package/dist/lib/integrations/index.js +152 -85
  26. package/dist/lib/integrations/index.js.map +1 -1
  27. package/dist/lib/integrations/index.mjs +5 -5
  28. package/dist/lib/integrations/nest/index.d.ts +1 -1
  29. package/dist/lib/integrations/nest/index.js +149 -82
  30. package/dist/lib/integrations/nest/index.js.map +1 -1
  31. package/dist/lib/integrations/nest/index.mjs +3 -3
  32. package/dist/lib/integrations/node-express/index.d.ts +1 -1
  33. package/dist/lib/integrations/node-express/index.js +149 -82
  34. package/dist/lib/integrations/node-express/index.js.map +1 -1
  35. package/dist/lib/integrations/node-express/index.mjs +3 -3
  36. package/dist/lib/integrations/node-http/index.d.ts +1 -1
  37. package/dist/lib/integrations/node-http/index.js +148 -81
  38. package/dist/lib/integrations/node-http/index.js.map +1 -1
  39. package/dist/lib/integrations/node-http/index.mjs +2 -2
  40. package/dist/service-adapters/index.js +31 -18
  41. package/dist/service-adapters/index.js.map +1 -1
  42. package/dist/service-adapters/index.mjs +1 -2
  43. package/package.json +4 -4
  44. package/src/agents/langgraph/events.ts +2 -0
  45. package/src/lib/integrations/nest/index.ts +5 -2
  46. package/src/lib/integrations/nextjs/app-router.ts +5 -2
  47. package/src/lib/integrations/nextjs/pages-router.ts +5 -2
  48. package/src/lib/integrations/node-express/index.ts +5 -2
  49. package/src/lib/integrations/node-http/index.ts +5 -2
  50. package/src/lib/runtime/copilot-runtime.ts +14 -15
  51. package/src/lib/runtime/remote-action-constructors.ts +17 -3
  52. package/src/lib/runtime/remote-lg-cloud-action.ts +25 -2
  53. package/src/lib/telemetry-client.ts +43 -0
  54. package/src/service-adapters/google/google-genai-adapter.ts +2 -2
  55. package/src/service-adapters/langchain/langchain-adapter.ts +22 -16
  56. package/src/service-adapters/openai/openai-adapter.ts +5 -0
  57. package/dist/chunk-BNQDVBQH.mjs.map +0 -1
  58. package/dist/chunk-H3C6UCKB.mjs +0 -288
  59. package/dist/chunk-H3C6UCKB.mjs.map +0 -1
  60. package/dist/chunk-JCC4W3AU.mjs.map +0 -1
  61. package/dist/chunk-JE2DM46O.mjs.map +0 -1
  62. package/dist/chunk-MXXPWWBF.mjs +0 -218
  63. package/dist/chunk-MXXPWWBF.mjs.map +0 -1
  64. package/dist/chunk-PGK7SFLR.mjs.map +0 -1
  65. package/dist/chunk-SM3JAVXQ.mjs.map +0 -1
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-lgc-langgraph-package.10",
47
+ version: "1.3.16-mme-reset-chat.10",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -147,7 +147,8 @@ __export(src_exports, {
147
147
  createContext: () => createContext,
148
148
  flattenToolCallsNoDuplicates: () => flattenToolCallsNoDuplicates,
149
149
  getCommonConfig: () => getCommonConfig,
150
- langGraphCloudEndpoint: () => langGraphCloudEndpoint
150
+ langGraphCloudEndpoint: () => langGraphCloudEndpoint,
151
+ resolveEndpointType: () => resolveEndpointType
151
152
  });
152
153
  module.exports = __toCommonJS(src_exports);
153
154
  var import_reflect_metadata = require("reflect-metadata");
@@ -430,6 +431,9 @@ var OpenAIAdapter = class {
430
431
  var _a, _b;
431
432
  let mode = null;
432
433
  for await (const chunk of stream) {
434
+ if (chunk.choices.length === 0) {
435
+ continue;
436
+ }
433
437
  const toolCall = (_a = chunk.choices[0].delta.tool_calls) == null ? void 0 : _a[0];
434
438
  const content = chunk.choices[0].delta.content;
435
439
  if (mode === "message" && (toolCall == null ? void 0 : toolCall.id)) {
@@ -678,6 +682,7 @@ __name(encodeResult, "encodeResult");
678
682
 
679
683
  // src/service-adapters/langchain/langchain-adapter.ts
680
684
  var import_shared3 = require("@copilotkit/shared");
685
+ var import_promises = require("@langchain/core/callbacks/promises");
681
686
  var LangChainAdapter = class {
682
687
  options;
683
688
  /**
@@ -687,23 +692,28 @@ var LangChainAdapter = class {
687
692
  this.options = options;
688
693
  }
689
694
  async process(request) {
690
- const { eventSource, model, actions, messages, threadId, runId } = request;
691
- const result = await this.options.chainFn({
692
- messages: messages.map(convertMessageToLangChainMessage),
693
- tools: actions.map(convertActionInputToLangChainTool),
694
- model,
695
- threadId,
696
- runId
697
- });
698
- eventSource.stream(async (eventStream$) => {
699
- await streamLangChainResponse({
700
- result,
701
- eventStream$
695
+ try {
696
+ const { eventSource, model, actions, messages, runId } = request;
697
+ const threadId = request.threadId ?? (0, import_shared3.randomId)();
698
+ const result = await this.options.chainFn({
699
+ messages: messages.map(convertMessageToLangChainMessage),
700
+ tools: actions.map(convertActionInputToLangChainTool),
701
+ model,
702
+ threadId,
703
+ runId
702
704
  });
703
- });
704
- return {
705
- threadId: threadId || (0, import_shared3.randomId)()
706
- };
705
+ eventSource.stream(async (eventStream$) => {
706
+ await streamLangChainResponse({
707
+ result,
708
+ eventStream$
709
+ });
710
+ });
711
+ return {
712
+ threadId
713
+ };
714
+ } finally {
715
+ await (0, import_promises.awaitAllCallbacks)();
716
+ }
707
717
  }
708
718
  };
709
719
  __name(LangChainAdapter, "LangChainAdapter");
@@ -713,12 +723,16 @@ var import_google_gauth = require("@langchain/google-gauth");
713
723
  var GoogleGenerativeAIAdapter = class extends LangChainAdapter {
714
724
  constructor(options) {
715
725
  super({
716
- chainFn: async ({ messages, tools }) => {
726
+ chainFn: async ({ messages, tools, threadId }) => {
717
727
  const model = new import_google_gauth.ChatGoogle({
718
728
  modelName: (options == null ? void 0 : options.model) ?? "gemini-1.5-pro",
719
729
  apiVersion: "v1beta"
720
730
  }).bindTools(tools);
721
- return model.stream(messages);
731
+ return model.stream(messages, {
732
+ metadata: {
733
+ conversation_id: threadId
734
+ }
735
+ });
722
736
  }
723
737
  });
724
738
  }
@@ -1331,13 +1345,10 @@ var FilterThinkingTextBuffer = /* @__PURE__ */ __name(class FilterThinkingTextBu
1331
1345
  var import_rxjs2 = require("rxjs");
1332
1346
 
1333
1347
  // src/lib/telemetry-client.ts
1334
- var import_shared7 = require("@copilotkit/shared");
1335
- var packageJson = require_package();
1336
- var telemetryClient = new import_shared7.TelemetryClient({
1337
- packageName: packageJson.name,
1338
- packageVersion: packageJson.version
1339
- });
1340
- var telemetry_client_default = telemetryClient;
1348
+ var import_shared8 = require("@copilotkit/shared");
1349
+
1350
+ // src/lib/runtime/remote-action-constructors.ts
1351
+ var import_node_crypto2 = require("crypto");
1341
1352
 
1342
1353
  // src/agents/langgraph/event-source.ts
1343
1354
  var import_rxjs = require("rxjs");
@@ -1354,6 +1365,8 @@ var LangGraphEventTypes;
1354
1365
  LangGraphEventTypes2["OnToolStart"] = "on_tool_start";
1355
1366
  LangGraphEventTypes2["OnToolEnd"] = "on_tool_end";
1356
1367
  LangGraphEventTypes2["OnCopilotKitStateSync"] = "on_copilotkit_state_sync";
1368
+ LangGraphEventTypes2["OnCopilotKitEmitMessage"] = "on_copilotkit_emit_message";
1369
+ LangGraphEventTypes2["OnCopilotKitEmitToolCall"] = "on_copilotkit_emit_tool_call";
1357
1370
  LangGraphEventTypes2["OnCustomEvent"] = "on_custom_event";
1358
1371
  })(LangGraphEventTypes || (LangGraphEventTypes = {}));
1359
1372
  var CustomEventNames;
@@ -1365,7 +1378,7 @@ var CustomEventNames;
1365
1378
  })(CustomEventNames || (CustomEventNames = {}));
1366
1379
 
1367
1380
  // src/agents/langgraph/event-source.ts
1368
- var import_shared8 = require("@copilotkit/shared");
1381
+ var import_shared7 = require("@copilotkit/shared");
1369
1382
  var RemoteLangGraphEventSource = class {
1370
1383
  eventStream$ = new import_rxjs.ReplaySubject();
1371
1384
  shouldEmitToolCall(shouldEmitToolCalls, toolCallName) {
@@ -1551,7 +1564,7 @@ var RemoteLangGraphEventSource = class {
1551
1564
  type: RuntimeEventTypes.ActionExecutionEnd
1552
1565
  });
1553
1566
  }
1554
- const messageId = (0, import_shared8.randomId)();
1567
+ const messageId = (0, import_shared7.randomId)();
1555
1568
  events.push({
1556
1569
  type: RuntimeEventTypes.TextMessageStart,
1557
1570
  messageId
@@ -1624,6 +1637,7 @@ async function execute(args) {
1624
1637
  }
1625
1638
  __name(execute, "execute");
1626
1639
  async function streamEvents(controller, args) {
1640
+ var _a, _b, _c, _d, _e, _f;
1627
1641
  const { deploymentUrl, langsmithApiKey, threadId: agrsInitialThreadId, agent, nodeName: initialNodeName, state: initialState, messages, actions, logger: logger2 } = args;
1628
1642
  let nodeName = initialNodeName;
1629
1643
  let state = initialState;
@@ -1697,7 +1711,13 @@ async function streamEvents(controller, args) {
1697
1711
  const emit = /* @__PURE__ */ __name((message) => controller.enqueue(new TextEncoder().encode(message)), "emit");
1698
1712
  let latestStateValues = {};
1699
1713
  let updatedState = state;
1714
+ let streamInfo = {
1715
+ hashedLgcKey: (0, import_node_crypto.createHash)("sha256").update(langsmithApiKey).digest("hex")
1716
+ };
1700
1717
  try {
1718
+ telemetry_client_default.capture("oss.runtime.agent_execution_stream_started", {
1719
+ hashedLgcKey: streamInfo.hashedLgcKey
1720
+ });
1701
1721
  for await (const chunk of streamResponse2) {
1702
1722
  if (![
1703
1723
  "events",
@@ -1719,6 +1739,15 @@ async function streamEvents(controller, args) {
1719
1739
  const runId = event.metadata.run_id;
1720
1740
  externalRunId = runId;
1721
1741
  const metadata = event.metadata;
1742
+ if (((_b = (_a = event.data) == null ? void 0 : _a.output) == null ? void 0 : _b.model) != null && ((_d = (_c = event.data) == null ? void 0 : _c.output) == null ? void 0 : _d.model) != "") {
1743
+ streamInfo.provider = (_f = (_e = event.data) == null ? void 0 : _e.output) == null ? void 0 : _f.model;
1744
+ }
1745
+ if (metadata.langgraph_host != null && metadata.langgraph_host != "") {
1746
+ streamInfo.langGraphHost = metadata.langgraph_host;
1747
+ }
1748
+ if (metadata.langgraph_version != null && metadata.langgraph_version != "") {
1749
+ streamInfo.langGraphVersion = metadata.langgraph_version;
1750
+ }
1722
1751
  shouldExit = shouldExit || eventType === LangGraphEventTypes.OnCustomEvent && event.name === CustomEventNames.CopilotKitExit;
1723
1752
  const emitIntermediateState = metadata["copilotkit:emit-intermediate-state"];
1724
1753
  const manuallyEmitIntermediateState = eventType === LangGraphEventTypes.OnCustomEvent && event.name === CustomEventNames.CopilotKitManuallyEmitIntermediateState;
@@ -1781,6 +1810,7 @@ async function streamEvents(controller, args) {
1781
1810
  state = await client.threads.getState(threadId);
1782
1811
  const isEndNode = state.next.length === 0;
1783
1812
  nodeName = Object.keys(state.metadata.writes)[0];
1813
+ telemetry_client_default.capture("oss.runtime.agent_execution_stream_ended", streamInfo);
1784
1814
  emit(getStateSyncEvent({
1785
1815
  threadId,
1786
1816
  runId: externalRunId,
@@ -2028,7 +2058,12 @@ function constructLGCRemoteAction({ endpoint, graphqlContext, logger: logger2, m
2028
2058
  logger2.debug({
2029
2059
  actionName: agent.name
2030
2060
  }, "Executing LangGraph Cloud agent");
2031
- telemetry_client_default.capture("oss.runtime.remote_action_executed", {});
2061
+ telemetry_client_default.capture("oss.runtime.remote_action_executed", {
2062
+ agentExecution: true,
2063
+ type: "langgraph-cloud",
2064
+ agentsAmount: endpoint.agents.length,
2065
+ hashedLgcKey: (0, import_node_crypto2.createHash)("sha256").update(endpoint.langsmithApiKey).digest("hex")
2066
+ });
2032
2067
  let state = {};
2033
2068
  if (agentStates) {
2034
2069
  const jsonState = (_a = agentStates.find((state2) => state2.agentName === name)) == null ? void 0 : _a.state;
@@ -2082,7 +2117,11 @@ function constructRemoteActions({ json, url, onBeforeRequest, graphqlContext, lo
2082
2117
  args
2083
2118
  }, "Executing remote action");
2084
2119
  const headers = createHeaders(onBeforeRequest, graphqlContext);
2085
- telemetry_client_default.capture("oss.runtime.remote_action_executed", {});
2120
+ telemetry_client_default.capture("oss.runtime.remote_action_executed", {
2121
+ agentExecution: false,
2122
+ type: "self-hosted",
2123
+ agentsAmount: json["agents"].length
2124
+ });
2086
2125
  try {
2087
2126
  const response = await fetch(`${url}/actions/execute`, {
2088
2127
  method: "POST",
@@ -2128,7 +2167,11 @@ function constructRemoteActions({ json, url, onBeforeRequest, graphqlContext, lo
2128
2167
  actionName: agent.name
2129
2168
  }, "Executing remote agent");
2130
2169
  const headers = createHeaders(onBeforeRequest, graphqlContext);
2131
- telemetry_client_default.capture("oss.runtime.remote_action_executed", {});
2170
+ telemetry_client_default.capture("oss.runtime.remote_action_executed", {
2171
+ agentExecution: true,
2172
+ type: "self-hosted",
2173
+ agentsAmount: json["agents"].length
2174
+ });
2132
2175
  let state = {};
2133
2176
  if (agentStates) {
2134
2177
  const jsonState = (_a = agentStates.find((state2) => state2.agentName === name)) == null ? void 0 : _a.state;
@@ -2339,6 +2382,53 @@ async function setupRemoteActions({ remoteEndpointDefinitions, graphqlContext, m
2339
2382
  }
2340
2383
  __name(setupRemoteActions, "setupRemoteActions");
2341
2384
 
2385
+ // src/lib/telemetry-client.ts
2386
+ var import_node_crypto3 = require("crypto");
2387
+ var packageJson = require_package();
2388
+ var telemetryClient = new import_shared8.TelemetryClient({
2389
+ packageName: packageJson.name,
2390
+ packageVersion: packageJson.version
2391
+ });
2392
+ function getRuntimeInstanceTelemetryInfo(runtime) {
2393
+ const endpointsInfo = runtime.remoteEndpointDefinitions.reduce((acc, endpoint) => {
2394
+ let info = {
2395
+ ...acc
2396
+ };
2397
+ const endpointType = resolveEndpointType(endpoint);
2398
+ if (!info.endpointTypes.includes(endpointType)) {
2399
+ info = {
2400
+ ...info,
2401
+ endpointTypes: [
2402
+ ...info.endpointTypes,
2403
+ endpointType
2404
+ ]
2405
+ };
2406
+ }
2407
+ if (endpointType === EndpointType.LangGraphCloud) {
2408
+ const ep = endpoint;
2409
+ info = {
2410
+ ...info,
2411
+ agentsAmount: ep.agents.length,
2412
+ hashedKey: (0, import_node_crypto3.createHash)("sha256").update(ep.langsmithApiKey).digest("hex")
2413
+ };
2414
+ }
2415
+ return info;
2416
+ }, {
2417
+ endpointTypes: [],
2418
+ agentsAmount: null,
2419
+ hashedKey: null
2420
+ });
2421
+ return {
2422
+ actionsAmount: runtime.actions.length,
2423
+ endpointsAmount: runtime.remoteEndpointDefinitions.length,
2424
+ endpointTypes: endpointsInfo.endpointTypes,
2425
+ agentsAmount: endpointsInfo.agentsAmount,
2426
+ hashedLgcKey: endpointsInfo.hashedKey
2427
+ };
2428
+ }
2429
+ __name(getRuntimeInstanceTelemetryInfo, "getRuntimeInstanceTelemetryInfo");
2430
+ var telemetry_client_default = telemetryClient;
2431
+
2342
2432
  // src/service-adapters/events.ts
2343
2433
  var RuntimeEventTypes;
2344
2434
  (function(RuntimeEventTypes2) {
@@ -2817,7 +2907,7 @@ var CopilotRuntime = class {
2817
2907
  }
2818
2908
  const remoteEndpointDefinitions = this.remoteEndpointDefinitions.map((endpoint) => ({
2819
2909
  ...endpoint,
2820
- type: this.resolveEndpointType(endpoint)
2910
+ type: resolveEndpointType(endpoint)
2821
2911
  }));
2822
2912
  const remoteActions = await setupRemoteActions({
2823
2913
  remoteEndpointDefinitions,
@@ -2836,12 +2926,6 @@ var CopilotRuntime = class {
2836
2926
  ...remoteActions
2837
2927
  ];
2838
2928
  }
2839
- resolveEndpointType(endpoint) {
2840
- if (!endpoint.type && "langsmithApiKey" in endpoint && "deploymentUrl" in endpoint && "agents" in endpoint) {
2841
- return EndpointType.LangGraphCloud;
2842
- }
2843
- return endpoint.type;
2844
- }
2845
2929
  };
2846
2930
  __name(CopilotRuntime, "CopilotRuntime");
2847
2931
  function flattenToolCallsNoDuplicates(toolsByPriority) {
@@ -2870,6 +2954,17 @@ function langGraphCloudEndpoint(config2) {
2870
2954
  };
2871
2955
  }
2872
2956
  __name(langGraphCloudEndpoint, "langGraphCloudEndpoint");
2957
+ function resolveEndpointType(endpoint) {
2958
+ if (!endpoint.type) {
2959
+ if ("langsmithApiKey" in endpoint && "deploymentUrl" in endpoint && "agents" in endpoint) {
2960
+ return EndpointType.LangGraphCloud;
2961
+ } else {
2962
+ return EndpointType.CopilotKit;
2963
+ }
2964
+ }
2965
+ return endpoint.type;
2966
+ }
2967
+ __name(resolveEndpointType, "resolveEndpointType");
2873
2968
 
2874
2969
  // src/lib/integrations/shared.ts
2875
2970
  var import_type_graphql16 = require("type-graphql");
@@ -4429,7 +4524,7 @@ function copilotRuntimeNextJSAppRouterEndpoint(options) {
4429
4524
  _copilotkit: options.properties._copilotkit
4430
4525
  });
4431
4526
  }
4432
- telemetry_client_default.capture("oss.runtime.instance_created", {});
4527
+ telemetry_client_default.capture("oss.runtime.instance_created", getRuntimeInstanceTelemetryInfo(options.runtime));
4433
4528
  const logger2 = commonConfig.logging;
4434
4529
  logger2.debug("Creating NextJS App Router endpoint");
4435
4530
  const yoga = (0, import_graphql_yoga2.createYoga)({
@@ -4468,7 +4563,7 @@ function copilotRuntimeNextJSPagesRouterEndpoint(options) {
4468
4563
  _copilotkit: options.properties._copilotkit
4469
4564
  });
4470
4565
  }
4471
- telemetry_client_default.capture("oss.runtime.instance_created", {});
4566
+ telemetry_client_default.capture("oss.runtime.instance_created", getRuntimeInstanceTelemetryInfo(options.runtime));
4472
4567
  const logger2 = commonConfig.logging;
4473
4568
  logger2.debug("Creating NextJS Pages Router endpoint");
4474
4569
  const yoga = (0, import_graphql_yoga3.createYoga)({
@@ -4494,7 +4589,7 @@ function copilotRuntimeNodeHttpEndpoint(options) {
4494
4589
  _copilotkit: options.properties._copilotkit
4495
4590
  });
4496
4591
  }
4497
- telemetry_client_default.capture("oss.runtime.instance_created", {});
4592
+ telemetry_client_default.capture("oss.runtime.instance_created", getRuntimeInstanceTelemetryInfo(options.runtime));
4498
4593
  const logger2 = commonConfig.logging;
4499
4594
  logger2.debug("Creating Node HTTP endpoint");
4500
4595
  const yoga = (0, import_graphql_yoga4.createYoga)({
@@ -4512,7 +4607,7 @@ function copilotRuntimeNodeExpressEndpoint(options) {
4512
4607
  framework: "node-express"
4513
4608
  }
4514
4609
  });
4515
- telemetry_client_default.capture("oss.runtime.instance_created", {});
4610
+ telemetry_client_default.capture("oss.runtime.instance_created", getRuntimeInstanceTelemetryInfo(options.runtime));
4516
4611
  return copilotRuntimeNodeHttpEndpoint(options);
4517
4612
  }
4518
4613
  __name(copilotRuntimeNodeExpressEndpoint, "copilotRuntimeNodeExpressEndpoint");
@@ -4524,7 +4619,7 @@ function copilotRuntimeNestEndpoint(options) {
4524
4619
  framework: "nest"
4525
4620
  }
4526
4621
  });
4527
- telemetry_client_default.capture("oss.runtime.instance_created", {});
4622
+ telemetry_client_default.capture("oss.runtime.instance_created", getRuntimeInstanceTelemetryInfo(options.runtime));
4528
4623
  return copilotRuntimeNodeHttpEndpoint(options);
4529
4624
  }
4530
4625
  __name(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
@@ -4553,6 +4648,7 @@ __name(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
4553
4648
  createContext,
4554
4649
  flattenToolCallsNoDuplicates,
4555
4650
  getCommonConfig,
4556
- langGraphCloudEndpoint
4651
+ langGraphCloudEndpoint,
4652
+ resolveEndpointType
4557
4653
  });
4558
4654
  //# sourceMappingURL=index.js.map