@graphai/sleeper_agents
v0.2.0
Published
Sleeper agents for GraphAI.
Downloads
223
Readme
@graphai/sleeper_agents for GraphAI
Sleeper agents for GraphAI.
Install
yarn add @graphai/sleeper_agents
Usage
import { GraphAI } from "graphai";
import { sleepAndMergeAgent, sleeperAgentDebug } from "@graphai/sleeper_agents";
const agents = { sleepAndMergeAgent, sleeperAgentDebug };
const graph = new GraphAI(graph_data, agents);
const result = await graph.run();
Agents description
- sleepAndMergeAgent - sleeper and merge Agent
- sleeperAgentDebug - sleeper debug Agent
Input/Output/Params Schema & samples
Input/Params example
- sleepAndMergeAgent
{
"inputs": {},
"params": {
"duration": 1
}
}
{
"inputs": {
"array": [
{
"a": 1
},
{
"b": 2
}
]
},
"params": {
"duration": 1
}
}
- sleeperAgentDebug
{
"inputs": {},
"params": {
"duration": 1
}
}
{
"inputs": {
"array": [
{
"a": 1
},
{
"b": 2
}
]
},
"params": {
"duration": 1
}
}