@copilotkit/runtime 1.5.12 → 1.5.13
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 +14 -0
- package/dist/{chunk-4LRVKGBI.mjs → chunk-33C7HGEJ.mjs} +2 -2
- package/dist/{chunk-W6EE6OTN.mjs → chunk-75OPODE3.mjs} +2 -2
- package/dist/{chunk-IS3QAGOU.mjs → chunk-JAJAKFMI.mjs} +2 -2
- package/dist/{chunk-PFELVFS7.mjs → chunk-SXZJMC3M.mjs} +19 -16
- package/dist/{chunk-PFELVFS7.mjs.map → chunk-SXZJMC3M.mjs.map} +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -11
- package/dist/lib/index.js +6 -3
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +7 -7
- package/dist/lib/integrations/index.js +1 -1
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +6 -6
- 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 +4 -4
- 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 +4 -4
- 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 +3 -3
- package/package.json +2 -2
- package/src/lib/runtime/copilot-runtime.ts +4 -2
- /package/dist/{chunk-4LRVKGBI.mjs.map → chunk-33C7HGEJ.mjs.map} +0 -0
- /package/dist/{chunk-W6EE6OTN.mjs.map → chunk-75OPODE3.mjs.map} +0 -0
- /package/dist/{chunk-IS3QAGOU.mjs.map → chunk-JAJAKFMI.mjs.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-U3V2BCGI.mjs";
|
|
5
|
-
import "../../../chunk-S3KKBII4.mjs";
|
|
3
|
+
} from "../../../chunk-SXZJMC3M.mjs";
|
|
6
4
|
import "../../../chunk-HNUNXFTW.mjs";
|
|
7
5
|
import "../../../chunk-D2WLFQS6.mjs";
|
|
6
|
+
import "../../../chunk-S3KKBII4.mjs";
|
|
7
|
+
import "../../../chunk-U3V2BCGI.mjs";
|
|
8
8
|
import "../../../chunk-44O2JGUY.mjs";
|
|
9
9
|
export {
|
|
10
10
|
copilotRuntimeNodeHttpEndpoint
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"version": "1.5.
|
|
12
|
+
"version": "1.5.13",
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"main": "./dist/index.js",
|
|
15
15
|
"module": "./dist/index.mjs",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"rxjs": "^7.8.1",
|
|
59
59
|
"type-graphql": "2.0.0-rc.1",
|
|
60
60
|
"zod": "^3.23.3",
|
|
61
|
-
"@copilotkit/shared": "1.5.
|
|
61
|
+
"@copilotkit/shared": "1.5.13"
|
|
62
62
|
},
|
|
63
63
|
"keywords": [
|
|
64
64
|
"copilotkit",
|
|
@@ -383,7 +383,10 @@ please use an LLM adapter instead.`,
|
|
|
383
383
|
apiUrl: agentWithEndpoint.endpoint.deploymentUrl,
|
|
384
384
|
apiKey: agentWithEndpoint.endpoint.langsmithApiKey,
|
|
385
385
|
});
|
|
386
|
-
|
|
386
|
+
let state: any = {};
|
|
387
|
+
try {
|
|
388
|
+
state = (await client.threads.getState(threadId)).values as any;
|
|
389
|
+
} catch (error) {}
|
|
387
390
|
|
|
388
391
|
if (Object.keys(state).length === 0) {
|
|
389
392
|
return {
|
|
@@ -393,7 +396,6 @@ please use an LLM adapter instead.`,
|
|
|
393
396
|
messages: JSON.stringify([]),
|
|
394
397
|
};
|
|
395
398
|
} else {
|
|
396
|
-
console.log(state);
|
|
397
399
|
const { messages, ...stateWithoutMessages } = state;
|
|
398
400
|
const copilotkitMessages = langchainMessagesToCopilotKit(messages);
|
|
399
401
|
return {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|