@graphai/data_agents
v0.2.0
Published
Data agents for GraphAI.
Downloads
229
Readme
@graphai/data_agents for GraphAI
Data agents for GraphAI.
Install
yarn add @graphai/data_agents
Usage
import { GraphAI } from "graphai";
import { dataObjectMergeTemplateAgent } from "@graphai/data_agents";
const agents = { dataObjectMergeTemplateAgent };
const graph = new GraphAI(graph_data, agents);
const result = await graph.run();
Agents description
- dataObjectMergeTemplateAgent - Merge object
Input/Output/Params Schema & samples
Input/Params example
- dataObjectMergeTemplateAgent
{
"inputs": {
"array": [
{
"content1": "hello"
},
{
"content2": "test"
}
]
},
"params": {}
}
{
"inputs": {
"array": [
{
"content1": "hello"
}
]
},
"params": {}
}
{
"inputs": {
"array": [
{
"content": "hello1"
},
{
"content": "hello2"
}
]
},
"params": {}
}
{
"inputs": {
"array": [
{
"a": 1,
"b": 1
},
{
"a": 2,
"b": 2
},
{
"a": 3,
"b": 0,
"c": 5
}
]
},
"params": {}
}
{
"inputs": {
"array": [
{
"a": {
"b": {
"c": {
"d": "e"
}
}
}
},
{
"b": {
"c": {
"d": {
"e": "f"
}
}
}
},
{
"b": {
"d": {
"e": {
"f": "g"
}
}
}
}
]
},
"params": {}
}