@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/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "publishConfig": {
10
10
  "access": "public"
11
11
  },
12
- "version": "1.50.0-beta.13",
12
+ "version": "1.50.0-beta.14",
13
13
  "sideEffects": false,
14
14
  "main": "./dist/index.js",
15
15
  "module": "./dist/index.mjs",
@@ -71,7 +71,7 @@
71
71
  "rxjs": "7.8.1",
72
72
  "type-graphql": "2.0.0-rc.1",
73
73
  "zod": "^3.23.3",
74
- "@copilotkit/shared": "1.50.0-beta.13"
74
+ "@copilotkit/shared": "1.50.0-beta.14"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "@anthropic-ai/sdk": "^0.57.0",
@@ -385,10 +385,11 @@ export class CopilotRuntime<const T extends Parameter[] | [] = []> {
385
385
  });
386
386
  }
387
387
 
388
- if (this.params.actions) {
388
+ const actions = this.params?.actions;
389
+ if (actions) {
389
390
  const mcpTools = await this.getToolsFromMCP();
390
391
  agentsList = this.assignToolsToAgents(agents, [
391
- ...this.getToolsFromActions(this.params.actions),
392
+ ...this.getToolsFromActions(actions),
392
393
  ...mcpTools,
393
394
  ]);
394
395
  }