@copilotkit/runtime 1.9.2-next.6 → 1.9.2-next.7

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 (33) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/{chunk-6FLO2QTT.mjs → chunk-2PQGAIVB.mjs} +19 -2
  3. package/dist/chunk-2PQGAIVB.mjs.map +1 -0
  4. package/dist/{chunk-JZWHLURE.mjs → chunk-2UAJCT5X.mjs} +2 -2
  5. package/dist/{chunk-K4JQLKXK.mjs → chunk-GW6ERFKI.mjs} +2 -2
  6. package/dist/{chunk-RCIYK6YJ.mjs → chunk-HB4D2KJC.mjs} +7 -7
  7. package/dist/{chunk-RCIYK6YJ.mjs.map → chunk-HB4D2KJC.mjs.map} +1 -1
  8. package/dist/{chunk-6AD7VT26.mjs → chunk-LSB3QZHS.mjs} +2 -2
  9. package/dist/index.js +18 -1
  10. package/dist/index.js.map +1 -1
  11. package/dist/index.mjs +10 -10
  12. package/dist/lib/index.d.ts +2 -1
  13. package/dist/lib/index.js +18 -1
  14. package/dist/lib/index.js.map +1 -1
  15. package/dist/lib/index.mjs +6 -6
  16. package/dist/lib/integrations/index.js +1 -1
  17. package/dist/lib/integrations/index.js.map +1 -1
  18. package/dist/lib/integrations/index.mjs +5 -5
  19. package/dist/lib/integrations/nest/index.js +1 -1
  20. package/dist/lib/integrations/nest/index.js.map +1 -1
  21. package/dist/lib/integrations/nest/index.mjs +3 -3
  22. package/dist/lib/integrations/node-express/index.js +1 -1
  23. package/dist/lib/integrations/node-express/index.js.map +1 -1
  24. package/dist/lib/integrations/node-express/index.mjs +3 -3
  25. package/dist/lib/integrations/node-http/index.js +1 -1
  26. package/dist/lib/integrations/node-http/index.js.map +1 -1
  27. package/dist/lib/integrations/node-http/index.mjs +2 -2
  28. package/package.json +2 -2
  29. package/src/lib/runtime/langgraph/langgraph-agent.ts +12 -0
  30. package/dist/chunk-6FLO2QTT.mjs.map +0 -1
  31. /package/dist/{chunk-JZWHLURE.mjs.map → chunk-2UAJCT5X.mjs.map} +0 -0
  32. /package/dist/{chunk-K4JQLKXK.mjs.map → chunk-GW6ERFKI.mjs.map} +0 -0
  33. /package/dist/{chunk-6AD7VT26.mjs.map → chunk-LSB3QZHS.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  CustomEventNames,
3
3
  LangGraphAgent
4
- } from "./chunk-6FLO2QTT.mjs";
4
+ } from "./chunk-2PQGAIVB.mjs";
5
5
  import {
6
6
  config,
7
7
  copilotRuntimeNextJSAppRouterEndpoint,
8
8
  copilotRuntimeNextJSPagesRouterEndpoint
9
- } from "./chunk-6AD7VT26.mjs";
9
+ } from "./chunk-LSB3QZHS.mjs";
10
10
  import {
11
11
  copilotRuntimeNestEndpoint
12
- } from "./chunk-K4JQLKXK.mjs";
12
+ } from "./chunk-GW6ERFKI.mjs";
13
13
  import {
14
14
  copilotRuntimeNodeExpressEndpoint
15
- } from "./chunk-JZWHLURE.mjs";
15
+ } from "./chunk-2UAJCT5X.mjs";
16
16
  import {
17
17
  CopilotRuntime,
18
18
  addCustomHeaderPlugin,
@@ -28,12 +28,7 @@ import {
28
28
  getCommonConfig,
29
29
  langGraphPlatformEndpoint,
30
30
  resolveEndpointType
31
- } from "./chunk-RCIYK6YJ.mjs";
32
- import {
33
- GuardrailsValidationFailureResponse,
34
- MessageStreamInterruptedResponse,
35
- UnknownErrorResponse
36
- } from "./chunk-5BIEM2UU.mjs";
31
+ } from "./chunk-HB4D2KJC.mjs";
37
32
  import {
38
33
  AnthropicAdapter,
39
34
  BedrockAdapter,
@@ -48,6 +43,11 @@ import {
48
43
  RemoteChain,
49
44
  UnifyAdapter
50
45
  } from "./chunk-IIXJVVTV.mjs";
46
+ import {
47
+ GuardrailsValidationFailureResponse,
48
+ MessageStreamInterruptedResponse,
49
+ UnknownErrorResponse
50
+ } from "./chunk-5BIEM2UU.mjs";
51
51
  import "./chunk-SHBDMA63.mjs";
52
52
  import "./chunk-2OZAGFV3.mjs";
53
53
  import "./chunk-FHD4JECV.mjs";
@@ -6,7 +6,7 @@ export { copilotRuntimeNodeExpressEndpoint } from './integrations/node-express/i
6
6
  export { copilotRuntimeNestEndpoint } from './integrations/nest/index.js';
7
7
  import * as rxjs from 'rxjs';
8
8
  import { TextMessageStartEvent, TextMessageContentEvent, TextMessageEndEvent, ToolCallStartEvent, ToolCallArgsEvent, ToolCallEndEvent, RunAgentInput } from '@ag-ui/client';
9
- import { LangGraphAgent as LangGraphAgent$1, LangGraphAgentConfig, ProcessedEvents } from '@ag-ui/langgraph';
9
+ import { LangGraphAgent as LangGraphAgent$1, LangGraphAgentConfig, ProcessedEvents, SchemaKeys } from '@ag-ui/langgraph';
10
10
  import { Message } from '@langchain/langgraph-sdk/dist/types.messages';
11
11
  import 'openai';
12
12
  import '../langserve-4a5c9217.js';
@@ -41,6 +41,7 @@ declare class LangGraphAgent extends LangGraphAgent$1 {
41
41
  dispatchEvent(event: ProcessedEvents): boolean;
42
42
  run(input: RunAgentInput): rxjs.Observable<any>;
43
43
  langGraphDefaultMergeState(state: State, messages: Message[], tools: any): State;
44
+ getSchemaKeys(): Promise<SchemaKeys>;
44
45
  }
45
46
 
46
47
  export { CustomEventNames, LangGraphAgent, PredictStateTool, State, TextMessageEvents, ToolCallEvents };
package/dist/lib/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.6",
47
+ version: "1.9.2-next.7",
48
48
  sideEffects: false,
49
49
  main: "./dist/index.js",
50
50
  module: "./dist/index.mjs",
@@ -7255,6 +7255,23 @@ var LangGraphAgent = class extends import_langgraph.LangGraphAgent {
7255
7255
  }
7256
7256
  };
7257
7257
  }
7258
+ async getSchemaKeys() {
7259
+ const CONSTANT_KEYS = [
7260
+ "copilotkit"
7261
+ ];
7262
+ const schemaKeys = await super.getSchemaKeys();
7263
+ return {
7264
+ config: schemaKeys.config,
7265
+ input: schemaKeys.input ? [
7266
+ ...schemaKeys.input,
7267
+ ...CONSTANT_KEYS
7268
+ ] : null,
7269
+ output: schemaKeys.output ? [
7270
+ ...schemaKeys.output,
7271
+ ...CONSTANT_KEYS
7272
+ ] : null
7273
+ };
7274
+ }
7258
7275
  };
7259
7276
  __name(LangGraphAgent, "LangGraphAgent");
7260
7277
  // Annotate the CommonJS export names for ESM import in node: