@copilotkit/runtime 1.5.1-next.1 → 1.5.1-next.3
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 +9 -8
- package/dist/{chunk-RFF5IIZJ.mjs → chunk-B74M7FXG.mjs} +2 -3
- package/dist/chunk-B74M7FXG.mjs.map +1 -0
- package/dist/{chunk-L4VT7Z25.mjs → chunk-M4QD67S3.mjs} +2 -2
- package/dist/{chunk-CLGKEUOA.mjs → chunk-OKQVDDJ2.mjs} +63 -298
- package/dist/chunk-OKQVDDJ2.mjs.map +1 -0
- package/dist/{chunk-G2PTXSIW.mjs → chunk-U3AYI5XZ.mjs} +2 -2
- package/dist/{chunk-Z3MD5FQ4.mjs → chunk-U75F2RAQ.mjs} +2 -2
- package/dist/{chunk-6N4ZHRRC.mjs → chunk-ZSWCEADS.mjs} +331 -465
- package/dist/chunk-ZSWCEADS.mjs.map +1 -0
- package/dist/{copilot-runtime-6285d897.d.ts → copilot-runtime-12e7ac40.d.ts} +2 -2
- package/dist/graphql/types/converted/index.d.ts +1 -1
- package/dist/graphql/types/converted/index.js +1 -2
- package/dist/graphql/types/converted/index.js.map +1 -1
- package/dist/graphql/types/converted/index.mjs +1 -1
- package/dist/{groq-adapter-15d41154.d.ts → groq-adapter-24abe931.d.ts} +1 -1
- package/dist/{index-ff3fbc33.d.ts → index-10b1c870.d.ts} +8 -7
- package/dist/index.d.ts +5 -5
- package/dist/index.js +480 -852
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -15
- package/dist/index.mjs.map +1 -1
- package/dist/{langserve-48e976ac.d.ts → langserve-f021ab9c.d.ts} +14 -54
- package/dist/lib/index.d.ts +4 -4
- package/dist/lib/index.js +459 -754
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +7 -7
- package/dist/lib/integrations/index.d.ts +4 -4
- package/dist/lib/integrations/index.js +30 -78
- package/dist/lib/integrations/index.js.map +1 -1
- package/dist/lib/integrations/index.mjs +6 -6
- package/dist/lib/integrations/nest/index.d.ts +3 -3
- package/dist/lib/integrations/nest/index.js +30 -78
- package/dist/lib/integrations/nest/index.js.map +1 -1
- package/dist/lib/integrations/nest/index.mjs +4 -4
- package/dist/lib/integrations/node-express/index.d.ts +3 -3
- package/dist/lib/integrations/node-express/index.js +30 -78
- package/dist/lib/integrations/node-express/index.js.map +1 -1
- package/dist/lib/integrations/node-express/index.mjs +4 -4
- package/dist/lib/integrations/node-http/index.d.ts +3 -3
- package/dist/lib/integrations/node-http/index.js +30 -78
- package/dist/lib/integrations/node-http/index.js.map +1 -1
- package/dist/lib/integrations/node-http/index.mjs +3 -3
- package/dist/service-adapters/index.d.ts +5 -36
- package/dist/service-adapters/index.js +61 -298
- package/dist/service-adapters/index.js.map +1 -1
- package/dist/service-adapters/index.mjs +1 -5
- package/package.json +4 -4
- package/src/graphql/resolvers/copilot.resolver.ts +16 -0
- package/src/graphql/types/agents-response.type.ts +22 -0
- package/src/lib/runtime/copilot-runtime.ts +50 -0
- package/dist/chunk-6N4ZHRRC.mjs.map +0 -1
- package/dist/chunk-CLGKEUOA.mjs.map +0 -1
- package/dist/chunk-RFF5IIZJ.mjs.map +0 -1
- /package/dist/{chunk-L4VT7Z25.mjs.map → chunk-M4QD67S3.mjs.map} +0 -0
- /package/dist/{chunk-G2PTXSIW.mjs.map → chunk-U3AYI5XZ.mjs.map} +0 -0
- /package/dist/{chunk-Z3MD5FQ4.mjs.map → chunk-U75F2RAQ.mjs.map} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as graphql_yoga from 'graphql-yoga';
|
|
2
|
-
import { d as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../../copilot-runtime-
|
|
2
|
+
import { d as CreateCopilotRuntimeServerOptions, G as GraphQLContext } from '../../../copilot-runtime-12e7ac40.js';
|
|
3
3
|
import '@copilotkit/shared';
|
|
4
|
-
import '../../../langserve-
|
|
5
|
-
import '../../../index-
|
|
4
|
+
import '../../../langserve-f021ab9c.js';
|
|
5
|
+
import '../../../index-10b1c870.js';
|
|
6
6
|
import '../../../graphql/types/base/index.js';
|
|
7
7
|
import 'rxjs';
|
|
8
8
|
import 'graphql';
|
|
@@ -44,7 +44,7 @@ var require_package = __commonJS({
|
|
|
44
44
|
publishConfig: {
|
|
45
45
|
access: "public"
|
|
46
46
|
},
|
|
47
|
-
version: "1.
|
|
47
|
+
version: "1.4.1-pre.6",
|
|
48
48
|
sideEffects: false,
|
|
49
49
|
main: "./dist/index.js",
|
|
50
50
|
module: "./dist/index.mjs",
|
|
@@ -153,6 +153,12 @@ var MessageRole;
|
|
|
153
153
|
MessageRole2["system"] = "system";
|
|
154
154
|
MessageRole2["tool"] = "tool";
|
|
155
155
|
})(MessageRole || (MessageRole = {}));
|
|
156
|
+
var ActionExecutionScope;
|
|
157
|
+
(function(ActionExecutionScope2) {
|
|
158
|
+
ActionExecutionScope2["server"] = "server";
|
|
159
|
+
ActionExecutionScope2["client"] = "client";
|
|
160
|
+
ActionExecutionScope2["passThrough"] = "passThrough";
|
|
161
|
+
})(ActionExecutionScope || (ActionExecutionScope = {}));
|
|
156
162
|
var CopilotRequestType;
|
|
157
163
|
(function(CopilotRequestType2) {
|
|
158
164
|
CopilotRequestType2["Chat"] = "Chat";
|
|
@@ -171,6 +177,10 @@ var ActionInputAvailability;
|
|
|
171
177
|
name: "MessageRole",
|
|
172
178
|
description: "The role of the message"
|
|
173
179
|
});
|
|
180
|
+
(0, import_type_graphql.registerEnumType)(ActionExecutionScope, {
|
|
181
|
+
name: "ActionExecutionScope",
|
|
182
|
+
description: "The scope of the action"
|
|
183
|
+
});
|
|
174
184
|
(0, import_type_graphql.registerEnumType)(CopilotRequestType, {
|
|
175
185
|
name: "CopilotRequestType",
|
|
176
186
|
description: "The type of Copilot request"
|
|
@@ -268,7 +278,6 @@ MessageInput = _ts_decorate2([
|
|
|
268
278
|
], MessageInput);
|
|
269
279
|
var TextMessageInput = class {
|
|
270
280
|
content;
|
|
271
|
-
parentMessageId;
|
|
272
281
|
role;
|
|
273
282
|
};
|
|
274
283
|
__name(TextMessageInput, "TextMessageInput");
|
|
@@ -276,12 +285,6 @@ _ts_decorate2([
|
|
|
276
285
|
(0, import_type_graphql3.Field)(() => String),
|
|
277
286
|
_ts_metadata2("design:type", String)
|
|
278
287
|
], TextMessageInput.prototype, "content", void 0);
|
|
279
|
-
_ts_decorate2([
|
|
280
|
-
(0, import_type_graphql3.Field)(() => String, {
|
|
281
|
-
nullable: true
|
|
282
|
-
}),
|
|
283
|
-
_ts_metadata2("design:type", String)
|
|
284
|
-
], TextMessageInput.prototype, "parentMessageId", void 0);
|
|
285
288
|
_ts_decorate2([
|
|
286
289
|
(0, import_type_graphql3.Field)(() => MessageRole),
|
|
287
290
|
_ts_metadata2("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
@@ -292,7 +295,6 @@ TextMessageInput = _ts_decorate2([
|
|
|
292
295
|
var ActionExecutionMessageInput = class {
|
|
293
296
|
name;
|
|
294
297
|
arguments;
|
|
295
|
-
parentMessageId;
|
|
296
298
|
scope;
|
|
297
299
|
};
|
|
298
300
|
__name(ActionExecutionMessageInput, "ActionExecutionMessageInput");
|
|
@@ -305,17 +307,8 @@ _ts_decorate2([
|
|
|
305
307
|
_ts_metadata2("design:type", String)
|
|
306
308
|
], ActionExecutionMessageInput.prototype, "arguments", void 0);
|
|
307
309
|
_ts_decorate2([
|
|
308
|
-
(0, import_type_graphql3.Field)(() =>
|
|
309
|
-
|
|
310
|
-
}),
|
|
311
|
-
_ts_metadata2("design:type", String)
|
|
312
|
-
], ActionExecutionMessageInput.prototype, "parentMessageId", void 0);
|
|
313
|
-
_ts_decorate2([
|
|
314
|
-
(0, import_type_graphql3.Field)(() => String, {
|
|
315
|
-
nullable: true,
|
|
316
|
-
deprecationReason: "This field will be removed in a future version"
|
|
317
|
-
}),
|
|
318
|
-
_ts_metadata2("design:type", typeof String === "undefined" ? Object : String)
|
|
310
|
+
(0, import_type_graphql3.Field)(() => ActionExecutionScope),
|
|
311
|
+
_ts_metadata2("design:type", typeof ActionExecutionScope === "undefined" ? Object : ActionExecutionScope)
|
|
319
312
|
], ActionExecutionMessageInput.prototype, "scope", void 0);
|
|
320
313
|
ActionExecutionMessageInput = _ts_decorate2([
|
|
321
314
|
(0, import_type_graphql3.InputType)()
|
|
@@ -323,7 +316,6 @@ ActionExecutionMessageInput = _ts_decorate2([
|
|
|
323
316
|
var ResultMessageInput = class {
|
|
324
317
|
actionExecutionId;
|
|
325
318
|
actionName;
|
|
326
|
-
parentMessageId;
|
|
327
319
|
result;
|
|
328
320
|
};
|
|
329
321
|
__name(ResultMessageInput, "ResultMessageInput");
|
|
@@ -335,12 +327,6 @@ _ts_decorate2([
|
|
|
335
327
|
(0, import_type_graphql3.Field)(() => String),
|
|
336
328
|
_ts_metadata2("design:type", String)
|
|
337
329
|
], ResultMessageInput.prototype, "actionName", void 0);
|
|
338
|
-
_ts_decorate2([
|
|
339
|
-
(0, import_type_graphql3.Field)(() => String, {
|
|
340
|
-
nullable: true
|
|
341
|
-
}),
|
|
342
|
-
_ts_metadata2("design:type", String)
|
|
343
|
-
], ResultMessageInput.prototype, "parentMessageId", void 0);
|
|
344
330
|
_ts_decorate2([
|
|
345
331
|
(0, import_type_graphql3.Field)(() => String),
|
|
346
332
|
_ts_metadata2("design:type", String)
|
|
@@ -604,7 +590,6 @@ var ForwardedParametersInput = class {
|
|
|
604
590
|
stop;
|
|
605
591
|
toolChoice;
|
|
606
592
|
toolChoiceFunctionName;
|
|
607
|
-
temperature;
|
|
608
593
|
};
|
|
609
594
|
__name(ForwardedParametersInput, "ForwardedParametersInput");
|
|
610
595
|
_ts_decorate7([
|
|
@@ -639,12 +624,6 @@ _ts_decorate7([
|
|
|
639
624
|
}),
|
|
640
625
|
_ts_metadata7("design:type", String)
|
|
641
626
|
], ForwardedParametersInput.prototype, "toolChoiceFunctionName", void 0);
|
|
642
|
-
_ts_decorate7([
|
|
643
|
-
(0, import_type_graphql8.Field)(() => Number, {
|
|
644
|
-
nullable: true
|
|
645
|
-
}),
|
|
646
|
-
_ts_metadata7("design:type", Number)
|
|
647
|
-
], ForwardedParametersInput.prototype, "temperature", void 0);
|
|
648
627
|
ForwardedParametersInput = _ts_decorate7([
|
|
649
628
|
(0, import_type_graphql8.InputType)()
|
|
650
629
|
], ForwardedParametersInput);
|
|
@@ -1070,7 +1049,6 @@ BaseMessageOutput = _ts_decorate13([
|
|
|
1070
1049
|
var TextMessageOutput = class {
|
|
1071
1050
|
role;
|
|
1072
1051
|
content;
|
|
1073
|
-
parentMessageId;
|
|
1074
1052
|
};
|
|
1075
1053
|
__name(TextMessageOutput, "TextMessageOutput");
|
|
1076
1054
|
_ts_decorate13([
|
|
@@ -1083,12 +1061,6 @@ _ts_decorate13([
|
|
|
1083
1061
|
]),
|
|
1084
1062
|
_ts_metadata13("design:type", Array)
|
|
1085
1063
|
], TextMessageOutput.prototype, "content", void 0);
|
|
1086
|
-
_ts_decorate13([
|
|
1087
|
-
(0, import_type_graphql14.Field)(() => String, {
|
|
1088
|
-
nullable: true
|
|
1089
|
-
}),
|
|
1090
|
-
_ts_metadata13("design:type", String)
|
|
1091
|
-
], TextMessageOutput.prototype, "parentMessageId", void 0);
|
|
1092
1064
|
TextMessageOutput = _ts_decorate13([
|
|
1093
1065
|
(0, import_type_graphql14.ObjectType)({
|
|
1094
1066
|
implements: BaseMessageOutput
|
|
@@ -1098,7 +1070,6 @@ var ActionExecutionMessageOutput = class {
|
|
|
1098
1070
|
name;
|
|
1099
1071
|
scope;
|
|
1100
1072
|
arguments;
|
|
1101
|
-
parentMessageId;
|
|
1102
1073
|
};
|
|
1103
1074
|
__name(ActionExecutionMessageOutput, "ActionExecutionMessageOutput");
|
|
1104
1075
|
_ts_decorate13([
|
|
@@ -1106,11 +1077,8 @@ _ts_decorate13([
|
|
|
1106
1077
|
_ts_metadata13("design:type", String)
|
|
1107
1078
|
], ActionExecutionMessageOutput.prototype, "name", void 0);
|
|
1108
1079
|
_ts_decorate13([
|
|
1109
|
-
(0, import_type_graphql14.Field)(() =>
|
|
1110
|
-
|
|
1111
|
-
deprecationReason: "This field will be removed in a future version"
|
|
1112
|
-
}),
|
|
1113
|
-
_ts_metadata13("design:type", String)
|
|
1080
|
+
(0, import_type_graphql14.Field)(() => ActionExecutionScope),
|
|
1081
|
+
_ts_metadata13("design:type", typeof ActionExecutionScope === "undefined" ? Object : ActionExecutionScope)
|
|
1114
1082
|
], ActionExecutionMessageOutput.prototype, "scope", void 0);
|
|
1115
1083
|
_ts_decorate13([
|
|
1116
1084
|
(0, import_type_graphql14.Field)(() => [
|
|
@@ -1118,12 +1086,6 @@ _ts_decorate13([
|
|
|
1118
1086
|
]),
|
|
1119
1087
|
_ts_metadata13("design:type", Array)
|
|
1120
1088
|
], ActionExecutionMessageOutput.prototype, "arguments", void 0);
|
|
1121
|
-
_ts_decorate13([
|
|
1122
|
-
(0, import_type_graphql14.Field)(() => String, {
|
|
1123
|
-
nullable: true
|
|
1124
|
-
}),
|
|
1125
|
-
_ts_metadata13("design:type", String)
|
|
1126
|
-
], ActionExecutionMessageOutput.prototype, "parentMessageId", void 0);
|
|
1127
1089
|
ActionExecutionMessageOutput = _ts_decorate13([
|
|
1128
1090
|
(0, import_type_graphql14.ObjectType)({
|
|
1129
1091
|
implements: BaseMessageOutput
|
|
@@ -1275,14 +1237,13 @@ var TextMessage = class extends Message {
|
|
|
1275
1237
|
type = "TextMessage";
|
|
1276
1238
|
content;
|
|
1277
1239
|
role;
|
|
1278
|
-
parentMessageId;
|
|
1279
1240
|
};
|
|
1280
1241
|
__name(TextMessage, "TextMessage");
|
|
1281
1242
|
var ActionExecutionMessage = class extends Message {
|
|
1282
1243
|
type = "ActionExecutionMessage";
|
|
1283
1244
|
name;
|
|
1284
1245
|
arguments;
|
|
1285
|
-
|
|
1246
|
+
scope;
|
|
1286
1247
|
};
|
|
1287
1248
|
__name(ActionExecutionMessage, "ActionExecutionMessage");
|
|
1288
1249
|
var ResultMessage = class extends Message {
|
|
@@ -1366,7 +1327,6 @@ __name(getRuntimeInstanceTelemetryInfo, "getRuntimeInstanceTelemetryInfo");
|
|
|
1366
1327
|
var telemetry_client_default = telemetryClient;
|
|
1367
1328
|
|
|
1368
1329
|
// src/service-adapters/events.ts
|
|
1369
|
-
var import_class_transformer = require("class-transformer");
|
|
1370
1330
|
var RuntimeEventTypes;
|
|
1371
1331
|
(function(RuntimeEventTypes2) {
|
|
1372
1332
|
RuntimeEventTypes2["TextMessageStart"] = "TextMessageStart";
|
|
@@ -1381,7 +1341,7 @@ var RuntimeEventTypes;
|
|
|
1381
1341
|
|
|
1382
1342
|
// src/graphql/resolvers/copilot.resolver.ts
|
|
1383
1343
|
var import_graphql_scalars2 = require("graphql-scalars");
|
|
1384
|
-
var
|
|
1344
|
+
var import_class_transformer = require("class-transformer");
|
|
1385
1345
|
var import_graphql = require("graphql");
|
|
1386
1346
|
|
|
1387
1347
|
// src/utils/failed-response-status-reasons.ts
|
|
@@ -1579,7 +1539,7 @@ var CopilotResolver = class {
|
|
|
1579
1539
|
reason: `Interrupted due to Guardrails validation failure. Reason: ${result.reason}`
|
|
1580
1540
|
});
|
|
1581
1541
|
outputMessages = [
|
|
1582
|
-
(0,
|
|
1542
|
+
(0, import_class_transformer.plainToInstance)(TextMessage, {
|
|
1583
1543
|
id: (0, import_shared4.randomId)(),
|
|
1584
1544
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1585
1545
|
content: result.reason,
|
|
@@ -1628,15 +1588,12 @@ var CopilotResolver = class {
|
|
|
1628
1588
|
// skip until this message start event
|
|
1629
1589
|
(0, import_rxjs3.skipWhile)((e) => e !== event),
|
|
1630
1590
|
// take until the message end event
|
|
1631
|
-
(0, import_rxjs3.takeWhile)((e) =>
|
|
1632
|
-
// filter out any other message events or message ids
|
|
1633
|
-
(0, import_rxjs3.filter)((e) => e.type == RuntimeEventTypes.TextMessageContent && e.messageId == event.messageId)
|
|
1591
|
+
(0, import_rxjs3.takeWhile)((e) => e.type != RuntimeEventTypes.TextMessageEnd)
|
|
1634
1592
|
);
|
|
1635
1593
|
const streamingTextStatus = new import_rxjs3.Subject();
|
|
1636
1594
|
const messageId = event.messageId;
|
|
1637
1595
|
pushMessage({
|
|
1638
1596
|
id: messageId,
|
|
1639
|
-
parentMessageId: event.parentMessageId,
|
|
1640
1597
|
status: (0, import_rxjs3.firstValueFrom)(streamingTextStatus),
|
|
1641
1598
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1642
1599
|
role: MessageRole.assistant,
|
|
@@ -1649,7 +1606,7 @@ var CopilotResolver = class {
|
|
|
1649
1606
|
reason,
|
|
1650
1607
|
messageId: messageId2
|
|
1651
1608
|
}, "Text streaming interrupted");
|
|
1652
|
-
streamingTextStatus.next((0,
|
|
1609
|
+
streamingTextStatus.next((0, import_class_transformer.plainToInstance)(FailedMessageStatus, {
|
|
1653
1610
|
reason
|
|
1654
1611
|
}));
|
|
1655
1612
|
responseStatus$.next(new MessageStreamInterruptedResponse({
|
|
@@ -1682,7 +1639,7 @@ var CopilotResolver = class {
|
|
|
1682
1639
|
streamingTextStatus.next(new SuccessMessageStatus());
|
|
1683
1640
|
stopStreamingText();
|
|
1684
1641
|
textSubscription == null ? void 0 : textSubscription.unsubscribe();
|
|
1685
|
-
outputMessages.push((0,
|
|
1642
|
+
outputMessages.push((0, import_class_transformer.plainToInstance)(TextMessage, {
|
|
1686
1643
|
id: messageId,
|
|
1687
1644
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1688
1645
|
content: textChunks.join(""),
|
|
@@ -1695,20 +1652,14 @@ var CopilotResolver = class {
|
|
|
1695
1652
|
break;
|
|
1696
1653
|
case RuntimeEventTypes.ActionExecutionStart:
|
|
1697
1654
|
logger2.debug("Action execution start event received");
|
|
1698
|
-
const actionExecutionArgumentStream = eventStream.pipe(
|
|
1699
|
-
(0, import_rxjs3.skipWhile)((e) => e !== event),
|
|
1700
|
-
// take until the action execution end event
|
|
1701
|
-
(0, import_rxjs3.takeWhile)((e) => !(e.type === RuntimeEventTypes.ActionExecutionEnd && e.actionExecutionId == event.actionExecutionId)),
|
|
1702
|
-
// filter out any other action execution events or action execution ids
|
|
1703
|
-
(0, import_rxjs3.filter)((e) => e.type == RuntimeEventTypes.ActionExecutionArgs && e.actionExecutionId == event.actionExecutionId)
|
|
1704
|
-
);
|
|
1655
|
+
const actionExecutionArgumentStream = eventStream.pipe((0, import_rxjs3.skipWhile)((e) => e !== event), (0, import_rxjs3.takeWhile)((e) => e.type != RuntimeEventTypes.ActionExecutionEnd));
|
|
1705
1656
|
const streamingArgumentsStatus = new import_rxjs3.Subject();
|
|
1706
1657
|
pushMessage({
|
|
1707
1658
|
id: event.actionExecutionId,
|
|
1708
|
-
parentMessageId: event.parentMessageId,
|
|
1709
1659
|
status: (0, import_rxjs3.firstValueFrom)(streamingArgumentsStatus),
|
|
1710
1660
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1711
1661
|
name: event.actionName,
|
|
1662
|
+
scope: event.scope,
|
|
1712
1663
|
arguments: new import_graphql_yoga.Repeater(async (pushArgumentsChunk, stopStreamingArguments) => {
|
|
1713
1664
|
logger2.debug("Action execution argument stream created");
|
|
1714
1665
|
const argumentChunks = [];
|
|
@@ -1724,7 +1675,7 @@ var CopilotResolver = class {
|
|
|
1724
1675
|
logger2.error({
|
|
1725
1676
|
err
|
|
1726
1677
|
}, "Error in action execution argument stream");
|
|
1727
|
-
streamingArgumentsStatus.next((0,
|
|
1678
|
+
streamingArgumentsStatus.next((0, import_class_transformer.plainToInstance)(FailedMessageStatus, {
|
|
1728
1679
|
reason: "An unknown error has occurred in the action execution argument stream"
|
|
1729
1680
|
}));
|
|
1730
1681
|
stopStreamingArguments();
|
|
@@ -1735,10 +1686,11 @@ var CopilotResolver = class {
|
|
|
1735
1686
|
streamingArgumentsStatus.next(new SuccessMessageStatus());
|
|
1736
1687
|
stopStreamingArguments();
|
|
1737
1688
|
actionExecutionArgumentSubscription == null ? void 0 : actionExecutionArgumentSubscription.unsubscribe();
|
|
1738
|
-
outputMessages.push((0,
|
|
1689
|
+
outputMessages.push((0, import_class_transformer.plainToInstance)(ActionExecutionMessage, {
|
|
1739
1690
|
id: event.actionExecutionId,
|
|
1740
1691
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1741
1692
|
name: event.actionName,
|
|
1693
|
+
scope: event.scope,
|
|
1742
1694
|
arguments: argumentChunks.join("")
|
|
1743
1695
|
}));
|
|
1744
1696
|
}
|
|
@@ -1751,15 +1703,15 @@ var CopilotResolver = class {
|
|
|
1751
1703
|
result: event.result
|
|
1752
1704
|
}, "Action execution result event received");
|
|
1753
1705
|
pushMessage({
|
|
1754
|
-
id:
|
|
1706
|
+
id: (0, import_shared4.randomId)(),
|
|
1755
1707
|
status: new SuccessMessageStatus(),
|
|
1756
1708
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1757
1709
|
actionExecutionId: event.actionExecutionId,
|
|
1758
1710
|
actionName: event.actionName,
|
|
1759
1711
|
result: event.result
|
|
1760
1712
|
});
|
|
1761
|
-
outputMessages.push((0,
|
|
1762
|
-
id:
|
|
1713
|
+
outputMessages.push((0, import_class_transformer.plainToInstance)(ResultMessage, {
|
|
1714
|
+
id: (0, import_shared4.randomId)(),
|
|
1763
1715
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1764
1716
|
actionExecutionId: event.actionExecutionId,
|
|
1765
1717
|
actionName: event.actionName,
|
|
@@ -1783,7 +1735,7 @@ var CopilotResolver = class {
|
|
|
1783
1735
|
role: MessageRole.assistant,
|
|
1784
1736
|
createdAt: /* @__PURE__ */ new Date()
|
|
1785
1737
|
});
|
|
1786
|
-
outputMessages.push((0,
|
|
1738
|
+
outputMessages.push((0, import_class_transformer.plainToInstance)(AgentStateMessage, {
|
|
1787
1739
|
id: (0, import_shared4.randomId)(),
|
|
1788
1740
|
threadId: event.threadId,
|
|
1789
1741
|
agentName: event.agentName,
|