@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 +11 -0
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/lib/runtime/copilot-runtime.ts +3 -2
package/CHANGELOG.md
CHANGED
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.
|
|
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
|
-
|
|
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(
|
|
3529
|
+
...this.getToolsFromActions(actions),
|
|
3528
3530
|
...mcpTools
|
|
3529
3531
|
]);
|
|
3530
3532
|
}
|