@copilotkit/runtime 1.9.2-next.13 → 1.9.2-next.15
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 +13 -0
- package/dist/{chunk-LNXBP675.mjs → chunk-7ZBTD5PN.mjs} +2 -2
- package/dist/{chunk-6V6X7HZO.mjs → chunk-SBSDOLSI.mjs} +2 -2
- package/dist/{chunk-CSXEYW65.mjs → chunk-SLTWS4D3.mjs} +10 -10
- package/dist/chunk-SLTWS4D3.mjs.map +1 -0
- package/dist/{chunk-NV2UY5BF.mjs → chunk-WRTZZ52D.mjs} +2 -2
- package/dist/{chunk-WY337BWR.mjs → chunk-XJBX2ZN2.mjs} +2 -2
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/lib/index.js +9 -9
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +5 -5
- package/dist/lib/integrations/index.js +1 -1
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.js +1 -1
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +2 -2
- package/dist/lib/integrations/node-express/index.js +1 -1
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +2 -2
- package/dist/lib/integrations/node-http/index.js +1 -1
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/package.json +2 -2
- package/src/lib/runtime/copilot-runtime.ts +8 -9
- package/dist/chunk-CSXEYW65.mjs.map +0 -1
- /package/dist/{chunk-LNXBP675.mjs.map → chunk-7ZBTD5PN.mjs.map} +0 -0
- /package/dist/{chunk-6V6X7HZO.mjs.map → chunk-SBSDOLSI.mjs.map} +0 -0
- /package/dist/{chunk-NV2UY5BF.mjs.map → chunk-WRTZZ52D.mjs.map} +0 -0
- /package/dist/{chunk-WY337BWR.mjs.map → chunk-XJBX2ZN2.mjs.map} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getCommonConfig,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SLTWS4D3.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-FHD4JECV.mjs";
|
|
@@ -77,4 +77,4 @@ export {
|
|
|
77
77
|
config,
|
|
78
78
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-WRTZZ52D.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LangGraphEventTypes
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SLTWS4D3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__name
|
|
6
6
|
} from "./chunk-FHD4JECV.mjs";
|
|
@@ -155,4 +155,4 @@ export {
|
|
|
155
155
|
CustomEventNames,
|
|
156
156
|
LangGraphAgent
|
|
157
157
|
};
|
|
158
|
-
//# sourceMappingURL=chunk-
|
|
158
|
+
//# sourceMappingURL=chunk-XJBX2ZN2.mjs.map
|
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.9.2-next.
|
|
47
|
+
version: "1.9.2-next.15",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -5135,10 +5135,10 @@ please use an LLM adapter instead.`
|
|
|
5135
5135
|
return agents;
|
|
5136
5136
|
}
|
|
5137
5137
|
discoverAgentsFromAgui() {
|
|
5138
|
-
return Object.
|
|
5139
|
-
name: agent.agentName,
|
|
5140
|
-
id: agent.agentId,
|
|
5141
|
-
description: ""
|
|
5138
|
+
return Object.entries(this.agents ?? []).map(([key, agent]) => ({
|
|
5139
|
+
name: agent.agentName ?? key,
|
|
5140
|
+
id: agent.agentId ?? key,
|
|
5141
|
+
description: agent.description ?? ""
|
|
5142
5142
|
}));
|
|
5143
5143
|
}
|
|
5144
5144
|
async loadAgentState(graphqlContext, threadId, agentName) {
|
|
@@ -5201,10 +5201,6 @@ please use an LLM adapter instead.`
|
|
|
5201
5201
|
const propertyHeaders = graphqlContext.properties.authorization ? {
|
|
5202
5202
|
authorization: `Bearer ${graphqlContext.properties.authorization}`
|
|
5203
5203
|
} : null;
|
|
5204
|
-
const aguiAgent = graphqlContext._copilotkit.runtime.agents[agent.name];
|
|
5205
|
-
if (!aguiAgent) {
|
|
5206
|
-
throw new Error(`Agent: ${agent.name} could not be resolved`);
|
|
5207
|
-
}
|
|
5208
5204
|
let state = {};
|
|
5209
5205
|
try {
|
|
5210
5206
|
let client;
|
|
@@ -5217,6 +5213,10 @@ please use an LLM adapter instead.`
|
|
|
5217
5213
|
}
|
|
5218
5214
|
});
|
|
5219
5215
|
} else {
|
|
5216
|
+
const aguiAgent = graphqlContext._copilotkit.runtime.agents[agent.name];
|
|
5217
|
+
if (!aguiAgent) {
|
|
5218
|
+
throw new Error(`Agent: ${agent.name} could not be resolved`);
|
|
5219
|
+
}
|
|
5220
5220
|
client = aguiAgent.client ?? null;
|
|
5221
5221
|
}
|
|
5222
5222
|
state = client ? (await client.threads.getState(threadId)).values : {};
|