@copilotkit/runtime 1.5.9 → 1.5.10
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 +22 -0
- package/__snapshots__/schema/schema.graphql +273 -0
- package/dist/chunk-44O2JGUY.mjs +12 -0
- package/dist/chunk-44O2JGUY.mjs.map +1 -0
- package/dist/chunk-CLGKEUOA.mjs +1408 -0
- package/dist/chunk-CLGKEUOA.mjs.map +1 -0
- package/dist/chunk-D2WLFQS6.mjs +43 -0
- package/dist/chunk-D2WLFQS6.mjs.map +1 -0
- package/dist/chunk-DFOKBSIS.mjs +1 -0
- package/dist/chunk-DFOKBSIS.mjs.map +1 -0
- package/dist/chunk-EH6BECEX.mjs +25 -0
- package/dist/chunk-EH6BECEX.mjs.map +1 -0
- package/dist/chunk-HKF5IS6J.mjs +3395 -0
- package/dist/chunk-HKF5IS6J.mjs.map +1 -0
- package/dist/chunk-O3VDLEP4.mjs +80 -0
- package/dist/chunk-O3VDLEP4.mjs.map +1 -0
- package/dist/chunk-RFF5IIZJ.mjs +66 -0
- package/dist/chunk-RFF5IIZJ.mjs.map +1 -0
- package/dist/chunk-U3V2BCGI.mjs +152 -0
- package/dist/chunk-U3V2BCGI.mjs.map +1 -0
- package/dist/chunk-XFOOQKZE.mjs +25 -0
- package/dist/chunk-XFOOQKZE.mjs.map +1 -0
- package/dist/copilot-runtime-36700e00.d.ts +196 -0
- package/dist/graphql/types/base/index.d.ts +6 -0
- package/dist/graphql/types/base/index.js +63 -0
- package/dist/graphql/types/base/index.js.map +1 -0
- package/dist/graphql/types/base/index.mjs +8 -0
- package/dist/graphql/types/base/index.mjs.map +1 -0
- package/dist/graphql/types/converted/index.d.ts +2 -0
- package/dist/graphql/types/converted/index.js +124 -0
- package/dist/graphql/types/converted/index.js.map +1 -0
- package/dist/graphql/types/converted/index.mjs +17 -0
- package/dist/graphql/types/converted/index.mjs.map +1 -0
- package/dist/groq-adapter-696b5d29.d.ts +281 -0
- package/dist/index-cc2b17be.d.ts +87 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +5153 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +76 -0
- package/dist/index.mjs.map +1 -0
- package/dist/langserve-9125a12e.d.ts +176 -0
- package/dist/lib/cloud/index.d.ts +6 -0
- package/dist/lib/cloud/index.js +18 -0
- package/dist/lib/cloud/index.js.map +1 -0
- package/dist/lib/cloud/index.mjs +1 -0
- package/dist/lib/cloud/index.mjs.map +1 -0
- package/dist/lib/index.d.ts +20 -0
- package/dist/lib/index.js +4801 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/index.mjs +58 -0
- package/dist/lib/index.mjs.map +1 -0
- package/dist/lib/integrations/index.d.ts +33 -0
- package/dist/lib/integrations/index.js +2166 -0
- package/dist/lib/integrations/index.js.map +1 -0
- package/dist/lib/integrations/index.mjs +34 -0
- package/dist/lib/integrations/index.mjs.map +1 -0
- package/dist/lib/integrations/nest/index.d.ts +14 -0
- package/dist/lib/integrations/nest/index.js +2075 -0
- package/dist/lib/integrations/nest/index.js.map +1 -0
- package/dist/lib/integrations/nest/index.mjs +13 -0
- package/dist/lib/integrations/nest/index.mjs.map +1 -0
- package/dist/lib/integrations/node-express/index.d.ts +14 -0
- package/dist/lib/integrations/node-express/index.js +2075 -0
- package/dist/lib/integrations/node-express/index.js.map +1 -0
- package/dist/lib/integrations/node-express/index.mjs +13 -0
- package/dist/lib/integrations/node-express/index.mjs.map +1 -0
- package/dist/lib/integrations/node-http/index.d.ts +14 -0
- package/dist/lib/integrations/node-http/index.js +2061 -0
- package/dist/lib/integrations/node-http/index.js.map +1 -0
- package/dist/lib/integrations/node-http/index.mjs +12 -0
- package/dist/lib/integrations/node-http/index.mjs.map +1 -0
- package/dist/service-adapters/index.d.ts +84 -0
- package/dist/service-adapters/index.js +1448 -0
- package/dist/service-adapters/index.js.map +1 -0
- package/dist/service-adapters/index.mjs +26 -0
- package/dist/service-adapters/index.mjs.map +1 -0
- package/dist/utils/index.d.ts +49 -0
- package/dist/utils/index.js +174 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/index.mjs +12 -0
- package/dist/utils/index.mjs.map +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @copilotkit/runtime
|
|
2
2
|
|
|
3
|
+
## 1.5.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 72f9e58: test release notes
|
|
8
|
+
- 716bd5c: test changelog
|
|
9
|
+
- aecb6f4: Fix build script
|
|
10
|
+
- a35d447: test changelog
|
|
11
|
+
- 8166ac6: Test release notes
|
|
12
|
+
- @copilotkit/shared@1.5.10
|
|
13
|
+
|
|
14
|
+
## 1.5.10-next.0
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 72f9e58: test release notes
|
|
19
|
+
- 716bd5c: test changelog
|
|
20
|
+
- aecb6f4: Fix build script
|
|
21
|
+
- a35d447: test changelog
|
|
22
|
+
- 8166ac6: Test release notes
|
|
23
|
+
- @copilotkit/shared@1.5.10-next.0
|
|
24
|
+
|
|
3
25
|
## 1.5.9
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
# -----------------------------------------------
|
|
2
|
+
# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
|
|
3
|
+
# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
|
|
4
|
+
# -----------------------------------------------
|
|
5
|
+
|
|
6
|
+
input ActionExecutionMessageInput {
|
|
7
|
+
arguments: String!
|
|
8
|
+
name: String!
|
|
9
|
+
parentMessageId: String
|
|
10
|
+
scope: String @deprecated(reason: "This field will be removed in a future version")
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
type ActionExecutionMessageOutput implements BaseMessageOutput {
|
|
14
|
+
arguments: [String!]!
|
|
15
|
+
createdAt: DateTimeISO!
|
|
16
|
+
id: String!
|
|
17
|
+
name: String!
|
|
18
|
+
parentMessageId: String
|
|
19
|
+
scope: String @deprecated(reason: "This field will be removed in a future version")
|
|
20
|
+
status: MessageStatus!
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
input ActionInput {
|
|
24
|
+
available: ActionInputAvailability
|
|
25
|
+
description: String!
|
|
26
|
+
jsonSchema: String!
|
|
27
|
+
name: String!
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
"""The availability of the frontend action"""
|
|
31
|
+
enum ActionInputAvailability {
|
|
32
|
+
disabled
|
|
33
|
+
enabled
|
|
34
|
+
remote
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type Agent {
|
|
38
|
+
description: String!
|
|
39
|
+
id: String!
|
|
40
|
+
name: String!
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
input AgentSessionInput {
|
|
44
|
+
agentName: String!
|
|
45
|
+
nodeName: String
|
|
46
|
+
threadId: String
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
input AgentStateInput {
|
|
50
|
+
agentName: String!
|
|
51
|
+
state: String!
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
input AgentStateMessageInput {
|
|
55
|
+
active: Boolean!
|
|
56
|
+
agentName: String!
|
|
57
|
+
nodeName: String!
|
|
58
|
+
role: MessageRole!
|
|
59
|
+
runId: String!
|
|
60
|
+
running: Boolean!
|
|
61
|
+
state: String!
|
|
62
|
+
threadId: String!
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
type AgentStateMessageOutput implements BaseMessageOutput {
|
|
66
|
+
active: Boolean!
|
|
67
|
+
agentName: String!
|
|
68
|
+
createdAt: DateTimeISO!
|
|
69
|
+
id: String!
|
|
70
|
+
nodeName: String!
|
|
71
|
+
role: MessageRole!
|
|
72
|
+
runId: String!
|
|
73
|
+
running: Boolean!
|
|
74
|
+
state: String!
|
|
75
|
+
status: MessageStatus!
|
|
76
|
+
threadId: String!
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
type AgentsResponse {
|
|
80
|
+
agents: [Agent!]!
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
interface BaseMessageOutput {
|
|
84
|
+
createdAt: DateTimeISO!
|
|
85
|
+
id: String!
|
|
86
|
+
status: MessageStatus!
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
interface BaseResponseStatus {
|
|
90
|
+
code: ResponseStatusCode!
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
input CloudInput {
|
|
94
|
+
guardrails: GuardrailsInput
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
"""The type of Copilot request"""
|
|
98
|
+
enum CopilotRequestType {
|
|
99
|
+
Chat
|
|
100
|
+
Suggestion
|
|
101
|
+
Task
|
|
102
|
+
TextareaCompletion
|
|
103
|
+
TextareaPopover
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
type CopilotResponse {
|
|
107
|
+
messages: [BaseMessageOutput!]!
|
|
108
|
+
runId: String
|
|
109
|
+
status: ResponseStatus!
|
|
110
|
+
threadId: String!
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
"""
|
|
114
|
+
A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.This scalar is serialized to a string in ISO 8601 format and parsed from a string in ISO 8601 format.
|
|
115
|
+
"""
|
|
116
|
+
scalar DateTimeISO
|
|
117
|
+
|
|
118
|
+
type FailedMessageStatus {
|
|
119
|
+
code: MessageStatusCode!
|
|
120
|
+
reason: String!
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
type FailedResponseStatus implements BaseResponseStatus {
|
|
124
|
+
code: ResponseStatusCode!
|
|
125
|
+
details: JSON
|
|
126
|
+
reason: FailedResponseStatusReason!
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
enum FailedResponseStatusReason {
|
|
130
|
+
GUARDRAILS_VALIDATION_FAILED
|
|
131
|
+
MESSAGE_STREAM_INTERRUPTED
|
|
132
|
+
UNKNOWN_ERROR
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
input ForwardedParametersInput {
|
|
136
|
+
maxTokens: Float
|
|
137
|
+
model: String
|
|
138
|
+
stop: [String!]
|
|
139
|
+
temperature: Float
|
|
140
|
+
toolChoice: String
|
|
141
|
+
toolChoiceFunctionName: String
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
input FrontendInput {
|
|
145
|
+
actions: [ActionInput!]!
|
|
146
|
+
toDeprecate_fullContext: String
|
|
147
|
+
url: String
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
input GenerateCopilotResponseInput {
|
|
151
|
+
agentSession: AgentSessionInput
|
|
152
|
+
agentState: AgentStateInput
|
|
153
|
+
agentStates: [AgentStateInput!]
|
|
154
|
+
cloud: CloudInput
|
|
155
|
+
forwardedParameters: ForwardedParametersInput
|
|
156
|
+
frontend: FrontendInput!
|
|
157
|
+
messages: [MessageInput!]!
|
|
158
|
+
metadata: GenerateCopilotResponseMetadataInput!
|
|
159
|
+
runId: String
|
|
160
|
+
threadId: String
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
input GenerateCopilotResponseMetadataInput {
|
|
164
|
+
requestType: CopilotRequestType
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
input GuardrailsInput {
|
|
168
|
+
inputValidationRules: GuardrailsRuleInput!
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
input GuardrailsRuleInput {
|
|
172
|
+
allowList: [String!] = []
|
|
173
|
+
denyList: [String!] = []
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
"""
|
|
177
|
+
The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
|
|
178
|
+
"""
|
|
179
|
+
scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
|
|
180
|
+
|
|
181
|
+
"""
|
|
182
|
+
The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
|
|
183
|
+
"""
|
|
184
|
+
scalar JSONObject @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
|
|
185
|
+
|
|
186
|
+
input MessageInput {
|
|
187
|
+
actionExecutionMessage: ActionExecutionMessageInput
|
|
188
|
+
agentStateMessage: AgentStateMessageInput
|
|
189
|
+
createdAt: DateTimeISO!
|
|
190
|
+
id: String!
|
|
191
|
+
resultMessage: ResultMessageInput
|
|
192
|
+
textMessage: TextMessageInput
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
"""The role of the message"""
|
|
196
|
+
enum MessageRole {
|
|
197
|
+
assistant
|
|
198
|
+
system
|
|
199
|
+
tool
|
|
200
|
+
user
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
union MessageStatus = FailedMessageStatus | PendingMessageStatus | SuccessMessageStatus
|
|
204
|
+
|
|
205
|
+
enum MessageStatusCode {
|
|
206
|
+
Failed
|
|
207
|
+
Pending
|
|
208
|
+
Success
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
type Mutation {
|
|
212
|
+
generateCopilotResponse(data: GenerateCopilotResponseInput!, properties: JSONObject): CopilotResponse!
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
type PendingMessageStatus {
|
|
216
|
+
code: MessageStatusCode!
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
type PendingResponseStatus implements BaseResponseStatus {
|
|
220
|
+
code: ResponseStatusCode!
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
type Query {
|
|
224
|
+
availableAgents: AgentsResponse!
|
|
225
|
+
hello: String!
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
union ResponseStatus = FailedResponseStatus | PendingResponseStatus | SuccessResponseStatus
|
|
229
|
+
|
|
230
|
+
enum ResponseStatusCode {
|
|
231
|
+
Failed
|
|
232
|
+
Pending
|
|
233
|
+
Success
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
input ResultMessageInput {
|
|
237
|
+
actionExecutionId: String!
|
|
238
|
+
actionName: String!
|
|
239
|
+
parentMessageId: String
|
|
240
|
+
result: String!
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
type ResultMessageOutput implements BaseMessageOutput {
|
|
244
|
+
actionExecutionId: String!
|
|
245
|
+
actionName: String!
|
|
246
|
+
createdAt: DateTimeISO!
|
|
247
|
+
id: String!
|
|
248
|
+
result: String!
|
|
249
|
+
status: MessageStatus!
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
type SuccessMessageStatus {
|
|
253
|
+
code: MessageStatusCode!
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
type SuccessResponseStatus implements BaseResponseStatus {
|
|
257
|
+
code: ResponseStatusCode!
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
input TextMessageInput {
|
|
261
|
+
content: String!
|
|
262
|
+
parentMessageId: String
|
|
263
|
+
role: MessageRole!
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
type TextMessageOutput implements BaseMessageOutput {
|
|
267
|
+
content: [String!]!
|
|
268
|
+
createdAt: DateTimeISO!
|
|
269
|
+
id: String!
|
|
270
|
+
parentMessageId: String
|
|
271
|
+
role: MessageRole!
|
|
272
|
+
status: MessageStatus!
|
|
273
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
5
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
__name,
|
|
10
|
+
__commonJS
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=chunk-44O2JGUY.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|