@graphai/sleeper_agents
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

@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
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @graphai/sleeper_agents

Weekly Downloads

21

Version

0.2.0

License

MIT

Unpacked Size

6.63 kB

Total Files

8

Last publish

Collaborators

  • isamu
  • snakajima