@copilotkit/runtime 1.4.3 → 1.4.4-next.1
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 +13 -0
- package/README.md +2 -0
- package/package.json +2 -2
- package/__snapshots__/schema/schema.graphql +0 -263
- package/dist/chunk-44O2JGUY.mjs +0 -12
- package/dist/chunk-44O2JGUY.mjs.map +0 -1
- package/dist/chunk-7SECLS5W.mjs +0 -25
- package/dist/chunk-7SECLS5W.mjs.map +0 -1
- package/dist/chunk-B74M7FXG.mjs +0 -65
- package/dist/chunk-B74M7FXG.mjs.map +0 -1
- package/dist/chunk-D2WLFQS6.mjs +0 -43
- package/dist/chunk-D2WLFQS6.mjs.map +0 -1
- package/dist/chunk-DFOKBSIS.mjs +0 -1
- package/dist/chunk-DFOKBSIS.mjs.map +0 -1
- package/dist/chunk-KO6WITMC.mjs +0 -3155
- package/dist/chunk-KO6WITMC.mjs.map +0 -1
- package/dist/chunk-OKQVDDJ2.mjs +0 -1173
- package/dist/chunk-OKQVDDJ2.mjs.map +0 -1
- package/dist/chunk-PF5ZEXF5.mjs +0 -25
- package/dist/chunk-PF5ZEXF5.mjs.map +0 -1
- package/dist/chunk-U3V2BCGI.mjs +0 -152
- package/dist/chunk-U3V2BCGI.mjs.map +0 -1
- package/dist/chunk-YJZFFI54.mjs +0 -80
- package/dist/chunk-YJZFFI54.mjs.map +0 -1
- package/dist/copilot-runtime-12e7ac40.d.ts +0 -189
- package/dist/graphql/types/base/index.d.ts +0 -6
- package/dist/graphql/types/base/index.js +0 -63
- package/dist/graphql/types/base/index.js.map +0 -1
- package/dist/graphql/types/base/index.mjs +0 -8
- package/dist/graphql/types/base/index.mjs.map +0 -1
- package/dist/graphql/types/converted/index.d.ts +0 -2
- package/dist/graphql/types/converted/index.js +0 -123
- package/dist/graphql/types/converted/index.js.map +0 -1
- package/dist/graphql/types/converted/index.mjs +0 -17
- package/dist/graphql/types/converted/index.mjs.map +0 -1
- package/dist/groq-adapter-24abe931.d.ts +0 -281
- package/dist/index-10b1c870.d.ts +0 -88
- package/dist/index.d.ts +0 -23
- package/dist/index.js +0 -4675
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -72
- package/dist/index.mjs.map +0 -1
- package/dist/langserve-f021ab9c.d.ts +0 -136
- package/dist/lib/cloud/index.d.ts +0 -6
- package/dist/lib/cloud/index.js +0 -18
- package/dist/lib/cloud/index.js.map +0 -1
- package/dist/lib/cloud/index.mjs +0 -1
- package/dist/lib/cloud/index.mjs.map +0 -1
- package/dist/lib/index.d.ts +0 -20
- package/dist/lib/index.js +0 -4400
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/index.mjs +0 -58
- package/dist/lib/index.mjs.map +0 -1
- package/dist/lib/integrations/index.d.ts +0 -33
- package/dist/lib/integrations/index.js +0 -2043
- package/dist/lib/integrations/index.js.map +0 -1
- package/dist/lib/integrations/index.mjs +0 -34
- package/dist/lib/integrations/index.mjs.map +0 -1
- package/dist/lib/integrations/nest/index.d.ts +0 -14
- package/dist/lib/integrations/nest/index.js +0 -1952
- package/dist/lib/integrations/nest/index.js.map +0 -1
- package/dist/lib/integrations/nest/index.mjs +0 -13
- package/dist/lib/integrations/nest/index.mjs.map +0 -1
- package/dist/lib/integrations/node-express/index.d.ts +0 -14
- package/dist/lib/integrations/node-express/index.js +0 -1952
- package/dist/lib/integrations/node-express/index.js.map +0 -1
- package/dist/lib/integrations/node-express/index.mjs +0 -13
- package/dist/lib/integrations/node-express/index.mjs.map +0 -1
- package/dist/lib/integrations/node-http/index.d.ts +0 -14
- package/dist/lib/integrations/node-http/index.js +0 -1938
- package/dist/lib/integrations/node-http/index.js.map +0 -1
- package/dist/lib/integrations/node-http/index.mjs +0 -12
- package/dist/lib/integrations/node-http/index.mjs.map +0 -1
- package/dist/service-adapters/index.d.ts +0 -53
- package/dist/service-adapters/index.js +0 -1211
- package/dist/service-adapters/index.js.map +0 -1
- package/dist/service-adapters/index.mjs +0 -22
- package/dist/service-adapters/index.mjs.map +0 -1
- package/dist/utils/index.d.ts +0 -49
- package/dist/utils/index.js +0 -174
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/index.mjs +0 -12
- package/dist/utils/index.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @copilotkit/runtime
|
|
2
2
|
|
|
3
|
+
## 1.4.4-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- af36f1a: - feat(runtime): readme update
|
|
8
|
+
- @copilotkit/shared@1.4.4-next.1
|
|
9
|
+
|
|
10
|
+
## 1.4.4-next.0
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- @copilotkit/shared@1.4.4-next.0
|
|
15
|
+
|
|
3
16
|
## 1.4.3
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
<br/>
|
|
14
14
|
|
|
15
|
+
<!-- test -->
|
|
16
|
+
|
|
15
17
|
<div align="center">
|
|
16
18
|
<a href="https://www.npmjs.com/package/@copilotkit/react-core" target="_blank">
|
|
17
19
|
<img src="https://img.shields.io/npm/v/%40copilotkit%2Freact-core?logo=npm&logoColor=%23FFFFFF&label=Version&color=%236963ff" alt="NPM">
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"version": "1.4.
|
|
12
|
+
"version": "1.4.4-next.1",
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"main": "./dist/index.js",
|
|
15
15
|
"module": "./dist/index.mjs",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"rxjs": "^7.8.1",
|
|
59
59
|
"type-graphql": "2.0.0-rc.1",
|
|
60
60
|
"zod": "^3.23.3",
|
|
61
|
-
"@copilotkit/shared": "1.4.
|
|
61
|
+
"@copilotkit/shared": "1.4.4-next.1"
|
|
62
62
|
},
|
|
63
63
|
"keywords": [
|
|
64
64
|
"copilotkit",
|
|
@@ -1,263 +0,0 @@
|
|
|
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
|
-
scope: ActionExecutionScope!
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
type ActionExecutionMessageOutput implements BaseMessageOutput {
|
|
13
|
-
arguments: [String!]!
|
|
14
|
-
createdAt: DateTimeISO!
|
|
15
|
-
id: String!
|
|
16
|
-
name: String!
|
|
17
|
-
scope: ActionExecutionScope!
|
|
18
|
-
status: MessageStatus!
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
"""The scope of the action"""
|
|
22
|
-
enum ActionExecutionScope {
|
|
23
|
-
client
|
|
24
|
-
passThrough
|
|
25
|
-
server
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
input ActionInput {
|
|
29
|
-
available: ActionInputAvailability
|
|
30
|
-
description: String!
|
|
31
|
-
jsonSchema: String!
|
|
32
|
-
name: String!
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
"""The availability of the frontend action"""
|
|
36
|
-
enum ActionInputAvailability {
|
|
37
|
-
disabled
|
|
38
|
-
enabled
|
|
39
|
-
remote
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
input AgentSessionInput {
|
|
43
|
-
agentName: String!
|
|
44
|
-
nodeName: String
|
|
45
|
-
threadId: String
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
input AgentStateInput {
|
|
49
|
-
agentName: String!
|
|
50
|
-
state: String!
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
input AgentStateMessageInput {
|
|
54
|
-
active: Boolean!
|
|
55
|
-
agentName: String!
|
|
56
|
-
nodeName: String!
|
|
57
|
-
role: MessageRole!
|
|
58
|
-
runId: String!
|
|
59
|
-
running: Boolean!
|
|
60
|
-
state: String!
|
|
61
|
-
threadId: String!
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
type AgentStateMessageOutput implements BaseMessageOutput {
|
|
65
|
-
active: Boolean!
|
|
66
|
-
agentName: String!
|
|
67
|
-
createdAt: DateTimeISO!
|
|
68
|
-
id: String!
|
|
69
|
-
nodeName: String!
|
|
70
|
-
role: MessageRole!
|
|
71
|
-
runId: String!
|
|
72
|
-
running: Boolean!
|
|
73
|
-
state: String!
|
|
74
|
-
status: MessageStatus!
|
|
75
|
-
threadId: String!
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
interface BaseMessageOutput {
|
|
79
|
-
createdAt: DateTimeISO!
|
|
80
|
-
id: String!
|
|
81
|
-
status: MessageStatus!
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
interface BaseResponseStatus {
|
|
85
|
-
code: ResponseStatusCode!
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
input CloudInput {
|
|
89
|
-
guardrails: GuardrailsInput
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
"""The type of Copilot request"""
|
|
93
|
-
enum CopilotRequestType {
|
|
94
|
-
Chat
|
|
95
|
-
Suggestion
|
|
96
|
-
Task
|
|
97
|
-
TextareaCompletion
|
|
98
|
-
TextareaPopover
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
type CopilotResponse {
|
|
102
|
-
messages: [BaseMessageOutput!]!
|
|
103
|
-
runId: String
|
|
104
|
-
status: ResponseStatus!
|
|
105
|
-
threadId: String!
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
"""
|
|
109
|
-
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.
|
|
110
|
-
"""
|
|
111
|
-
scalar DateTimeISO
|
|
112
|
-
|
|
113
|
-
type FailedMessageStatus {
|
|
114
|
-
code: MessageStatusCode!
|
|
115
|
-
reason: String!
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
type FailedResponseStatus implements BaseResponseStatus {
|
|
119
|
-
code: ResponseStatusCode!
|
|
120
|
-
details: JSON
|
|
121
|
-
reason: FailedResponseStatusReason!
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
enum FailedResponseStatusReason {
|
|
125
|
-
GUARDRAILS_VALIDATION_FAILED
|
|
126
|
-
MESSAGE_STREAM_INTERRUPTED
|
|
127
|
-
UNKNOWN_ERROR
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
input ForwardedParametersInput {
|
|
131
|
-
maxTokens: Float
|
|
132
|
-
model: String
|
|
133
|
-
stop: [String!]
|
|
134
|
-
toolChoice: String
|
|
135
|
-
toolChoiceFunctionName: String
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
input FrontendInput {
|
|
139
|
-
actions: [ActionInput!]!
|
|
140
|
-
toDeprecate_fullContext: String
|
|
141
|
-
url: String
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
input GenerateCopilotResponseInput {
|
|
145
|
-
agentSession: AgentSessionInput
|
|
146
|
-
agentState: AgentStateInput
|
|
147
|
-
agentStates: [AgentStateInput!]
|
|
148
|
-
cloud: CloudInput
|
|
149
|
-
forwardedParameters: ForwardedParametersInput
|
|
150
|
-
frontend: FrontendInput!
|
|
151
|
-
messages: [MessageInput!]!
|
|
152
|
-
metadata: GenerateCopilotResponseMetadataInput!
|
|
153
|
-
runId: String
|
|
154
|
-
threadId: String
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
input GenerateCopilotResponseMetadataInput {
|
|
158
|
-
requestType: CopilotRequestType
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
input GuardrailsInput {
|
|
162
|
-
inputValidationRules: GuardrailsRuleInput!
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
input GuardrailsRuleInput {
|
|
166
|
-
allowList: [String!] = []
|
|
167
|
-
denyList: [String!] = []
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
"""
|
|
171
|
-
The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
|
|
172
|
-
"""
|
|
173
|
-
scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
|
|
174
|
-
|
|
175
|
-
"""
|
|
176
|
-
The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
|
|
177
|
-
"""
|
|
178
|
-
scalar JSONObject @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
|
|
179
|
-
|
|
180
|
-
input MessageInput {
|
|
181
|
-
actionExecutionMessage: ActionExecutionMessageInput
|
|
182
|
-
agentStateMessage: AgentStateMessageInput
|
|
183
|
-
createdAt: DateTimeISO!
|
|
184
|
-
id: String!
|
|
185
|
-
resultMessage: ResultMessageInput
|
|
186
|
-
textMessage: TextMessageInput
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
"""The role of the message"""
|
|
190
|
-
enum MessageRole {
|
|
191
|
-
assistant
|
|
192
|
-
system
|
|
193
|
-
tool
|
|
194
|
-
user
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
union MessageStatus = FailedMessageStatus | PendingMessageStatus | SuccessMessageStatus
|
|
198
|
-
|
|
199
|
-
enum MessageStatusCode {
|
|
200
|
-
Failed
|
|
201
|
-
Pending
|
|
202
|
-
Success
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
type Mutation {
|
|
206
|
-
generateCopilotResponse(data: GenerateCopilotResponseInput!, properties: JSONObject): CopilotResponse!
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
type PendingMessageStatus {
|
|
210
|
-
code: MessageStatusCode!
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
type PendingResponseStatus implements BaseResponseStatus {
|
|
214
|
-
code: ResponseStatusCode!
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
type Query {
|
|
218
|
-
hello: String!
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
union ResponseStatus = FailedResponseStatus | PendingResponseStatus | SuccessResponseStatus
|
|
222
|
-
|
|
223
|
-
enum ResponseStatusCode {
|
|
224
|
-
Failed
|
|
225
|
-
Pending
|
|
226
|
-
Success
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
input ResultMessageInput {
|
|
230
|
-
actionExecutionId: String!
|
|
231
|
-
actionName: String!
|
|
232
|
-
result: String!
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
type ResultMessageOutput implements BaseMessageOutput {
|
|
236
|
-
actionExecutionId: String!
|
|
237
|
-
actionName: String!
|
|
238
|
-
createdAt: DateTimeISO!
|
|
239
|
-
id: String!
|
|
240
|
-
result: String!
|
|
241
|
-
status: MessageStatus!
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
type SuccessMessageStatus {
|
|
245
|
-
code: MessageStatusCode!
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
type SuccessResponseStatus implements BaseResponseStatus {
|
|
249
|
-
code: ResponseStatusCode!
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
input TextMessageInput {
|
|
253
|
-
content: String!
|
|
254
|
-
role: MessageRole!
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
type TextMessageOutput implements BaseMessageOutput {
|
|
258
|
-
content: [String!]!
|
|
259
|
-
createdAt: DateTimeISO!
|
|
260
|
-
id: String!
|
|
261
|
-
role: MessageRole!
|
|
262
|
-
status: MessageStatus!
|
|
263
|
-
}
|
package/dist/chunk-44O2JGUY.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/chunk-7SECLS5W.mjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
copilotRuntimeNodeHttpEndpoint,
|
|
3
|
-
getRuntimeInstanceTelemetryInfo,
|
|
4
|
-
telemetry_client_default
|
|
5
|
-
} from "./chunk-KO6WITMC.mjs";
|
|
6
|
-
import {
|
|
7
|
-
__name
|
|
8
|
-
} from "./chunk-44O2JGUY.mjs";
|
|
9
|
-
|
|
10
|
-
// src/lib/integrations/nest/index.ts
|
|
11
|
-
function copilotRuntimeNestEndpoint(options) {
|
|
12
|
-
telemetry_client_default.setGlobalProperties({
|
|
13
|
-
runtime: {
|
|
14
|
-
framework: "nest"
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
telemetry_client_default.capture("oss.runtime.instance_created", getRuntimeInstanceTelemetryInfo(options.runtime));
|
|
18
|
-
return copilotRuntimeNodeHttpEndpoint(options);
|
|
19
|
-
}
|
|
20
|
-
__name(copilotRuntimeNestEndpoint, "copilotRuntimeNestEndpoint");
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
copilotRuntimeNestEndpoint
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=chunk-7SECLS5W.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lib/integrations/nest/index.ts"],"sourcesContent":["import { CreateCopilotRuntimeServerOptions } from \"../shared\";\nimport { copilotRuntimeNodeHttpEndpoint } from \"../node-http\";\nimport telemetry, { getRuntimeInstanceTelemetryInfo } from \"../../telemetry-client\";\n\nexport function copilotRuntimeNestEndpoint(options: CreateCopilotRuntimeServerOptions) {\n telemetry.setGlobalProperties({\n runtime: {\n framework: \"nest\",\n },\n });\n\n telemetry.capture(\n \"oss.runtime.instance_created\",\n getRuntimeInstanceTelemetryInfo(options.runtime),\n );\n return copilotRuntimeNodeHttpEndpoint(options);\n}\n"],"mappings":";;;;;;;;;;AAIO,SAASA,2BAA2BC,SAA0C;AACnFC,2BAAUC,oBAAoB;IAC5BC,SAAS;MACPC,WAAW;IACb;EACF,CAAA;AAEAH,2BAAUI,QACR,gCACAC,gCAAgCN,QAAQG,OAAO,CAAA;AAEjD,SAAOI,+BAA+BP,OAAAA;AACxC;AAZgBD;","names":["copilotRuntimeNestEndpoint","options","telemetry","setGlobalProperties","runtime","framework","capture","getRuntimeInstanceTelemetryInfo","copilotRuntimeNodeHttpEndpoint"]}
|
package/dist/chunk-B74M7FXG.mjs
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BaseMessageInput
|
|
3
|
-
} from "./chunk-D2WLFQS6.mjs";
|
|
4
|
-
import {
|
|
5
|
-
__name
|
|
6
|
-
} from "./chunk-44O2JGUY.mjs";
|
|
7
|
-
|
|
8
|
-
// src/graphql/types/converted/index.ts
|
|
9
|
-
var Message = class extends BaseMessageInput {
|
|
10
|
-
type;
|
|
11
|
-
isTextMessage() {
|
|
12
|
-
return this.type === "TextMessage";
|
|
13
|
-
}
|
|
14
|
-
isActionExecutionMessage() {
|
|
15
|
-
return this.type === "ActionExecutionMessage";
|
|
16
|
-
}
|
|
17
|
-
isResultMessage() {
|
|
18
|
-
return this.type === "ResultMessage";
|
|
19
|
-
}
|
|
20
|
-
isAgentStateMessage() {
|
|
21
|
-
return this.type === "AgentStateMessage";
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
__name(Message, "Message");
|
|
25
|
-
var TextMessage = class extends Message {
|
|
26
|
-
type = "TextMessage";
|
|
27
|
-
content;
|
|
28
|
-
role;
|
|
29
|
-
};
|
|
30
|
-
__name(TextMessage, "TextMessage");
|
|
31
|
-
var ActionExecutionMessage = class extends Message {
|
|
32
|
-
type = "ActionExecutionMessage";
|
|
33
|
-
name;
|
|
34
|
-
arguments;
|
|
35
|
-
scope;
|
|
36
|
-
};
|
|
37
|
-
__name(ActionExecutionMessage, "ActionExecutionMessage");
|
|
38
|
-
var ResultMessage = class extends Message {
|
|
39
|
-
type = "ResultMessage";
|
|
40
|
-
actionExecutionId;
|
|
41
|
-
actionName;
|
|
42
|
-
result;
|
|
43
|
-
};
|
|
44
|
-
__name(ResultMessage, "ResultMessage");
|
|
45
|
-
var AgentStateMessage = class extends Message {
|
|
46
|
-
type = "AgentStateMessage";
|
|
47
|
-
threadId;
|
|
48
|
-
agentName;
|
|
49
|
-
nodeName;
|
|
50
|
-
runId;
|
|
51
|
-
active;
|
|
52
|
-
role;
|
|
53
|
-
state;
|
|
54
|
-
running;
|
|
55
|
-
};
|
|
56
|
-
__name(AgentStateMessage, "AgentStateMessage");
|
|
57
|
-
|
|
58
|
-
export {
|
|
59
|
-
Message,
|
|
60
|
-
TextMessage,
|
|
61
|
-
ActionExecutionMessage,
|
|
62
|
-
ResultMessage,
|
|
63
|
-
AgentStateMessage
|
|
64
|
-
};
|
|
65
|
-
//# sourceMappingURL=chunk-B74M7FXG.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/graphql/types/converted/index.ts"],"sourcesContent":["import {\n ActionExecutionMessageInput,\n ResultMessageInput,\n TextMessageInput,\n AgentStateMessageInput,\n} from \"../../inputs/message.input\";\nimport { BaseMessageInput } from \"../base\";\nimport { ActionExecutionScope, MessageRole } from \"../enums\";\n\nexport type MessageType =\n | \"TextMessage\"\n | \"ActionExecutionMessage\"\n | \"ResultMessage\"\n | \"AgentStateMessage\";\n\nexport class Message extends BaseMessageInput {\n type: MessageType;\n\n isTextMessage(): this is TextMessage {\n return this.type === \"TextMessage\";\n }\n\n isActionExecutionMessage(): this is ActionExecutionMessage {\n return this.type === \"ActionExecutionMessage\";\n }\n\n isResultMessage(): this is ResultMessage {\n return this.type === \"ResultMessage\";\n }\n\n isAgentStateMessage(): this is AgentStateMessage {\n return this.type === \"AgentStateMessage\";\n }\n}\n\nexport class TextMessage extends Message implements TextMessageInput {\n type: MessageType = \"TextMessage\";\n content: string;\n role: MessageRole;\n}\n\nexport class ActionExecutionMessage\n extends Message\n implements Omit<ActionExecutionMessageInput, \"arguments\">\n{\n type: MessageType = \"ActionExecutionMessage\";\n name: string;\n arguments: Record<string, any>;\n scope: ActionExecutionScope;\n}\n\nexport class ResultMessage extends Message implements ResultMessageInput {\n type: MessageType = \"ResultMessage\";\n actionExecutionId: string;\n actionName: string;\n result: string;\n}\n\nexport class AgentStateMessage extends Message implements Omit<AgentStateMessageInput, \"state\"> {\n type: MessageType = \"AgentStateMessage\";\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"],"mappings":";;;;;;;;AAeO,IAAMA,UAAN,cAAsBC,iBAAAA;EAC3BC;EAEAC,gBAAqC;AACnC,WAAO,KAAKD,SAAS;EACvB;EAEAE,2BAA2D;AACzD,WAAO,KAAKF,SAAS;EACvB;EAEAG,kBAAyC;AACvC,WAAO,KAAKH,SAAS;EACvB;EAEAI,sBAAiD;AAC/C,WAAO,KAAKJ,SAAS;EACvB;AACF;AAlBaF;AAoBN,IAAMO,cAAN,cAA0BP,QAAAA;EAC/BE,OAAoB;EACpBM;EACAC;AACF;AAJaF;AAMN,IAAMG,yBAAN,cACGV,QAAAA;EAGRE,OAAoB;EACpBS;EACAC;EACAC;AACF;AARaH;AAUN,IAAMI,gBAAN,cAA4Bd,QAAAA;EACjCE,OAAoB;EACpBa;EACAC;EACAC;AACF;AALaH;AAON,IAAMI,oBAAN,cAAgClB,QAAAA;EACrCE,OAAoB;EACpBiB;EACAC;EACAC;EACAC;EACAC;EACAd;EACAe;EACAC;AACF;AAVaP;","names":["Message","BaseMessageInput","type","isTextMessage","isActionExecutionMessage","isResultMessage","isAgentStateMessage","TextMessage","content","role","ActionExecutionMessage","name","arguments","scope","ResultMessage","actionExecutionId","actionName","result","AgentStateMessage","threadId","agentName","nodeName","runId","active","state","running"]}
|
package/dist/chunk-D2WLFQS6.mjs
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__name
|
|
3
|
-
} from "./chunk-44O2JGUY.mjs";
|
|
4
|
-
|
|
5
|
-
// src/graphql/types/base/index.ts
|
|
6
|
-
import { Field, InputType } from "type-graphql";
|
|
7
|
-
function _ts_decorate(decorators, target, key, desc) {
|
|
8
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
10
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
11
|
-
else
|
|
12
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
13
|
-
if (d = decorators[i])
|
|
14
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
15
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16
|
-
}
|
|
17
|
-
__name(_ts_decorate, "_ts_decorate");
|
|
18
|
-
function _ts_metadata(k, v) {
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
20
|
-
return Reflect.metadata(k, v);
|
|
21
|
-
}
|
|
22
|
-
__name(_ts_metadata, "_ts_metadata");
|
|
23
|
-
var BaseMessageInput = class {
|
|
24
|
-
id;
|
|
25
|
-
createdAt;
|
|
26
|
-
};
|
|
27
|
-
__name(BaseMessageInput, "BaseMessageInput");
|
|
28
|
-
_ts_decorate([
|
|
29
|
-
Field(() => String),
|
|
30
|
-
_ts_metadata("design:type", String)
|
|
31
|
-
], BaseMessageInput.prototype, "id", void 0);
|
|
32
|
-
_ts_decorate([
|
|
33
|
-
Field(() => Date),
|
|
34
|
-
_ts_metadata("design:type", typeof Date === "undefined" ? Object : Date)
|
|
35
|
-
], BaseMessageInput.prototype, "createdAt", void 0);
|
|
36
|
-
BaseMessageInput = _ts_decorate([
|
|
37
|
-
InputType()
|
|
38
|
-
], BaseMessageInput);
|
|
39
|
-
|
|
40
|
-
export {
|
|
41
|
-
BaseMessageInput
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=chunk-D2WLFQS6.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/graphql/types/base/index.ts"],"sourcesContent":["import { Field, InputType } from \"type-graphql\";\n\n@InputType()\nexport class BaseMessageInput {\n @Field(() => String)\n id: string;\n\n @Field(() => Date)\n createdAt: Date;\n}\n"],"mappings":";;;;;AAAA,SAASA,OAAOC,iBAAiB;;;;;;;;;;;;;;;;;AAG1B,IAAMC,mBAAN,MAAMA;EAEXC;EAGAC;AACF;AANaF;;EACVG,MAAM,MAAMC,MAAAA;;GADFJ,iBAAAA,WAAAA,MAAAA,MAAAA;;EAIVG,MAAM,MAAME,IAAAA;qCACF,SAAA,cAAA,SAAA,IAAA;GALAL,iBAAAA,WAAAA,aAAAA,MAAAA;AAAAA,mBAAAA,aAAAA;EADZM,UAAAA;GACYN,gBAAAA;","names":["Field","InputType","BaseMessageInput","id","createdAt","Field","String","Date","InputType"]}
|
package/dist/chunk-DFOKBSIS.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=chunk-DFOKBSIS.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|