0.0.2 • Published 7 months ago

@graphai/all v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@graphai/all for GraphAI

All-in packages for GraphAI.

This meta-package contains all the necessary dependencies for using GraphAI, including the core library and standard agents.

Install

yarn add @graphai/all

Usage

import { GraphAI, agents } from "@graphai/all";

const main = async () => {
  const graphData = {
    version: 0.5,
    nodes: {
      init: { value: "hello" },
      result: {
        agent: "copyAgent",
        inputs: {
          text: ":init",
        },
        isResult: true,
      },
    },
  };
  const graphai = new GraphAI(graphData, agents);
  const result = await graphai.run();
  console.log(result);
};

main();