@receptron/graphai_express 0.0.15 → 0.0.17
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/lib/express.js +2 -2
- package/package.json +2 -2
package/lib/express.js
CHANGED
|
@@ -76,7 +76,6 @@ const nonStreamAgentDispatcher = (agentDictionary, agentFilters = []) => {
|
|
|
76
76
|
catch (e) {
|
|
77
77
|
next(e);
|
|
78
78
|
}
|
|
79
|
-
;
|
|
80
79
|
};
|
|
81
80
|
};
|
|
82
81
|
exports.nonStreamAgentDispatcher = nonStreamAgentDispatcher;
|
|
@@ -116,7 +115,7 @@ const agentDispatcherInternal = (agentDictionary, agentFilters = []) => {
|
|
|
116
115
|
return async (req, res) => {
|
|
117
116
|
const { params } = req;
|
|
118
117
|
const { agentId } = params;
|
|
119
|
-
const { nodeId, retry, params: agentParams, inputs } = req.body;
|
|
118
|
+
const { nodeId, retry, params: agentParams, inputs, namedInputs } = req.body;
|
|
120
119
|
const agent = agentDictionary[agentId];
|
|
121
120
|
if (agent === undefined) {
|
|
122
121
|
res.status(404).send("Not found");
|
|
@@ -125,6 +124,7 @@ const agentDispatcherInternal = (agentDictionary, agentFilters = []) => {
|
|
|
125
124
|
const context = {
|
|
126
125
|
params: agentParams || {},
|
|
127
126
|
inputs,
|
|
127
|
+
namedInputs,
|
|
128
128
|
debugInfo: {
|
|
129
129
|
nodeId,
|
|
130
130
|
retry,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@receptron/graphai_express",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "GraphAI express web server middleware.",
|
|
5
5
|
"main": "lib/express.js",
|
|
6
6
|
"files": [
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://github.com/receptron/graphai_utils/tree/main/packages/express#readme",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@graphai/agents": "^0.0.
|
|
29
|
+
"@graphai/agents": "^0.0.5",
|
|
30
30
|
"@types/express": "^4.17.21",
|
|
31
31
|
"@types/node": "^20.8.7",
|
|
32
32
|
"eslint": "^9.3.0",
|