@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/dist/index.mjs CHANGED
@@ -65,7 +65,7 @@ var require_package = __commonJS({
65
65
  publishConfig: {
66
66
  access: "public"
67
67
  },
68
- version: "1.50.0-beta.13",
68
+ version: "1.50.0-beta.14",
69
69
  sideEffects: false,
70
70
  main: "./dist/index.js",
71
71
  module: "./dist/index.mjs",
@@ -3497,6 +3497,7 @@ var CopilotRuntime = class {
3497
3497
  }
3498
3498
  handleServiceAdapter(serviceAdapter) {
3499
3499
  this.runtimeArgs.agents = Promise.resolve(this.runtimeArgs.agents ?? {}).then(async (agents) => {
3500
+ var _a;
3500
3501
  let agentsList = agents;
3501
3502
  const isAgentsListEmpty = !Object.keys(agents).length;
3502
3503
  const hasServiceAdapter = Boolean(serviceAdapter);
@@ -3514,10 +3515,11 @@ var CopilotRuntime = class {
3514
3515
  model: `${serviceAdapter.provider}/${serviceAdapter.model}`
3515
3516
  });
3516
3517
  }
3517
- if (this.params.actions) {
3518
+ const actions = (_a = this.params) == null ? void 0 : _a.actions;
3519
+ if (actions) {
3518
3520
  const mcpTools = await this.getToolsFromMCP();
3519
3521
  agentsList = this.assignToolsToAgents(agents, [
3520
- ...this.getToolsFromActions(this.params.actions),
3522
+ ...this.getToolsFromActions(actions),
3521
3523
  ...mcpTools
3522
3524
  ]);
3523
3525
  }