Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

create-graphai-agent

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-graphai-agent

latest
Source
npmnpm
Version
0.0.11
Version published
Maintainers
1
Created
Source

create-graphai-agent

Create a GraphAI agent using a generator.

npm create graphai-agent@latest

When you run it, it will look like this.

$ npm create graphai-agent@latest
Need to install the following packages:
create-graphai-agent@0.0.9
Ok to proceed? (y) 

> npx
> create-graphai-agent

✔ agent name … zenn-agent
✔ agent description … read zenn from web
✔ author name … isamu
✔ license … MIT
✔ agent category … zenn
✔ repository … https://github.com/receptron/graphai/

zenn-agent will be created

cd graphai-agent
yarn install
yarn run test

The unit test will be executed.

The unit test uses the samples value of src/zenn_agent.ts and verifies whether the result matches the result with the input values ​​of inputs and params.

  samples: [{
    params: {a: "1"},
    inputs: {b: "2"},
    result: {
      params: {a: "1"},
      namedInputs: {b: "2"},
    },
  }],

You can unit test by implementing the functions required for the agent in src/zenn_agent.ts and changing the samples.

Since samples is an array, multiple test cases can be specified.

Once implemented and tested, build.

yarn run build

Automatically generate documents based on samples etc.

yarn run doc

Change the name of package.json and npm publish

npm publish  --access=public

Then, you will be able to use the agent from graphai with the npm package.

FAQs

Package last updated on 06 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts