@receptron/graphai_express 0.0.11 → 0.0.13

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/README.md CHANGED
@@ -12,7 +12,7 @@ yarn add @receptron/graphai_express
12
12
  ```TypeScript
13
13
 
14
14
  import express from "express";
15
- import * as agents from "graphai/lib/experimental_agents";
15
+ import * as agents from "@graphai/agents";
16
16
  import { agentDispatcher, nonStreamAgentDispatcher, streamAgentDispatcher, agentsList, agentDoc } from "@receptron/graphai_express";
17
17
  import { AgentFunctionInfoDictionary } from "graphai";
18
18
 
package/lib/express.js CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.streamAgentDispatcher = exports.nonStreamAgentDispatcher = exports.agentDispatcher = exports.agentDoc = exports.agentsList = void 0;
4
4
  const graphai_1 = require("graphai");
5
- const stream_1 = require("graphai/lib/experimental_agent_filters/stream");
5
+ const agent_filters_1 = require("@graphai/agent_filters");
6
6
  // express middleware
7
7
  // return agent list
8
8
  const agentsList = (agentDictionary, hostName = "https://example.com", urlPath = "/agent") => {
@@ -88,7 +88,7 @@ const streamAgentDispatcher = (agentDictionary, agentFilters = []) => {
88
88
  };
89
89
  const streamAgentFilter = {
90
90
  name: "streamAgentFilter",
91
- agent: (0, stream_1.streamAgentFilterGenerator)(callback),
91
+ agent: (0, agent_filters_1.streamAgentFilterGenerator)(callback),
92
92
  };
93
93
  const filterList = [...agentFilters, streamAgentFilter];
94
94
  const dispatcher = agentDispatcherInternal(agentDictionary, filterList);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@receptron/graphai_express",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "GraphAI express web server middleware.",
5
5
  "main": "lib/express.js",
6
6
  "files": [
@@ -10,8 +10,8 @@
10
10
  "build": "tsc && tsc-alias",
11
11
  "eslint": "eslint --fix",
12
12
  "server": "ts-node -r tsconfig-paths/register test/express.ts",
13
- "test_stream": "ts-node -r tsconfig-paths/register test/stream_client.ts",
14
- "test": "ts-node -r tsconfig-paths/register test/client.ts",
13
+ "test_stream": "ts-node -r tsconfig-paths/register test/stream_client.ts",
14
+ "test": "ts-node -r tsconfig-paths/register test/client.ts",
15
15
  "format": "prettier --write '{src,test}/**/*.{yaml,ts,json}'",
16
16
  "b": "yarn run format && yarn run eslint && yarn run build"
17
17
  },
@@ -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.2",
29
+ "@graphai/agents": "^0.0.4",
30
30
  "@types/express": "^4.17.21",
31
31
  "@types/node": "^20.8.7",
32
32
  "eslint": "^9.3.0",
@@ -40,11 +40,10 @@
40
40
  "dependencies": {
41
41
  "@graphai/agent_filters": "^0.0.1",
42
42
  "@inquirer/prompts": "^5.0.0",
43
- "arxiv-api-ts": "^1.0.3",
44
43
  "deepmerge": "^4.3.1",
45
44
  "dotenv": "^16.4.5",
46
45
  "express": "^4.19.2",
47
- "graphai": "^0.4.5",
46
+ "graphai": "^0.4.6",
48
47
  "groq-sdk": "^0.3.3",
49
48
  "openai": "^4.12.4",
50
49
  "slashgpt": "^0.1.2",