@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",
|
|
@@ -151,6 +151,12 @@ var MessageRole;
|
|
|
151
151
|
MessageRole2["system"] = "system";
|
|
152
152
|
MessageRole2["tool"] = "tool";
|
|
153
153
|
})(MessageRole || (MessageRole = {}));
|
|
154
|
+
var ActionExecutionScope;
|
|
155
|
+
(function(ActionExecutionScope2) {
|
|
156
|
+
ActionExecutionScope2["server"] = "server";
|
|
157
|
+
ActionExecutionScope2["client"] = "client";
|
|
158
|
+
ActionExecutionScope2["passThrough"] = "passThrough";
|
|
159
|
+
})(ActionExecutionScope || (ActionExecutionScope = {}));
|
|
154
160
|
var CopilotRequestType;
|
|
155
161
|
(function(CopilotRequestType2) {
|
|
156
162
|
CopilotRequestType2["Chat"] = "Chat";
|
|
@@ -169,6 +175,10 @@ var ActionInputAvailability;
|
|
|
169
175
|
name: "MessageRole",
|
|
170
176
|
description: "The role of the message"
|
|
171
177
|
});
|
|
178
|
+
(0, import_type_graphql.registerEnumType)(ActionExecutionScope, {
|
|
179
|
+
name: "ActionExecutionScope",
|
|
180
|
+
description: "The scope of the action"
|
|
181
|
+
});
|
|
172
182
|
(0, import_type_graphql.registerEnumType)(CopilotRequestType, {
|
|
173
183
|
name: "CopilotRequestType",
|
|
174
184
|
description: "The type of Copilot request"
|
|
@@ -266,7 +276,6 @@ MessageInput = _ts_decorate2([
|
|
|
266
276
|
], MessageInput);
|
|
267
277
|
var TextMessageInput = class {
|
|
268
278
|
content;
|
|
269
|
-
parentMessageId;
|
|
270
279
|
role;
|
|
271
280
|
};
|
|
272
281
|
__name(TextMessageInput, "TextMessageInput");
|
|
@@ -274,12 +283,6 @@ _ts_decorate2([
|
|
|
274
283
|
(0, import_type_graphql3.Field)(() => String),
|
|
275
284
|
_ts_metadata2("design:type", String)
|
|
276
285
|
], TextMessageInput.prototype, "content", void 0);
|
|
277
|
-
_ts_decorate2([
|
|
278
|
-
(0, import_type_graphql3.Field)(() => String, {
|
|
279
|
-
nullable: true
|
|
280
|
-
}),
|
|
281
|
-
_ts_metadata2("design:type", String)
|
|
282
|
-
], TextMessageInput.prototype, "parentMessageId", void 0);
|
|
283
286
|
_ts_decorate2([
|
|
284
287
|
(0, import_type_graphql3.Field)(() => MessageRole),
|
|
285
288
|
_ts_metadata2("design:type", typeof MessageRole === "undefined" ? Object : MessageRole)
|
|
@@ -290,7 +293,6 @@ TextMessageInput = _ts_decorate2([
|
|
|
290
293
|
var ActionExecutionMessageInput = class {
|
|
291
294
|
name;
|
|
292
295
|
arguments;
|
|
293
|
-
parentMessageId;
|
|
294
296
|
scope;
|
|
295
297
|
};
|
|
296
298
|
__name(ActionExecutionMessageInput, "ActionExecutionMessageInput");
|
|
@@ -303,17 +305,8 @@ _ts_decorate2([
|
|
|
303
305
|
_ts_metadata2("design:type", String)
|
|
304
306
|
], ActionExecutionMessageInput.prototype, "arguments", void 0);
|
|
305
307
|
_ts_decorate2([
|
|
306
|
-
(0, import_type_graphql3.Field)(() =>
|
|
307
|
-
|
|
308
|
-
}),
|
|
309
|
-
_ts_metadata2("design:type", String)
|
|
310
|
-
], ActionExecutionMessageInput.prototype, "parentMessageId", void 0);
|
|
311
|
-
_ts_decorate2([
|
|
312
|
-
(0, import_type_graphql3.Field)(() => String, {
|
|
313
|
-
nullable: true,
|
|
314
|
-
deprecationReason: "This field will be removed in a future version"
|
|
315
|
-
}),
|
|
316
|
-
_ts_metadata2("design:type", typeof String === "undefined" ? Object : String)
|
|
308
|
+
(0, import_type_graphql3.Field)(() => ActionExecutionScope),
|
|
309
|
+
_ts_metadata2("design:type", typeof ActionExecutionScope === "undefined" ? Object : ActionExecutionScope)
|
|
317
310
|
], ActionExecutionMessageInput.prototype, "scope", void 0);
|
|
318
311
|
ActionExecutionMessageInput = _ts_decorate2([
|
|
319
312
|
(0, import_type_graphql3.InputType)()
|
|
@@ -321,7 +314,6 @@ ActionExecutionMessageInput = _ts_decorate2([
|
|
|
321
314
|
var ResultMessageInput = class {
|
|
322
315
|
actionExecutionId;
|
|
323
316
|
actionName;
|
|
324
|
-
parentMessageId;
|
|
325
317
|
result;
|
|
326
318
|
};
|
|
327
319
|
__name(ResultMessageInput, "ResultMessageInput");
|
|
@@ -333,12 +325,6 @@ _ts_decorate2([
|
|
|
333
325
|
(0, import_type_graphql3.Field)(() => String),
|
|
334
326
|
_ts_metadata2("design:type", String)
|
|
335
327
|
], ResultMessageInput.prototype, "actionName", void 0);
|
|
336
|
-
_ts_decorate2([
|
|
337
|
-
(0, import_type_graphql3.Field)(() => String, {
|
|
338
|
-
nullable: true
|
|
339
|
-
}),
|
|
340
|
-
_ts_metadata2("design:type", String)
|
|
341
|
-
], ResultMessageInput.prototype, "parentMessageId", void 0);
|
|
342
328
|
_ts_decorate2([
|
|
343
329
|
(0, import_type_graphql3.Field)(() => String),
|
|
344
330
|
_ts_metadata2("design:type", String)
|
|
@@ -602,7 +588,6 @@ var ForwardedParametersInput = class {
|
|
|
602
588
|
stop;
|
|
603
589
|
toolChoice;
|
|
604
590
|
toolChoiceFunctionName;
|
|
605
|
-
temperature;
|
|
606
591
|
};
|
|
607
592
|
__name(ForwardedParametersInput, "ForwardedParametersInput");
|
|
608
593
|
_ts_decorate7([
|
|
@@ -637,12 +622,6 @@ _ts_decorate7([
|
|
|
637
622
|
}),
|
|
638
623
|
_ts_metadata7("design:type", String)
|
|
639
624
|
], ForwardedParametersInput.prototype, "toolChoiceFunctionName", void 0);
|
|
640
|
-
_ts_decorate7([
|
|
641
|
-
(0, import_type_graphql8.Field)(() => Number, {
|
|
642
|
-
nullable: true
|
|
643
|
-
}),
|
|
644
|
-
_ts_metadata7("design:type", Number)
|
|
645
|
-
], ForwardedParametersInput.prototype, "temperature", void 0);
|
|
646
625
|
ForwardedParametersInput = _ts_decorate7([
|
|
647
626
|
(0, import_type_graphql8.InputType)()
|
|
648
627
|
], ForwardedParametersInput);
|
|
@@ -1068,7 +1047,6 @@ BaseMessageOutput = _ts_decorate13([
|
|
|
1068
1047
|
var TextMessageOutput = class {
|
|
1069
1048
|
role;
|
|
1070
1049
|
content;
|
|
1071
|
-
parentMessageId;
|
|
1072
1050
|
};
|
|
1073
1051
|
__name(TextMessageOutput, "TextMessageOutput");
|
|
1074
1052
|
_ts_decorate13([
|
|
@@ -1081,12 +1059,6 @@ _ts_decorate13([
|
|
|
1081
1059
|
]),
|
|
1082
1060
|
_ts_metadata13("design:type", Array)
|
|
1083
1061
|
], TextMessageOutput.prototype, "content", void 0);
|
|
1084
|
-
_ts_decorate13([
|
|
1085
|
-
(0, import_type_graphql14.Field)(() => String, {
|
|
1086
|
-
nullable: true
|
|
1087
|
-
}),
|
|
1088
|
-
_ts_metadata13("design:type", String)
|
|
1089
|
-
], TextMessageOutput.prototype, "parentMessageId", void 0);
|
|
1090
1062
|
TextMessageOutput = _ts_decorate13([
|
|
1091
1063
|
(0, import_type_graphql14.ObjectType)({
|
|
1092
1064
|
implements: BaseMessageOutput
|
|
@@ -1096,7 +1068,6 @@ var ActionExecutionMessageOutput = class {
|
|
|
1096
1068
|
name;
|
|
1097
1069
|
scope;
|
|
1098
1070
|
arguments;
|
|
1099
|
-
parentMessageId;
|
|
1100
1071
|
};
|
|
1101
1072
|
__name(ActionExecutionMessageOutput, "ActionExecutionMessageOutput");
|
|
1102
1073
|
_ts_decorate13([
|
|
@@ -1104,11 +1075,8 @@ _ts_decorate13([
|
|
|
1104
1075
|
_ts_metadata13("design:type", String)
|
|
1105
1076
|
], ActionExecutionMessageOutput.prototype, "name", void 0);
|
|
1106
1077
|
_ts_decorate13([
|
|
1107
|
-
(0, import_type_graphql14.Field)(() =>
|
|
1108
|
-
|
|
1109
|
-
deprecationReason: "This field will be removed in a future version"
|
|
1110
|
-
}),
|
|
1111
|
-
_ts_metadata13("design:type", String)
|
|
1078
|
+
(0, import_type_graphql14.Field)(() => ActionExecutionScope),
|
|
1079
|
+
_ts_metadata13("design:type", typeof ActionExecutionScope === "undefined" ? Object : ActionExecutionScope)
|
|
1112
1080
|
], ActionExecutionMessageOutput.prototype, "scope", void 0);
|
|
1113
1081
|
_ts_decorate13([
|
|
1114
1082
|
(0, import_type_graphql14.Field)(() => [
|
|
@@ -1116,12 +1084,6 @@ _ts_decorate13([
|
|
|
1116
1084
|
]),
|
|
1117
1085
|
_ts_metadata13("design:type", Array)
|
|
1118
1086
|
], ActionExecutionMessageOutput.prototype, "arguments", void 0);
|
|
1119
|
-
_ts_decorate13([
|
|
1120
|
-
(0, import_type_graphql14.Field)(() => String, {
|
|
1121
|
-
nullable: true
|
|
1122
|
-
}),
|
|
1123
|
-
_ts_metadata13("design:type", String)
|
|
1124
|
-
], ActionExecutionMessageOutput.prototype, "parentMessageId", void 0);
|
|
1125
1087
|
ActionExecutionMessageOutput = _ts_decorate13([
|
|
1126
1088
|
(0, import_type_graphql14.ObjectType)({
|
|
1127
1089
|
implements: BaseMessageOutput
|
|
@@ -1273,14 +1235,13 @@ var TextMessage = class extends Message {
|
|
|
1273
1235
|
type = "TextMessage";
|
|
1274
1236
|
content;
|
|
1275
1237
|
role;
|
|
1276
|
-
parentMessageId;
|
|
1277
1238
|
};
|
|
1278
1239
|
__name(TextMessage, "TextMessage");
|
|
1279
1240
|
var ActionExecutionMessage = class extends Message {
|
|
1280
1241
|
type = "ActionExecutionMessage";
|
|
1281
1242
|
name;
|
|
1282
1243
|
arguments;
|
|
1283
|
-
|
|
1244
|
+
scope;
|
|
1284
1245
|
};
|
|
1285
1246
|
__name(ActionExecutionMessage, "ActionExecutionMessage");
|
|
1286
1247
|
var ResultMessage = class extends Message {
|
|
@@ -1364,7 +1325,6 @@ __name(getRuntimeInstanceTelemetryInfo, "getRuntimeInstanceTelemetryInfo");
|
|
|
1364
1325
|
var telemetry_client_default = telemetryClient;
|
|
1365
1326
|
|
|
1366
1327
|
// src/service-adapters/events.ts
|
|
1367
|
-
var import_class_transformer = require("class-transformer");
|
|
1368
1328
|
var RuntimeEventTypes;
|
|
1369
1329
|
(function(RuntimeEventTypes2) {
|
|
1370
1330
|
RuntimeEventTypes2["TextMessageStart"] = "TextMessageStart";
|
|
@@ -1379,7 +1339,7 @@ var RuntimeEventTypes;
|
|
|
1379
1339
|
|
|
1380
1340
|
// src/graphql/resolvers/copilot.resolver.ts
|
|
1381
1341
|
var import_graphql_scalars2 = require("graphql-scalars");
|
|
1382
|
-
var
|
|
1342
|
+
var import_class_transformer = require("class-transformer");
|
|
1383
1343
|
var import_graphql = require("graphql");
|
|
1384
1344
|
|
|
1385
1345
|
// src/utils/failed-response-status-reasons.ts
|
|
@@ -1577,7 +1537,7 @@ var CopilotResolver = class {
|
|
|
1577
1537
|
reason: `Interrupted due to Guardrails validation failure. Reason: ${result.reason}`
|
|
1578
1538
|
});
|
|
1579
1539
|
outputMessages = [
|
|
1580
|
-
(0,
|
|
1540
|
+
(0, import_class_transformer.plainToInstance)(TextMessage, {
|
|
1581
1541
|
id: (0, import_shared4.randomId)(),
|
|
1582
1542
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1583
1543
|
content: result.reason,
|
|
@@ -1626,15 +1586,12 @@ var CopilotResolver = class {
|
|
|
1626
1586
|
// skip until this message start event
|
|
1627
1587
|
(0, import_rxjs3.skipWhile)((e) => e !== event),
|
|
1628
1588
|
// take until the message end event
|
|
1629
|
-
(0, import_rxjs3.takeWhile)((e) =>
|
|
1630
|
-
// filter out any other message events or message ids
|
|
1631
|
-
(0, import_rxjs3.filter)((e) => e.type == RuntimeEventTypes.TextMessageContent && e.messageId == event.messageId)
|
|
1589
|
+
(0, import_rxjs3.takeWhile)((e) => e.type != RuntimeEventTypes.TextMessageEnd)
|
|
1632
1590
|
);
|
|
1633
1591
|
const streamingTextStatus = new import_rxjs3.Subject();
|
|
1634
1592
|
const messageId = event.messageId;
|
|
1635
1593
|
pushMessage({
|
|
1636
1594
|
id: messageId,
|
|
1637
|
-
parentMessageId: event.parentMessageId,
|
|
1638
1595
|
status: (0, import_rxjs3.firstValueFrom)(streamingTextStatus),
|
|
1639
1596
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1640
1597
|
role: MessageRole.assistant,
|
|
@@ -1647,7 +1604,7 @@ var CopilotResolver = class {
|
|
|
1647
1604
|
reason,
|
|
1648
1605
|
messageId: messageId2
|
|
1649
1606
|
}, "Text streaming interrupted");
|
|
1650
|
-
streamingTextStatus.next((0,
|
|
1607
|
+
streamingTextStatus.next((0, import_class_transformer.plainToInstance)(FailedMessageStatus, {
|
|
1651
1608
|
reason
|
|
1652
1609
|
}));
|
|
1653
1610
|
responseStatus$.next(new MessageStreamInterruptedResponse({
|
|
@@ -1680,7 +1637,7 @@ var CopilotResolver = class {
|
|
|
1680
1637
|
streamingTextStatus.next(new SuccessMessageStatus());
|
|
1681
1638
|
stopStreamingText();
|
|
1682
1639
|
textSubscription == null ? void 0 : textSubscription.unsubscribe();
|
|
1683
|
-
outputMessages.push((0,
|
|
1640
|
+
outputMessages.push((0, import_class_transformer.plainToInstance)(TextMessage, {
|
|
1684
1641
|
id: messageId,
|
|
1685
1642
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1686
1643
|
content: textChunks.join(""),
|
|
@@ -1693,20 +1650,14 @@ var CopilotResolver = class {
|
|
|
1693
1650
|
break;
|
|
1694
1651
|
case RuntimeEventTypes.ActionExecutionStart:
|
|
1695
1652
|
logger2.debug("Action execution start event received");
|
|
1696
|
-
const actionExecutionArgumentStream = eventStream.pipe(
|
|
1697
|
-
(0, import_rxjs3.skipWhile)((e) => e !== event),
|
|
1698
|
-
// take until the action execution end event
|
|
1699
|
-
(0, import_rxjs3.takeWhile)((e) => !(e.type === RuntimeEventTypes.ActionExecutionEnd && e.actionExecutionId == event.actionExecutionId)),
|
|
1700
|
-
// filter out any other action execution events or action execution ids
|
|
1701
|
-
(0, import_rxjs3.filter)((e) => e.type == RuntimeEventTypes.ActionExecutionArgs && e.actionExecutionId == event.actionExecutionId)
|
|
1702
|
-
);
|
|
1653
|
+
const actionExecutionArgumentStream = eventStream.pipe((0, import_rxjs3.skipWhile)((e) => e !== event), (0, import_rxjs3.takeWhile)((e) => e.type != RuntimeEventTypes.ActionExecutionEnd));
|
|
1703
1654
|
const streamingArgumentsStatus = new import_rxjs3.Subject();
|
|
1704
1655
|
pushMessage({
|
|
1705
1656
|
id: event.actionExecutionId,
|
|
1706
|
-
parentMessageId: event.parentMessageId,
|
|
1707
1657
|
status: (0, import_rxjs3.firstValueFrom)(streamingArgumentsStatus),
|
|
1708
1658
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1709
1659
|
name: event.actionName,
|
|
1660
|
+
scope: event.scope,
|
|
1710
1661
|
arguments: new import_graphql_yoga.Repeater(async (pushArgumentsChunk, stopStreamingArguments) => {
|
|
1711
1662
|
logger2.debug("Action execution argument stream created");
|
|
1712
1663
|
const argumentChunks = [];
|
|
@@ -1722,7 +1673,7 @@ var CopilotResolver = class {
|
|
|
1722
1673
|
logger2.error({
|
|
1723
1674
|
err
|
|
1724
1675
|
}, "Error in action execution argument stream");
|
|
1725
|
-
streamingArgumentsStatus.next((0,
|
|
1676
|
+
streamingArgumentsStatus.next((0, import_class_transformer.plainToInstance)(FailedMessageStatus, {
|
|
1726
1677
|
reason: "An unknown error has occurred in the action execution argument stream"
|
|
1727
1678
|
}));
|
|
1728
1679
|
stopStreamingArguments();
|
|
@@ -1733,10 +1684,11 @@ var CopilotResolver = class {
|
|
|
1733
1684
|
streamingArgumentsStatus.next(new SuccessMessageStatus());
|
|
1734
1685
|
stopStreamingArguments();
|
|
1735
1686
|
actionExecutionArgumentSubscription == null ? void 0 : actionExecutionArgumentSubscription.unsubscribe();
|
|
1736
|
-
outputMessages.push((0,
|
|
1687
|
+
outputMessages.push((0, import_class_transformer.plainToInstance)(ActionExecutionMessage, {
|
|
1737
1688
|
id: event.actionExecutionId,
|
|
1738
1689
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1739
1690
|
name: event.actionName,
|
|
1691
|
+
scope: event.scope,
|
|
1740
1692
|
arguments: argumentChunks.join("")
|
|
1741
1693
|
}));
|
|
1742
1694
|
}
|
|
@@ -1749,15 +1701,15 @@ var CopilotResolver = class {
|
|
|
1749
1701
|
result: event.result
|
|
1750
1702
|
}, "Action execution result event received");
|
|
1751
1703
|
pushMessage({
|
|
1752
|
-
id:
|
|
1704
|
+
id: (0, import_shared4.randomId)(),
|
|
1753
1705
|
status: new SuccessMessageStatus(),
|
|
1754
1706
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1755
1707
|
actionExecutionId: event.actionExecutionId,
|
|
1756
1708
|
actionName: event.actionName,
|
|
1757
1709
|
result: event.result
|
|
1758
1710
|
});
|
|
1759
|
-
outputMessages.push((0,
|
|
1760
|
-
id:
|
|
1711
|
+
outputMessages.push((0, import_class_transformer.plainToInstance)(ResultMessage, {
|
|
1712
|
+
id: (0, import_shared4.randomId)(),
|
|
1761
1713
|
createdAt: /* @__PURE__ */ new Date(),
|
|
1762
1714
|
actionExecutionId: event.actionExecutionId,
|
|
1763
1715
|
actionName: event.actionName,
|
|
@@ -1781,7 +1733,7 @@ var CopilotResolver = class {
|
|
|
1781
1733
|
role: MessageRole.assistant,
|
|
1782
1734
|
createdAt: /* @__PURE__ */ new Date()
|
|
1783
1735
|
});
|
|
1784
|
-
outputMessages.push((0,
|
|
1736
|
+
outputMessages.push((0, import_class_transformer.plainToInstance)(AgentStateMessage, {
|
|
1785
1737
|
id: (0, import_shared4.randomId)(),
|
|
1786
1738
|
threadId: event.threadId,
|
|
1787
1739
|
agentName: event.agentName,
|