@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
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"version": "1.9.2-next.
|
|
12
|
+
"version": "1.9.2-next.15",
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"main": "./dist/index.js",
|
|
15
15
|
"module": "./dist/index.mjs",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"rxjs": "7.8.1",
|
|
67
67
|
"type-graphql": "2.0.0-rc.1",
|
|
68
68
|
"zod": "^3.23.3",
|
|
69
|
-
"@copilotkit/shared": "1.9.2-next.
|
|
69
|
+
"@copilotkit/shared": "1.9.2-next.15"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"@ag-ui/client": ">=0.0.28",
|
|
@@ -884,10 +884,10 @@ please use an LLM adapter instead.`,
|
|
|
884
884
|
}
|
|
885
885
|
|
|
886
886
|
discoverAgentsFromAgui(): Agent[] {
|
|
887
|
-
return Object.
|
|
888
|
-
name: agent.agentName,
|
|
889
|
-
id: agent.agentId,
|
|
890
|
-
description: "",
|
|
887
|
+
return Object.entries(this.agents ?? []).map(([key, agent]: [string, AbstractAgent]) => ({
|
|
888
|
+
name: (agent as any).agentName ?? key,
|
|
889
|
+
id: agent.agentId ?? key,
|
|
890
|
+
description: agent.description ?? "",
|
|
891
891
|
}));
|
|
892
892
|
}
|
|
893
893
|
|
|
@@ -963,11 +963,6 @@ please use an LLM adapter instead.`,
|
|
|
963
963
|
? { authorization: `Bearer ${graphqlContext.properties.authorization}` }
|
|
964
964
|
: null;
|
|
965
965
|
|
|
966
|
-
const aguiAgent = graphqlContext._copilotkit.runtime.agents[agent.name] as LangGraphAgent;
|
|
967
|
-
if (!aguiAgent) {
|
|
968
|
-
throw new Error(`Agent: ${agent.name} could not be resolved`);
|
|
969
|
-
}
|
|
970
|
-
|
|
971
966
|
let state: any = {};
|
|
972
967
|
try {
|
|
973
968
|
let client: LangGraphClient | null;
|
|
@@ -978,6 +973,10 @@ please use an LLM adapter instead.`,
|
|
|
978
973
|
defaultHeaders: { ...propertyHeaders },
|
|
979
974
|
});
|
|
980
975
|
} else {
|
|
976
|
+
const aguiAgent = graphqlContext._copilotkit.runtime.agents[agent.name] as LangGraphAgent;
|
|
977
|
+
if (!aguiAgent) {
|
|
978
|
+
throw new Error(`Agent: ${agent.name} could not be resolved`);
|
|
979
|
+
}
|
|
981
980
|
// @ts-expect-error -- both clients are the same
|
|
982
981
|
client = aguiAgent.client ?? null;
|
|
983
982
|
}
|