@receptron/graphai_cli 1.0.1 → 1.0.3
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 +11 -4
- package/lib/graphai_cli.js +11 -2
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -46,8 +46,10 @@ graphai -l
|
|
|
46
46
|
Available Agents
|
|
47
47
|
* anthropicAgent - Anthropic Agent
|
|
48
48
|
* arrayFlatAgent - Array Flat Agent
|
|
49
|
+
* arrayJoinAgent - Array Join Agent
|
|
50
|
+
* compareAgent - compare
|
|
49
51
|
* copy2ArrayAgent - Copy2Array agent
|
|
50
|
-
* copyAgent - Returns
|
|
52
|
+
* copyAgent - Returns namedInputs
|
|
51
53
|
* copyMessageAgent - CopyMessage agent
|
|
52
54
|
* countingAgent - Counting agent
|
|
53
55
|
* dataObjectMergeTemplateAgent - Merge object
|
|
@@ -55,31 +57,36 @@ Available Agents
|
|
|
55
57
|
* dotProductAgent - dotProduct Agent
|
|
56
58
|
* echoAgent - Echo agent
|
|
57
59
|
* fetchAgent - Retrieves JSON data from the specified URL
|
|
60
|
+
* fileReadAgent - Read data from file system and returns data
|
|
61
|
+
* fileWriteAgent - Write data to file system
|
|
58
62
|
* geminiAgent - Gemini Agent
|
|
59
63
|
* groqAgent - Groq Agent
|
|
64
|
+
* images2messageAgent - Returns the message data for llm include image
|
|
60
65
|
* jsonParserAgent - Template agent
|
|
61
66
|
* mapAgent - Map Agent
|
|
62
67
|
* mergeNodeIdAgent - merge node id agent
|
|
63
68
|
* nestedAgent - nested Agent
|
|
64
69
|
* openAIAgent - OpenAI Agent
|
|
65
70
|
* openAIImageAgent - OpenAI Image Agent
|
|
71
|
+
* pathUtilsAgent - Path utils
|
|
66
72
|
* popAgent - Pop Agent
|
|
67
|
-
* propertyFilterAgent - Filter properties based on property name either with 'include'
|
|
73
|
+
* propertyFilterAgent - Filter properties based on property name either with 'include', 'exclude', 'alter', 'swap', 'inject', 'inspect'
|
|
68
74
|
* pushAgent - push Agent
|
|
69
75
|
* replicateAgent - Replicate Agent
|
|
70
76
|
* shiftAgent - shift Agent
|
|
71
|
-
*
|
|
77
|
+
* sleepAndMergeAgent - sleeper and merge Agent
|
|
72
78
|
* sleeperAgent - sleeper Agent
|
|
73
79
|
* sleeperAgentDebug - sleeper debug Agent
|
|
74
80
|
* sortByValuesAgent - sortByValues Agent
|
|
75
81
|
* streamMockAgent - Stream mock agent
|
|
82
|
+
* stringCaseVariantsAgent - Format String Cases agent
|
|
76
83
|
* stringEmbeddingsAgent - Embeddings Agent
|
|
77
84
|
* stringSplitterAgent - This agent strip one long string into chunks using following parameters
|
|
78
85
|
* stringTemplateAgent - Template agent
|
|
86
|
+
* stringUpdateTextAgent -
|
|
79
87
|
* textInputAgent - Text Input Agent
|
|
80
88
|
* tokenBoundStringsAgent - token bound Agent
|
|
81
89
|
* totalAgent - Returns the sum of input values
|
|
82
90
|
* vanillaFetchAgent - Retrieves JSON data from the specified URL
|
|
83
91
|
* wikipediaAgent - Retrieves data from wikipedia
|
|
84
|
-
* workerAgent - Map Agent
|
|
85
92
|
```
|
package/lib/graphai_cli.js
CHANGED
|
@@ -40,6 +40,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
40
40
|
require("dotenv/config");
|
|
41
41
|
const graphai_1 = require("graphai");
|
|
42
42
|
const packages = __importStar(require("@graphai/agents"));
|
|
43
|
+
const token_bound_string_agent_1 = require("@graphai/token_bound_string_agent");
|
|
44
|
+
const vanilla_node_agents_1 = require("@graphai/vanilla_node_agents");
|
|
43
45
|
const fs_1 = __importDefault(require("fs"));
|
|
44
46
|
const path_1 = __importDefault(require("path"));
|
|
45
47
|
const yaml_1 = __importDefault(require("yaml"));
|
|
@@ -50,9 +52,16 @@ const mermaid_1 = require("./mermaid");
|
|
|
50
52
|
const fileFullPath = (file) => {
|
|
51
53
|
return path_1.default.resolve(process.cwd() + "/" + file) || "";
|
|
52
54
|
};
|
|
55
|
+
const agents = {
|
|
56
|
+
...packages,
|
|
57
|
+
tokenBoundStringsAgent: token_bound_string_agent_1.tokenBoundStringsAgent,
|
|
58
|
+
fileReadAgent: vanilla_node_agents_1.fileReadAgent,
|
|
59
|
+
fileWriteAgent: vanilla_node_agents_1.fileWriteAgent,
|
|
60
|
+
pathUtilsAgent: vanilla_node_agents_1.pathUtilsAgent
|
|
61
|
+
};
|
|
53
62
|
const main = async () => {
|
|
54
63
|
if (args_1.hasOption) {
|
|
55
|
-
(0, options_1.option)(args_1.args,
|
|
64
|
+
(0, options_1.option)(args_1.args, agents);
|
|
56
65
|
return;
|
|
57
66
|
}
|
|
58
67
|
const file_path = fileFullPath(args_1.args.yaml_or_json_file);
|
|
@@ -78,7 +87,7 @@ const main = async () => {
|
|
|
78
87
|
console.log(yaml_1.default.stringify(graph_data, null, 2));
|
|
79
88
|
return;
|
|
80
89
|
}
|
|
81
|
-
const graph = new graphai_1.GraphAI(graph_data,
|
|
90
|
+
const graph = new graphai_1.GraphAI(graph_data, agents);
|
|
82
91
|
if (args_1.args.verbose) {
|
|
83
92
|
graph.onLogCallback = test_utils_1.callbackLog;
|
|
84
93
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@receptron/graphai_cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "GraphAI command line tools.",
|
|
5
5
|
"main": "lib/graphai_cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -35,8 +35,10 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@graphai/agent_filters": "^0.2.2",
|
|
38
|
-
"@graphai/agents": "^1.0.
|
|
39
|
-
"@
|
|
38
|
+
"@graphai/agents": "^1.0.2",
|
|
39
|
+
"@graphai/token_bound_string_agent": "^1.0.0",
|
|
40
|
+
"@graphai/vanilla_node_agents": "^1.0.0",
|
|
41
|
+
"@receptron/test_utils": "^1.0.2",
|
|
40
42
|
"dotenv": "^16.4.7",
|
|
41
43
|
"graphai": "^1.0.0",
|
|
42
44
|
"yargs": "^17.7.2"
|