graphai 0.4.7 → 0.4.8

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
@@ -379,10 +379,4 @@ Since the task executing the nested graph will be in "running" state while tasks
379
379
 
380
380
  By default, tasks are executed in a first-in, first-out (FIFO) order with a neutral priority (0). However, you can assign custom priorities to nodes using the *priority* property. Tasks associated with nodes that have a higher priority value will be executed before those with lower priorities.
381
381
 
382
- Negative priority values are allowed, enabling you to fine-tune the execution order based on your application's requirements.
383
-
384
- ## References
385
-
386
- - [Collaboration](./Collaboration.md)
387
- - [Sample Graphs](./samples/README.md)
388
- - [API Document](./APIDocument.md)
382
+ Negative priority values are allowed, enabling you to fine-tune the execution order based on your application's requirements.
package/lib/index.d.ts CHANGED
@@ -2,5 +2,5 @@ export { GraphAI } from "./graphai";
2
2
  export { AgentFunction, AgentFunctionInfo, AgentFunctionInfoDictionary, AgentFunctionContext, GraphData, ResultDataDictionary, ResultData, NodeState, AgentFilterFunction, AgentFilterInfo, NodeData, StaticNodeData, ComputedNodeData, DefaultResultData, DefaultInputData, } from "./type";
3
3
  export type { TransactionLog } from "./transaction_log";
4
4
  export { agentFilterRunnerBuilder } from "./utils/runner";
5
- export { defaultAgentInfo, agentInfoWrapper, defaultTestContext, strIntentionalError } from "./utils/utils";
5
+ export { defaultAgentInfo, agentInfoWrapper, defaultTestContext, strIntentionalError, assert, sleep } from "./utils/utils";
6
6
  export { ValidationError } from "./validators/common";
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ValidationError = exports.strIntentionalError = exports.defaultTestContext = exports.agentInfoWrapper = exports.defaultAgentInfo = exports.agentFilterRunnerBuilder = exports.NodeState = exports.GraphAI = void 0;
3
+ exports.ValidationError = exports.sleep = exports.assert = exports.strIntentionalError = exports.defaultTestContext = exports.agentInfoWrapper = exports.defaultAgentInfo = exports.agentFilterRunnerBuilder = exports.NodeState = exports.GraphAI = void 0;
4
4
  var graphai_1 = require("./graphai");
5
5
  Object.defineProperty(exports, "GraphAI", { enumerable: true, get: function () { return graphai_1.GraphAI; } });
6
6
  var type_1 = require("./type");
@@ -12,5 +12,7 @@ Object.defineProperty(exports, "defaultAgentInfo", { enumerable: true, get: func
12
12
  Object.defineProperty(exports, "agentInfoWrapper", { enumerable: true, get: function () { return utils_1.agentInfoWrapper; } });
13
13
  Object.defineProperty(exports, "defaultTestContext", { enumerable: true, get: function () { return utils_1.defaultTestContext; } });
14
14
  Object.defineProperty(exports, "strIntentionalError", { enumerable: true, get: function () { return utils_1.strIntentionalError; } });
15
+ Object.defineProperty(exports, "assert", { enumerable: true, get: function () { return utils_1.assert; } });
16
+ Object.defineProperty(exports, "sleep", { enumerable: true, get: function () { return utils_1.sleep; } });
15
17
  var common_1 = require("./validators/common");
16
18
  Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return common_1.ValidationError; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphai",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "Asynchronous data flow execution engine for agentic AI apps.",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -9,8 +9,9 @@
9
9
  "scripts": {
10
10
  "build": "rm -r lib/* && tsc && tsc-alias",
11
11
  "eslint": "eslint",
12
+ "rollup": "npx rollup -c",
12
13
  "doc": " npx typedoc src/index.ts --out ../../docs/apiDoc",
13
- "format": "prettier --write '{src,tests,samples}/**/*.ts'",
14
+ "format": "prettier --write '{src,tests,samples}/**/*.ts' *.mjs",
14
15
  "test": "node --test -r tsconfig-paths/register --require ts-node/register ./tests/**/test_*.ts",
15
16
  "b": "yarn run format && yarn run eslint && yarn run build"
16
17
  },