@agentium/transport 2.4.0 → 2.5.0
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.cjs +7 -1
- package/dist/index.js +7 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1128,6 +1128,10 @@ var SCHEMAS = {
|
|
|
1128
1128
|
reason: { type: "string", description: "Why the correction applies" },
|
|
1129
1129
|
entityKey: { type: "string", description: "Real-world entity this applies to, e.g. a vendor ID" },
|
|
1130
1130
|
runId: { type: "string", description: "Run that produced the corrected output" },
|
|
1131
|
+
originalInput: {
|
|
1132
|
+
type: "string",
|
|
1133
|
+
description: "The input that produced the corrected output \u2014 enables regression eval replay"
|
|
1134
|
+
},
|
|
1131
1135
|
sessionId: { type: "string" },
|
|
1132
1136
|
userId: { type: "string" },
|
|
1133
1137
|
tenantId: { type: "string" },
|
|
@@ -1727,12 +1731,14 @@ function createAgentRouter(opts) {
|
|
|
1727
1731
|
sessionId: "string?",
|
|
1728
1732
|
userId: "string?",
|
|
1729
1733
|
tenantId: "string?",
|
|
1730
|
-
scope: "string?"
|
|
1734
|
+
scope: "string?",
|
|
1735
|
+
originalInput: "string?"
|
|
1731
1736
|
});
|
|
1732
1737
|
const correction = await memory.recordCorrection({
|
|
1733
1738
|
agentName: name,
|
|
1734
1739
|
runId: validated.runId,
|
|
1735
1740
|
sessionId: validated.sessionId,
|
|
1741
|
+
originalInput: validated.originalInput,
|
|
1736
1742
|
field: validated.field,
|
|
1737
1743
|
originalValue: validated.originalValue,
|
|
1738
1744
|
correctedValue: validated.correctedValue,
|
package/dist/index.js
CHANGED
|
@@ -1080,6 +1080,10 @@ var SCHEMAS = {
|
|
|
1080
1080
|
reason: { type: "string", description: "Why the correction applies" },
|
|
1081
1081
|
entityKey: { type: "string", description: "Real-world entity this applies to, e.g. a vendor ID" },
|
|
1082
1082
|
runId: { type: "string", description: "Run that produced the corrected output" },
|
|
1083
|
+
originalInput: {
|
|
1084
|
+
type: "string",
|
|
1085
|
+
description: "The input that produced the corrected output \u2014 enables regression eval replay"
|
|
1086
|
+
},
|
|
1083
1087
|
sessionId: { type: "string" },
|
|
1084
1088
|
userId: { type: "string" },
|
|
1085
1089
|
tenantId: { type: "string" },
|
|
@@ -1679,12 +1683,14 @@ function createAgentRouter(opts) {
|
|
|
1679
1683
|
sessionId: "string?",
|
|
1680
1684
|
userId: "string?",
|
|
1681
1685
|
tenantId: "string?",
|
|
1682
|
-
scope: "string?"
|
|
1686
|
+
scope: "string?",
|
|
1687
|
+
originalInput: "string?"
|
|
1683
1688
|
});
|
|
1684
1689
|
const correction = await memory.recordCorrection({
|
|
1685
1690
|
agentName: name,
|
|
1686
1691
|
runId: validated.runId,
|
|
1687
1692
|
sessionId: validated.sessionId,
|
|
1693
|
+
originalInput: validated.originalInput,
|
|
1688
1694
|
field: validated.field,
|
|
1689
1695
|
originalValue: validated.originalValue,
|
|
1690
1696
|
correctedValue: validated.correctedValue,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentium/transport",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "HTTP and WebSocket transport layer for Agentium agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"typescript": "^5.6.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@agentium/core": "^2.
|
|
45
|
+
"@agentium/core": "^2.5.0",
|
|
46
46
|
"@types/express": "^4.0.0 || ^5.0.0",
|
|
47
47
|
"express": "^4.0.0 || ^5.0.0",
|
|
48
48
|
"multer": ">=2.0.0",
|