@copilotkit/runtime 1.5.15-next.2 → 1.5.15-next.4
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 +17 -0
- package/__snapshots__/schema/schema.graphql +26 -0
- package/dist/{chunk-C2HNOETE.mjs → chunk-6Z3DFNOC.mjs} +2 -2
- package/dist/{chunk-OTB2F27M.mjs → chunk-EC2ZHPRU.mjs} +2 -2
- package/dist/{chunk-I33ESKDS.mjs → chunk-QDK4OP2Y.mjs} +2 -2
- package/dist/{chunk-4KT3HMC3.mjs → chunk-W4G47FRC.mjs} +539 -303
- package/dist/chunk-W4G47FRC.mjs.map +1 -0
- package/dist/{copilot-runtime-e6c34790.d.ts → copilot-runtime-a113045f.d.ts} +13 -1
- package/dist/{groq-adapter-acb6ed0b.d.ts → groq-adapter-248058e8.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +808 -574
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{langserve-9614171f.d.ts → langserve-9580bd66.d.ts} +16 -2
- package/dist/lib/index.d.ts +3 -3
- package/dist/lib/index.js +808 -574
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +4 -4
- package/dist/lib/integrations/index.d.ts +3 -3
- package/dist/lib/integrations/index.js +500 -319
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +4 -4
- package/dist/lib/integrations/nest/index.d.ts +2 -2
- package/dist/lib/integrations/nest/index.js +500 -319
- 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.d.ts +2 -2
- package/dist/lib/integrations/node-express/index.js +500 -319
- 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.d.ts +2 -2
- package/dist/lib/integrations/node-http/index.js +500 -319
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +1 -1
- package/dist/service-adapters/index.d.ts +3 -3
- package/package.json +3 -3
- package/src/agents/langgraph/event-source.ts +14 -2
- package/src/agents/langgraph/events.ts +12 -1
- package/src/graphql/inputs/generate-copilot-response.input.ts +4 -0
- package/src/graphql/inputs/meta-event.input.ts +17 -0
- package/src/graphql/resolvers/copilot.resolver.ts +67 -22
- package/src/graphql/types/copilot-response.type.ts +6 -0
- package/src/graphql/types/meta-events.type.ts +31 -0
- package/src/lib/runtime/copilot-runtime.ts +14 -0
- package/src/lib/runtime/remote-action-constructors.ts +5 -1
- package/src/lib/runtime/remote-actions.ts +2 -0
- package/src/lib/runtime/remote-lg-action.ts +46 -10
- package/src/service-adapters/events.ts +20 -1
- package/dist/chunk-4KT3HMC3.mjs.map +0 -1
- /package/dist/{chunk-C2HNOETE.mjs.map → chunk-6Z3DFNOC.mjs.map} +0 -0
- /package/dist/{chunk-OTB2F27M.mjs.map → chunk-EC2ZHPRU.mjs.map} +0 -0
- /package/dist/{chunk-I33ESKDS.mjs.map → chunk-QDK4OP2Y.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @copilotkit/runtime
|
|
2
2
|
|
|
3
|
+
## 1.5.15-next.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7b3141d: - feat(interrupt): support LG interrupt with useLangGraphInterrupt hook
|
|
8
|
+
- chore(interrupt): add e2e test to interrupt functionality
|
|
9
|
+
- feat(interrupt): add support for multiple interrupts and conditions
|
|
10
|
+
- Updated dependencies [7b3141d]
|
|
11
|
+
- @copilotkit/shared@1.5.15-next.4
|
|
12
|
+
|
|
13
|
+
## 1.5.15-next.3
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- c14f9db: - add headers handling to other LangGraphClients
|
|
18
|
+
- @copilotkit/shared@1.5.15-next.3
|
|
19
|
+
|
|
3
20
|
## 1.5.15-next.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -86,6 +86,11 @@ interface BaseMessageOutput {
|
|
|
86
86
|
status: MessageStatus!
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
interface BaseMetaEvent {
|
|
90
|
+
name: MetaEventName!
|
|
91
|
+
type: String!
|
|
92
|
+
}
|
|
93
|
+
|
|
89
94
|
interface BaseResponseStatus {
|
|
90
95
|
code: ResponseStatusCode!
|
|
91
96
|
}
|
|
@@ -106,6 +111,7 @@ enum CopilotRequestType {
|
|
|
106
111
|
type CopilotResponse {
|
|
107
112
|
extensions: ExtensionsResponse
|
|
108
113
|
messages: [BaseMessageOutput!]!
|
|
114
|
+
metaEvents: [BaseMetaEvent!]
|
|
109
115
|
runId: String
|
|
110
116
|
status: ResponseStatus!
|
|
111
117
|
threadId: String!
|
|
@@ -165,6 +171,7 @@ input GenerateCopilotResponseInput {
|
|
|
165
171
|
forwardedParameters: ForwardedParametersInput
|
|
166
172
|
frontend: FrontendInput!
|
|
167
173
|
messages: [MessageInput!]!
|
|
174
|
+
metaEvents: [MetaEventInput!]
|
|
168
175
|
metadata: GenerateCopilotResponseMetadataInput!
|
|
169
176
|
runId: String
|
|
170
177
|
threadId: String
|
|
@@ -193,6 +200,13 @@ The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](
|
|
|
193
200
|
"""
|
|
194
201
|
scalar JSONObject @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
|
|
195
202
|
|
|
203
|
+
type LangGraphInterruptEvent implements BaseMetaEvent {
|
|
204
|
+
name: MetaEventName!
|
|
205
|
+
response: String
|
|
206
|
+
type: String!
|
|
207
|
+
value: String!
|
|
208
|
+
}
|
|
209
|
+
|
|
196
210
|
input LoadAgentStateInput {
|
|
197
211
|
agentName: String!
|
|
198
212
|
threadId: String!
|
|
@@ -230,6 +244,18 @@ enum MessageStatusCode {
|
|
|
230
244
|
Success
|
|
231
245
|
}
|
|
232
246
|
|
|
247
|
+
input MetaEventInput {
|
|
248
|
+
name: MetaEventName!
|
|
249
|
+
response: String
|
|
250
|
+
type: String! = "MetaEvent"
|
|
251
|
+
value: String!
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
"""Meta event types"""
|
|
255
|
+
enum MetaEventName {
|
|
256
|
+
LangGraphInterruptEvent
|
|
257
|
+
}
|
|
258
|
+
|
|
233
259
|
type Mutation {
|
|
234
260
|
generateCopilotResponse(data: GenerateCopilotResponseInput!, properties: JSONObject): CopilotResponse!
|
|
235
261
|
}
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-W4G47FRC.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-44O2JGUY.mjs";
|
|
@@ -22,4 +22,4 @@ __name(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
|
|
|
22
22
|
export {
|
|
23
23
|
copilotRuntimeNestEndpoint
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-6Z3DFNOC.mjs.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
copilotRuntimeNodeHttpEndpoint,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-W4G47FRC.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-44O2JGUY.mjs";
|
|
@@ -22,4 +22,4 @@ __name(copilotRuntimeNodeExpressEndpoint, "copilotRuntimeNodeExpressEndpoint");
|
|
|
22
22
|
export {
|
|
23
23
|
copilotRuntimeNodeExpressEndpoint
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-EC2ZHPRU.mjs.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getCommonConfig,
|
|
3
3
|
getRuntimeInstanceTelemetryInfo,
|
|
4
4
|
telemetry_client_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-W4G47FRC.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-44O2JGUY.mjs";
|
|
@@ -77,4 +77,4 @@ export {
|
|
|
77
77
|
config,
|
|
78
78
|
copilotRuntimeNextJSPagesRouterEndpoint
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-QDK4OP2Y.mjs.map
|