@receptron/graphai_express 0.0.19 → 0.0.21

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.
Files changed (2) hide show
  1. package/lib/express.js +4 -2
  2. package/package.json +1 -1
package/lib/express.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.streamAgentDispatcher = exports.nonStreamAgentDispatcher = exports.agentDispatcher = exports.agentDoc = exports.agentsList = void 0;
4
- const graphai_1 = require("graphai");
5
4
  const agent_filters_1 = require("@graphai/agent_filters");
6
5
  // express middleware
7
6
  // return agent list
@@ -18,6 +17,9 @@ const agentsList = (agentDictionary, hostName = "https://example.com", urlPath =
18
17
  author: agent.author,
19
18
  license: agent.license,
20
19
  repository: agent.repository,
20
+ samples: agent.samples,
21
+ inputs: agent.inputs,
22
+ output: agent.output,
21
23
  };
22
24
  });
23
25
  res.json({ agents: list });
@@ -133,7 +135,7 @@ const agentDispatcherInternal = (agentDictionary, agentFilters = []) => {
133
135
  agents: agentDictionary,
134
136
  filterParams: {},
135
137
  };
136
- const agentFilterRunner = (0, graphai_1.agentFilterRunnerBuilder)(agentFilters);
138
+ const agentFilterRunner = (0, agent_filters_1.agentFilterRunnerBuilder)(agentFilters);
137
139
  const result = await agentFilterRunner(context, agent.agent);
138
140
  return result;
139
141
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@receptron/graphai_express",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": "GraphAI express web server middleware.",
5
5
  "main": "lib/express.js",
6
6
  "files": [