@copilotkit/runtime 1.50.0-beta.13 → 1.50.0-beta.14

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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # @copilotkit/runtime
2
2
 
3
+ ## 1.50.0-beta.14
4
+
5
+ ### Minor Changes
6
+
7
+ - Minor fixes and stability improvements
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @copilotkit/shared@1.50.0-beta.14
13
+
3
14
  ## 1.50.0-beta.13
4
15
 
5
16
  ### Minor Changes
package/dist/index.js CHANGED
@@ -72,7 +72,7 @@ var require_package = __commonJS({
72
72
  publishConfig: {
73
73
  access: "public"
74
74
  },
75
- version: "1.50.0-beta.13",
75
+ version: "1.50.0-beta.14",
76
76
  sideEffects: false,
77
77
  main: "./dist/index.js",
78
78
  module: "./dist/index.mjs",
@@ -3504,6 +3504,7 @@ var CopilotRuntime = class {
3504
3504
  }
3505
3505
  handleServiceAdapter(serviceAdapter) {
3506
3506
  this.runtimeArgs.agents = Promise.resolve(this.runtimeArgs.agents ?? {}).then(async (agents) => {
3507
+ var _a;
3507
3508
  let agentsList = agents;
3508
3509
  const isAgentsListEmpty = !Object.keys(agents).length;
3509
3510
  const hasServiceAdapter = Boolean(serviceAdapter);
@@ -3521,10 +3522,11 @@ var CopilotRuntime = class {
3521
3522
  model: `${serviceAdapter.provider}/${serviceAdapter.model}`
3522
3523
  });
3523
3524
  }
3524
- if (this.params.actions) {
3525
+ const actions = (_a = this.params) == null ? void 0 : _a.actions;
3526
+ if (actions) {
3525
3527
  const mcpTools = await this.getToolsFromMCP();
3526
3528
  agentsList = this.assignToolsToAgents(agents, [
3527
- ...this.getToolsFromActions(this.params.actions),
3529
+ ...this.getToolsFromActions(actions),
3528
3530
  ...mcpTools
3529
3531
  ]);
3530
3532
  }