@ag-ui/proto 0.0.35 → 0.0.36-alpha.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/dist/index.js +21 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -562,7 +562,15 @@ var ToolCall_Function = {
|
|
|
562
562
|
}
|
|
563
563
|
};
|
|
564
564
|
function createBaseMessage() {
|
|
565
|
-
return {
|
|
565
|
+
return {
|
|
566
|
+
id: "",
|
|
567
|
+
role: "",
|
|
568
|
+
content: void 0,
|
|
569
|
+
name: void 0,
|
|
570
|
+
toolCalls: [],
|
|
571
|
+
toolCallId: void 0,
|
|
572
|
+
error: void 0
|
|
573
|
+
};
|
|
566
574
|
}
|
|
567
575
|
var Message = {
|
|
568
576
|
encode(message, writer = new import_wire3.BinaryWriter()) {
|
|
@@ -584,6 +592,9 @@ var Message = {
|
|
|
584
592
|
if (message.toolCallId !== void 0) {
|
|
585
593
|
writer.uint32(50).string(message.toolCallId);
|
|
586
594
|
}
|
|
595
|
+
if (message.error !== void 0) {
|
|
596
|
+
writer.uint32(58).string(message.error);
|
|
597
|
+
}
|
|
587
598
|
return writer;
|
|
588
599
|
},
|
|
589
600
|
decode(input, length) {
|
|
@@ -635,6 +646,13 @@ var Message = {
|
|
|
635
646
|
message.toolCallId = reader.string();
|
|
636
647
|
continue;
|
|
637
648
|
}
|
|
649
|
+
case 7: {
|
|
650
|
+
if (tag !== 58) {
|
|
651
|
+
break;
|
|
652
|
+
}
|
|
653
|
+
message.error = reader.string();
|
|
654
|
+
continue;
|
|
655
|
+
}
|
|
638
656
|
}
|
|
639
657
|
if ((tag & 7) === 4 || tag === 0) {
|
|
640
658
|
break;
|
|
@@ -647,7 +665,7 @@ var Message = {
|
|
|
647
665
|
return Message.fromPartial(base != null ? base : {});
|
|
648
666
|
},
|
|
649
667
|
fromPartial(object) {
|
|
650
|
-
var _a, _b, _c, _d, _e, _f;
|
|
668
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
651
669
|
const message = createBaseMessage();
|
|
652
670
|
message.id = (_a = object.id) != null ? _a : "";
|
|
653
671
|
message.role = (_b = object.role) != null ? _b : "";
|
|
@@ -655,6 +673,7 @@ var Message = {
|
|
|
655
673
|
message.name = (_d = object.name) != null ? _d : void 0;
|
|
656
674
|
message.toolCalls = ((_e = object.toolCalls) == null ? void 0 : _e.map((e) => ToolCall.fromPartial(e))) || [];
|
|
657
675
|
message.toolCallId = (_f = object.toolCallId) != null ? _f : void 0;
|
|
676
|
+
message.error = (_g = object.error) != null ? _g : void 0;
|
|
658
677
|
return message;
|
|
659
678
|
}
|
|
660
679
|
};
|