@copilotkit/runtime 1.5.12-next.7 → 1.5.13-next.0

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.
Files changed (29) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/{chunk-34276UUU.mjs → chunk-HBCVNFMF.mjs} +12 -9
  3. package/dist/{chunk-34276UUU.mjs.map → chunk-HBCVNFMF.mjs.map} +1 -1
  4. package/dist/{chunk-DLESGNLO.mjs → chunk-OBZLPXFY.mjs} +2 -2
  5. package/dist/{chunk-UBYSQI43.mjs → chunk-V4EKDRR6.mjs} +2 -2
  6. package/dist/{chunk-WTUPF3W3.mjs → chunk-ZZUINFAU.mjs} +2 -2
  7. package/dist/index.js +6 -3
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.mjs +9 -9
  10. package/dist/lib/index.js +6 -3
  11. package/dist/lib/index.js.map +1 -1
  12. package/dist/lib/index.mjs +5 -5
  13. package/dist/lib/integrations/index.js +1 -1
  14. package/dist/lib/integrations/index.js.map +1 -1
  15. package/dist/lib/integrations/index.mjs +5 -5
  16. package/dist/lib/integrations/nest/index.js +1 -1
  17. package/dist/lib/integrations/nest/index.js.map +1 -1
  18. package/dist/lib/integrations/nest/index.mjs +3 -3
  19. package/dist/lib/integrations/node-express/index.js +1 -1
  20. package/dist/lib/integrations/node-express/index.js.map +1 -1
  21. package/dist/lib/integrations/node-express/index.mjs +3 -3
  22. package/dist/lib/integrations/node-http/index.js +1 -1
  23. package/dist/lib/integrations/node-http/index.js.map +1 -1
  24. package/dist/lib/integrations/node-http/index.mjs +2 -2
  25. package/package.json +2 -2
  26. package/src/lib/runtime/copilot-runtime.ts +7 -2
  27. /package/dist/{chunk-DLESGNLO.mjs.map → chunk-OBZLPXFY.mjs.map} +0 -0
  28. /package/dist/{chunk-UBYSQI43.mjs.map → chunk-V4EKDRR6.mjs.map} +0 -0
  29. /package/dist/{chunk-WTUPF3W3.mjs.map → chunk-ZZUINFAU.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @copilotkit/runtime
2
2
 
3
+ ## 1.5.13-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 8271438: silence langgraph platform error
8
+ - @copilotkit/shared@1.5.13-next.0
9
+
10
+ ## 1.5.12
11
+
12
+ ### Patch Changes
13
+
14
+ - 768b3a5: - chore: add documentation for empty llm adapter
15
+ - fix: throw error when empty adapter is misused
16
+ - a2129f4: - fix(streaming): end streaming on error to enable continuity of chat after failed tool call
17
+ - 926499b: - Load the previous state of an agent if `threadId` is provided to CopilotKit, including all messages
18
+ - 59de133: - fix: rename ExperimentalEmptyAdapter to EmptyAdapter
19
+ - 6136a57: - fix(errors): add custom error classes to better describe library errors
20
+ - fix(errors): use new errors in error handling
21
+ - chore: add documentation and links to respective errors
22
+ - Updated dependencies [6136a57]
23
+ - @copilotkit/shared@1.5.12
24
+
3
25
  ## 1.5.12-next.7
4
26
 
5
27
  ### Patch Changes
@@ -1,8 +1,3 @@
1
- import {
2
- EmptyAdapter,
3
- RemoteChain,
4
- streamLangChainResponse
5
- } from "./chunk-S3KKBII4.mjs";
6
1
  import {
7
2
  GuardrailsValidationFailureResponse,
8
3
  MessageStreamInterruptedResponse,
@@ -10,6 +5,11 @@ import {
10
5
  SuccessResponseStatus,
11
6
  UnknownErrorResponse
12
7
  } from "./chunk-U3V2BCGI.mjs";
8
+ import {
9
+ EmptyAdapter,
10
+ RemoteChain,
11
+ streamLangChainResponse
12
+ } from "./chunk-S3KKBII4.mjs";
13
13
  import {
14
14
  ActionExecutionMessage,
15
15
  AgentStateMessage,
@@ -38,7 +38,7 @@ var require_package = __commonJS({
38
38
  publishConfig: {
39
39
  access: "public"
40
40
  },
41
- version: "1.5.12-next.7",
41
+ version: "1.5.13-next.0",
42
42
  sideEffects: false,
43
43
  main: "./dist/index.js",
44
44
  module: "./dist/index.mjs",
@@ -2507,7 +2507,11 @@ please use an LLM adapter instead.`
2507
2507
  apiUrl: agentWithEndpoint.endpoint.deploymentUrl,
2508
2508
  apiKey: agentWithEndpoint.endpoint.langsmithApiKey
2509
2509
  });
2510
- const state = (await client.threads.getState(threadId)).values;
2510
+ let state = {};
2511
+ try {
2512
+ state = (await client.threads.getState(threadId)).values;
2513
+ } catch (error) {
2514
+ }
2511
2515
  if (Object.keys(state).length === 0) {
2512
2516
  return {
2513
2517
  threadId,
@@ -2516,7 +2520,6 @@ please use an LLM adapter instead.`
2516
2520
  messages: JSON.stringify([])
2517
2521
  };
2518
2522
  } else {
2519
- console.log(state);
2520
2523
  const { messages, ...stateWithoutMessages } = state;
2521
2524
  const copilotkitMessages = langchainMessagesToCopilotKit(messages);
2522
2525
  return {
@@ -3807,4 +3810,4 @@ export {
3807
3810
  getCommonConfig,
3808
3811
  copilotRuntimeNodeHttpEndpoint
3809
3812
  };
3810
- //# sourceMappingURL=chunk-34276UUU.mjs.map
3813
+ //# sourceMappingURL=chunk-HBCVNFMF.mjs.map