@copilotkit/runtime 1.2.0 → 1.2.2-feat-runtime-remote-actions.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 (75) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/__snapshots__/schema/schema.graphql +41 -0
  3. package/dist/{chunk-HCUZC4GO.mjs → chunk-2N45GS3P.mjs} +2 -2
  4. package/dist/{chunk-URMISMK2.mjs → chunk-73NMP3DI.mjs} +2 -2
  5. package/dist/{chunk-736EEICU.mjs → chunk-BJ2LVHWA.mjs} +3 -3
  6. package/dist/{chunk-ZHFBLKC3.mjs → chunk-T6O5FSTK.mjs} +2 -2
  7. package/dist/{chunk-GEIBJJQ4.mjs → chunk-TBZGOJJX.mjs} +14 -2
  8. package/dist/chunk-TBZGOJJX.mjs.map +1 -0
  9. package/dist/{chunk-3MYGPMKL.mjs → chunk-X5QBBMCJ.mjs} +2 -2
  10. package/dist/{chunk-3TQLJ3YL.mjs → chunk-XROLDARH.mjs} +786 -158
  11. package/dist/chunk-XROLDARH.mjs.map +1 -0
  12. package/dist/chunk-ZNZGATLW.mjs +260 -0
  13. package/dist/chunk-ZNZGATLW.mjs.map +1 -0
  14. package/dist/{shared-c5362338.d.ts → copilot-runtime-d427e991.d.ts} +65 -38
  15. package/dist/graphql/types/converted/index.d.ts +1 -1
  16. package/dist/graphql/types/converted/index.js +13 -0
  17. package/dist/graphql/types/converted/index.js.map +1 -1
  18. package/dist/graphql/types/converted/index.mjs +3 -1
  19. package/dist/{index-aa091e3c.d.ts → index-0476e4f7.d.ts} +24 -2
  20. package/dist/{index-13aa818e.d.ts → index-079752b9.d.ts} +1 -1
  21. package/dist/index.d.ts +7 -7
  22. package/dist/index.js +982 -245
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.mjs +8 -8
  25. package/dist/{langserve-a54438c6.d.ts → langserve-d6073a3b.d.ts} +24 -11
  26. package/dist/lib/index.d.ts +7 -7
  27. package/dist/lib/index.js +982 -245
  28. package/dist/lib/index.js.map +1 -1
  29. package/dist/lib/index.mjs +8 -8
  30. package/dist/lib/integrations/index.d.ts +6 -6
  31. package/dist/lib/integrations/index.js +437 -182
  32. package/dist/lib/integrations/index.js.map +1 -1
  33. package/dist/lib/integrations/index.mjs +6 -6
  34. package/dist/lib/integrations/nest/index.d.ts +5 -5
  35. package/dist/lib/integrations/nest/index.js +437 -182
  36. package/dist/lib/integrations/nest/index.js.map +1 -1
  37. package/dist/lib/integrations/nest/index.mjs +4 -4
  38. package/dist/lib/integrations/node-express/index.d.ts +5 -5
  39. package/dist/lib/integrations/node-express/index.js +437 -182
  40. package/dist/lib/integrations/node-express/index.js.map +1 -1
  41. package/dist/lib/integrations/node-express/index.mjs +4 -4
  42. package/dist/lib/integrations/node-http/index.d.ts +5 -5
  43. package/dist/lib/integrations/node-http/index.js +437 -182
  44. package/dist/lib/integrations/node-http/index.js.map +1 -1
  45. package/dist/lib/integrations/node-http/index.mjs +3 -3
  46. package/dist/service-adapters/index.d.ts +3 -3
  47. package/dist/service-adapters/index.js.map +1 -1
  48. package/dist/service-adapters/index.mjs +3 -3
  49. package/package.json +7 -5
  50. package/src/agents/langgraph/event-source.ts +222 -0
  51. package/src/agents/langgraph/events.ts +309 -0
  52. package/src/graphql/inputs/agent-session.input.ts +13 -0
  53. package/src/graphql/inputs/agent-state.input.ts +10 -0
  54. package/src/graphql/inputs/generate-copilot-response.input.ts +11 -0
  55. package/src/graphql/inputs/message.input.ts +30 -0
  56. package/src/graphql/resolvers/copilot.resolver.ts +56 -12
  57. package/src/graphql/types/converted/index.ts +15 -0
  58. package/src/graphql/types/copilot-response.type.ts +29 -0
  59. package/src/graphql/types/enums.ts +1 -0
  60. package/src/lib/index.ts +1 -1
  61. package/src/lib/integrations/shared.ts +1 -1
  62. package/src/lib/runtime/copilot-runtime.ts +360 -0
  63. package/src/lib/runtime/remote-actions.ts +241 -0
  64. package/src/service-adapters/conversion.ts +16 -0
  65. package/src/service-adapters/events.ts +101 -19
  66. package/dist/chunk-3TQLJ3YL.mjs.map +0 -1
  67. package/dist/chunk-GEIBJJQ4.mjs.map +0 -1
  68. package/dist/chunk-MHLJQ2RF.mjs +0 -158
  69. package/dist/chunk-MHLJQ2RF.mjs.map +0 -1
  70. package/src/lib/copilot-runtime.ts +0 -231
  71. /package/dist/{chunk-HCUZC4GO.mjs.map → chunk-2N45GS3P.mjs.map} +0 -0
  72. /package/dist/{chunk-URMISMK2.mjs.map → chunk-73NMP3DI.mjs.map} +0 -0
  73. /package/dist/{chunk-736EEICU.mjs.map → chunk-BJ2LVHWA.mjs.map} +0 -0
  74. /package/dist/{chunk-ZHFBLKC3.mjs.map → chunk-T6O5FSTK.mjs.map} +0 -0
  75. /package/dist/{chunk-3MYGPMKL.mjs.map → chunk-X5QBBMCJ.mjs.map} +0 -0
@@ -1,11 +1,62 @@
1
+ import { Parameter, Action } from '@copilotkit/shared';
2
+ import { C as CopilotServiceAdapter, R as RemoteChainParameters, A as ActionInput, F as ForwardedParametersInput, a as RuntimeEventSource } from './langserve-d6073a3b.js';
3
+ import { M as MessageInput, a as Message } from './index-0476e4f7.js';
1
4
  import * as graphql from 'graphql';
2
5
  import * as pino from 'pino';
3
6
  import { YogaInitialContext, createYoga } from 'graphql-yoga';
4
- import { Parameter, Action } from '@copilotkit/shared';
5
- import { R as RemoteChainParameters, A as ActionInput, C as CopilotServiceAdapter, F as ForwardedParametersInput, a as RuntimeEventSource } from './langserve-a54438c6.js';
6
- import { M as MessageInput, a as Message } from './index-aa091e3c.js';
7
7
  import { CopilotCloudOptions } from './lib/cloud/index.js';
8
8
 
9
+ type LogLevel = "debug" | "info" | "warn" | "error";
10
+
11
+ declare const logger: pino.Logger<never>;
12
+ type AnyPrimitive = string | boolean | number | null;
13
+ type CopilotRequestContextProperties = Record<string, AnyPrimitive | Record<string, AnyPrimitive>>;
14
+ type GraphQLContext = YogaInitialContext & {
15
+ _copilotkit: CreateCopilotRuntimeServerOptions;
16
+ properties: CopilotRequestContextProperties;
17
+ logger: typeof logger;
18
+ };
19
+ interface CreateCopilotRuntimeServerOptions {
20
+ runtime: CopilotRuntime<any>;
21
+ serviceAdapter: CopilotServiceAdapter;
22
+ endpoint: string;
23
+ baseUrl?: string;
24
+ cloud?: CopilotCloudOptions;
25
+ properties?: CopilotRequestContextProperties;
26
+ logLevel?: LogLevel;
27
+ }
28
+ declare function createContext(initialContext: YogaInitialContext, copilotKitContext: CreateCopilotRuntimeServerOptions, contextLogger: typeof logger, properties?: CopilotRequestContextProperties): Promise<Partial<GraphQLContext>>;
29
+ declare function buildSchema(options?: {
30
+ emitSchemaFile?: string;
31
+ }): graphql.GraphQLSchema;
32
+ type CommonConfig = {
33
+ logging: typeof logger;
34
+ schema: ReturnType<typeof buildSchema>;
35
+ plugins: Parameters<typeof createYoga>[0]["plugins"];
36
+ context: (ctx: YogaInitialContext) => Promise<Partial<GraphQLContext>>;
37
+ };
38
+ declare function getCommonConfig(options: CreateCopilotRuntimeServerOptions): CommonConfig;
39
+
40
+ declare class AgentStateInput {
41
+ agentName: string;
42
+ state: string;
43
+ }
44
+
45
+ type RemoteActionDefinition = {
46
+ url: string;
47
+ onBeforeRequest?: ({ ctx }: {
48
+ ctx: GraphQLContext;
49
+ }) => {
50
+ headers?: Record<string, string> | undefined;
51
+ };
52
+ };
53
+
54
+ declare class AgentSessionInput {
55
+ agentName: string;
56
+ threadId?: string;
57
+ nodeName?: string;
58
+ }
59
+
9
60
  /**
10
61
  * <Callout type="info">
11
62
  * This is the reference for the `CopilotRuntime` class. For more information and example code snippets, please see [Concept: Copilot Runtime](/concepts/copilot-runtime).
@@ -24,19 +75,22 @@ interface CopilotRuntimeRequest {
24
75
  serviceAdapter: CopilotServiceAdapter;
25
76
  messages: MessageInput[];
26
77
  actions: ActionInput[];
78
+ agentSession?: AgentSessionInput;
79
+ agentStates?: AgentStateInput[];
27
80
  outputMessagesPromise: Promise<Message[]>;
28
- properties: any;
29
81
  threadId?: string;
30
82
  runId?: string;
31
83
  publicApiKey?: string;
32
- url?: string;
84
+ graphqlContext: GraphQLContext;
33
85
  forwardedParameters?: ForwardedParametersInput;
86
+ url?: string;
34
87
  }
35
88
  interface CopilotRuntimeResponse {
36
89
  threadId: string;
37
90
  runId?: string;
38
91
  eventSource: RuntimeEventSource;
39
- actions: Action<any>[];
92
+ serverSideActions: Action<any>[];
93
+ actionInputsWithoutAgents: ActionInput[];
40
94
  }
41
95
  type ActionsConfiguration<T extends Parameter[] | [] = []> = Action<T>[] | ((ctx: {
42
96
  properties: any;
@@ -94,47 +148,20 @@ interface CopilotRuntimeConstructorParams<T extends Parameter[] | [] = []> {
94
148
  */
95
149
  middleware?: Middleware;
96
150
  actions?: ActionsConfiguration<T>;
151
+ remoteActions?: RemoteActionDefinition[];
97
152
  langserve?: RemoteChainParameters[];
98
153
  }
99
154
  declare class CopilotRuntime<const T extends Parameter[] | [] = []> {
100
155
  actions: ActionsConfiguration<T>;
156
+ private remoteActionDefinitions;
101
157
  private langserve;
102
158
  private onBeforeRequest?;
103
159
  private onAfterRequest?;
104
160
  constructor(params?: CopilotRuntimeConstructorParams<T>);
105
- process(request: CopilotRuntimeRequest): Promise<CopilotRuntimeResponse>;
161
+ processRuntimeRequest(request: CopilotRuntimeRequest): Promise<CopilotRuntimeResponse>;
162
+ private processAgentRequest;
163
+ private getServerSideActions;
106
164
  }
107
165
  declare function flattenToolCallsNoDuplicates(toolsByPriority: ActionInput[]): ActionInput[];
108
166
 
109
- type LogLevel = "debug" | "info" | "warn" | "error";
110
-
111
- declare const logger: pino.Logger<never>;
112
- type AnyPrimitive = string | boolean | number | null;
113
- type CopilotRequestContextProperties = Record<string, AnyPrimitive | Record<string, AnyPrimitive>>;
114
- type GraphQLContext = YogaInitialContext & {
115
- _copilotkit: CreateCopilotRuntimeServerOptions;
116
- properties: CopilotRequestContextProperties;
117
- logger: typeof logger;
118
- };
119
- interface CreateCopilotRuntimeServerOptions {
120
- runtime: CopilotRuntime<any>;
121
- serviceAdapter: CopilotServiceAdapter;
122
- endpoint: string;
123
- baseUrl?: string;
124
- cloud?: CopilotCloudOptions;
125
- properties?: CopilotRequestContextProperties;
126
- logLevel?: LogLevel;
127
- }
128
- declare function createContext(initialContext: YogaInitialContext, copilotKitContext: CreateCopilotRuntimeServerOptions, contextLogger: typeof logger, properties?: CopilotRequestContextProperties): Promise<Partial<GraphQLContext>>;
129
- declare function buildSchema(options?: {
130
- emitSchemaFile?: string;
131
- }): graphql.GraphQLSchema;
132
- type CommonConfig = {
133
- logging: typeof logger;
134
- schema: ReturnType<typeof buildSchema>;
135
- plugins: Parameters<typeof createYoga>[0]["plugins"];
136
- context: (ctx: YogaInitialContext) => Promise<Partial<GraphQLContext>>;
137
- };
138
- declare function getCommonConfig(options: CreateCopilotRuntimeServerOptions): CommonConfig;
139
-
140
167
  export { CopilotRuntimeConstructorParams as C, GraphQLContext as G, CopilotRuntime as a, CopilotRequestContextProperties as b, CreateCopilotRuntimeServerOptions as c, createContext as d, buildSchema as e, flattenToolCallsNoDuplicates as f, CommonConfig as g, getCommonConfig as h };
@@ -1,2 +1,2 @@
1
- export { A as ActionExecutionMessage, a as Message, R as ResultMessage, T as TextMessage } from '../../../index-aa091e3c.js';
1
+ export { A as ActionExecutionMessage, b as AgentStateMessage, a as Message, R as ResultMessage, T as TextMessage } from '../../../index-0476e4f7.js';
2
2
  import '../base/index.js';
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var converted_exports = {};
22
22
  __export(converted_exports, {
23
23
  ActionExecutionMessage: () => ActionExecutionMessage,
24
+ AgentStateMessage: () => AgentStateMessage,
24
25
  ResultMessage: () => ResultMessage,
25
26
  TextMessage: () => TextMessage
26
27
  });
@@ -79,9 +80,21 @@ var ResultMessage = class extends BaseMessage {
79
80
  result;
80
81
  };
81
82
  __name(ResultMessage, "ResultMessage");
83
+ var AgentStateMessage = class extends BaseMessage {
84
+ threadId;
85
+ agentName;
86
+ nodeName;
87
+ runId;
88
+ active;
89
+ role;
90
+ state;
91
+ running;
92
+ };
93
+ __name(AgentStateMessage, "AgentStateMessage");
82
94
  // Annotate the CommonJS export names for ESM import in node:
83
95
  0 && (module.exports = {
84
96
  ActionExecutionMessage,
97
+ AgentStateMessage,
85
98
  ResultMessage,
86
99
  TextMessage
87
100
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/graphql/types/converted/index.ts","../../../../src/graphql/types/base/index.ts"],"sourcesContent":["import {\n ActionExecutionMessageInput,\n ResultMessageInput,\n TextMessageInput,\n} from \"../../inputs/message.input\";\nimport { BaseMessage } from \"../base\";\nimport { ActionExecutionScope, MessageRole } from \"../enums\";\n\nexport class TextMessage extends BaseMessage implements TextMessageInput {\n content: string;\n role: MessageRole;\n}\n\nexport type Message = BaseMessage;\n\nexport class ActionExecutionMessage\n extends BaseMessage\n implements Omit<ActionExecutionMessageInput, \"arguments\">\n{\n name: string;\n arguments: Record<string, any>;\n scope: ActionExecutionScope;\n}\n\nexport class ResultMessage extends BaseMessage implements ResultMessageInput {\n actionExecutionId: string;\n actionName: string;\n result: string;\n}\n","import { Field, InputType } from \"type-graphql\";\n\n@InputType()\nexport class BaseMessage {\n @Field(() => String)\n id: string;\n\n @Field(() => Date)\n createdAt: Date;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAKA;;;;;;;;;ACLA,0BAAiC;;;;;;;;;;;;;;;;;AAG1B,IAAMA,cAAN,MAAMA;EAEXC;EAGAC;AACF;AANaF;;MACVG,2BAAM,MAAMC,MAAAA;;GADFJ,YAAAA,WAAAA,MAAAA,MAAAA;;MAIVG,2BAAM,MAAME,IAAAA;qCACF,SAAA,cAAA,SAAA,IAAA;GALAL,YAAAA,WAAAA,aAAAA,MAAAA;AAAAA,cAAAA,aAAAA;MADZM,+BAAAA;GACYN,WAAAA;;;ADKN,IAAMO,cAAN,cAA0BC,YAAAA;EAC/BC;EACAC;AACF;AAHaH;AAON,IAAMI,yBAAN,cACGH,YAAAA;EAGRI;EACAC;EACAC;AACF;AAPaH;AASN,IAAMI,gBAAN,cAA4BP,YAAAA;EACjCQ;EACAC;EACAC;AACF;AAJaH;","names":["BaseMessage","id","createdAt","Field","String","Date","InputType","TextMessage","BaseMessage","content","role","ActionExecutionMessage","name","arguments","scope","ResultMessage","actionExecutionId","actionName","result"]}
1
+ {"version":3,"sources":["../../../../src/graphql/types/converted/index.ts","../../../../src/graphql/types/base/index.ts"],"sourcesContent":["import {\n ActionExecutionMessageInput,\n ResultMessageInput,\n TextMessageInput,\n AgentStateMessageInput,\n} from \"../../inputs/message.input\";\nimport { BaseMessage } from \"../base\";\nimport { ActionExecutionScope, MessageRole } from \"../enums\";\n\nexport class TextMessage extends BaseMessage implements TextMessageInput {\n content: string;\n role: MessageRole;\n}\n\nexport type Message = BaseMessage;\n\nexport class ActionExecutionMessage\n extends BaseMessage\n implements Omit<ActionExecutionMessageInput, \"arguments\">\n{\n name: string;\n arguments: Record<string, any>;\n scope: ActionExecutionScope;\n}\n\nexport class ResultMessage extends BaseMessage implements ResultMessageInput {\n actionExecutionId: string;\n actionName: string;\n result: string;\n}\n\nexport class AgentStateMessage\n extends BaseMessage\n implements Omit<AgentStateMessageInput, \"state\">\n{\n threadId: string;\n agentName: string;\n nodeName: string;\n runId: string;\n active: boolean;\n role: MessageRole;\n state: any;\n running: boolean;\n}\n","import { Field, InputType } from \"type-graphql\";\n\n@InputType()\nexport class BaseMessage {\n @Field(() => String)\n id: string;\n\n @Field(() => Date)\n createdAt: Date;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAMA;;;;;;;;;;ACNA,0BAAiC;;;;;;;;;;;;;;;;;AAG1B,IAAMA,cAAN,MAAMA;EAEXC;EAGAC;AACF;AANaF;;MACVG,2BAAM,MAAMC,MAAAA;;GADFJ,YAAAA,WAAAA,MAAAA,MAAAA;;MAIVG,2BAAM,MAAME,IAAAA;qCACF,SAAA,cAAA,SAAA,IAAA;GALAL,YAAAA,WAAAA,aAAAA,MAAAA;AAAAA,cAAAA,aAAAA;MADZM,+BAAAA;GACYN,WAAAA;;;ADMN,IAAMO,cAAN,cAA0BC,YAAAA;EAC/BC;EACAC;AACF;AAHaH;AAON,IAAMI,yBAAN,cACGH,YAAAA;EAGRI;EACAC;EACAC;AACF;AAPaH;AASN,IAAMI,gBAAN,cAA4BP,YAAAA;EACjCQ;EACAC;EACAC;AACF;AAJaH;AAMN,IAAMI,oBAAN,cACGX,YAAAA;EAGRY;EACAC;EACAC;EACAC;EACAC;EACAd;EACAe;EACAC;AACF;AAZaP;","names":["BaseMessage","id","createdAt","Field","String","Date","InputType","TextMessage","BaseMessage","content","role","ActionExecutionMessage","name","arguments","scope","ResultMessage","actionExecutionId","actionName","result","AgentStateMessage","threadId","agentName","nodeName","runId","active","state","running"]}
@@ -1,12 +1,14 @@
1
1
  import {
2
2
  ActionExecutionMessage,
3
+ AgentStateMessage,
3
4
  ResultMessage,
4
5
  TextMessage
5
- } from "../../../chunk-GEIBJJQ4.mjs";
6
+ } from "../../../chunk-TBZGOJJX.mjs";
6
7
  import "../../../chunk-RMZWGQ46.mjs";
7
8
  import "../../../chunk-44O2JGUY.mjs";
8
9
  export {
9
10
  ActionExecutionMessage,
11
+ AgentStateMessage,
10
12
  ResultMessage,
11
13
  TextMessage
12
14
  };
@@ -7,13 +7,15 @@ declare enum MessageRole {
7
7
  }
8
8
  declare enum ActionExecutionScope {
9
9
  server = "server",
10
- client = "client"
10
+ client = "client",
11
+ passThrough = "passThrough"
11
12
  }
12
13
 
13
14
  declare class MessageInput extends BaseMessage {
14
15
  textMessage?: TextMessageInput;
15
16
  actionExecutionMessage?: ActionExecutionMessageInput;
16
17
  resultMessage?: ResultMessageInput;
18
+ agentStateMessage?: AgentStateMessageInput;
17
19
  }
18
20
  declare class TextMessageInput {
19
21
  content: string;
@@ -29,6 +31,16 @@ declare class ResultMessageInput {
29
31
  actionName: string;
30
32
  result: string;
31
33
  }
34
+ declare class AgentStateMessageInput {
35
+ threadId: string;
36
+ agentName: string;
37
+ role: MessageRole;
38
+ state: string;
39
+ running: boolean;
40
+ nodeName: string;
41
+ runId: string;
42
+ active: boolean;
43
+ }
32
44
 
33
45
  declare class TextMessage extends BaseMessage implements TextMessageInput {
34
46
  content: string;
@@ -45,5 +57,15 @@ declare class ResultMessage extends BaseMessage implements ResultMessageInput {
45
57
  actionName: string;
46
58
  result: string;
47
59
  }
60
+ declare class AgentStateMessage extends BaseMessage implements Omit<AgentStateMessageInput, "state"> {
61
+ threadId: string;
62
+ agentName: string;
63
+ nodeName: string;
64
+ runId: string;
65
+ active: boolean;
66
+ role: MessageRole;
67
+ state: any;
68
+ running: boolean;
69
+ }
48
70
 
49
- export { ActionExecutionMessage as A, MessageInput as M, ResultMessage as R, TextMessage as T, Message as a };
71
+ export { ActionExecutionMessage as A, MessageInput as M, ResultMessage as R, TextMessage as T, Message as a, AgentStateMessage as b };
@@ -1,4 +1,4 @@
1
- import { C as CopilotServiceAdapter, b as CopilotRuntimeChatCompletionRequest, c as CopilotRuntimeChatCompletionResponse } from './langserve-a54438c6.js';
1
+ import { C as CopilotServiceAdapter, b as CopilotRuntimeChatCompletionRequest, c as CopilotRuntimeChatCompletionResponse } from './langserve-d6073a3b.js';
2
2
  import OpenAI from 'openai';
3
3
  import { GenerativeModel } from '@google/generative-ai';
4
4
  import { BaseMessageChunk, AIMessage, AIMessageChunk, BaseMessage } from '@langchain/core/messages';
package/dist/index.d.ts CHANGED
@@ -1,18 +1,18 @@
1
- export { g as CommonConfig, b as CopilotRequestContextProperties, a as CopilotRuntime, C as CopilotRuntimeConstructorParams, c as CreateCopilotRuntimeServerOptions, G as GraphQLContext, e as buildSchema, d as createContext, f as flattenToolCallsNoDuplicates, h as getCommonConfig } from './shared-c5362338.js';
2
- export { G as GoogleGenerativeAIAdapter, f as GroqAdapter, e as GroqAdapterParams, L as LangChainAdapter, a as OpenAIAdapter, O as OpenAIAdapterParams, c as OpenAIAssistantAdapter, b as OpenAIAssistantAdapterParams, d as UnifyAdapter, U as UnifyAdapterParams } from './index-13aa818e.js';
1
+ export { g as CommonConfig, b as CopilotRequestContextProperties, a as CopilotRuntime, C as CopilotRuntimeConstructorParams, c as CreateCopilotRuntimeServerOptions, G as GraphQLContext, e as buildSchema, d as createContext, f as flattenToolCallsNoDuplicates, h as getCommonConfig } from './copilot-runtime-d427e991.js';
2
+ export { G as GoogleGenerativeAIAdapter, f as GroqAdapter, e as GroqAdapterParams, L as LangChainAdapter, a as OpenAIAdapter, O as OpenAIAdapterParams, c as OpenAIAssistantAdapter, b as OpenAIAssistantAdapterParams, d as UnifyAdapter, U as UnifyAdapterParams } from './index-079752b9.js';
3
3
  export { CopilotRuntimeServerInstance, config, copilotRuntimeNextJSAppRouterEndpoint, copilotRuntimeNextJSPagesRouterEndpoint } from './lib/integrations/index.js';
4
4
  export { copilotRuntimeNodeHttpEndpoint } from './lib/integrations/node-http/index.js';
5
5
  export { copilotRuntimeNodeExpressEndpoint } from './lib/integrations/node-express/index.js';
6
6
  export { copilotRuntimeNestEndpoint } from './lib/integrations/nest/index.js';
7
7
  export { GuardrailsValidationFailureResponse, MessageStreamInterruptedResponse, UnknownErrorResponse } from './utils/index.js';
8
- import 'graphql';
9
- import 'pino';
10
- import 'graphql-yoga';
11
8
  import '@copilotkit/shared';
12
- import './langserve-a54438c6.js';
13
- import './index-aa091e3c.js';
9
+ import './langserve-d6073a3b.js';
10
+ import './index-0476e4f7.js';
14
11
  import './graphql/types/base/index.js';
15
12
  import 'rxjs';
13
+ import 'graphql';
14
+ import 'pino';
15
+ import 'graphql-yoga';
16
16
  import './lib/cloud/index.js';
17
17
  import 'openai';
18
18
  import '@google/generative-ai';