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

0.0.3 • Public • Published

@graphai/extra-agents for GraphAI

Extra agents for GraphAI.

Install

yarn add @graphai/extra-agents

Usage

import { GraphAI } from "graphai";
import { 
  arxivAgent,
  awesomeChatgptPromptsAgent,
  pdf2textAgent,
  promptsAgent,
  serperAgent,
  slackAgent,
  ttsNijivoiceAgent,
  ttsOpenaiAgent
 } from "@graphai/extra-agents";

const agents = { 
  arxivAgent,
  awesomeChatgptPromptsAgent,
  pdf2textAgent,
  promptsAgent,
  serperAgent,
  slackAgent,
  ttsNijivoiceAgent,
  ttsOpenaiAgent
 };

const graph = new GraphAI(graph_data, agents);
const result = await graph.run();

Agents description

  • arxivAgent - Arxiv Agent
  • awesomeChatgptPromptsAgent - awesomeChatgptPrompts Agent
  • pdf2textAgent - Pdf2text Agent
  • promptsAgent - Prompts Agent
  • serperAgent - serper agent
  • slackAgent - Slack Agent
  • ttsNijivoiceAgent - TTS nijivoice agent
  • ttsOpenaiAgent - OpenAI TTS agent

Input/Output/Params Schema & samples

Input/Params example

  • arxivAgent
{
  "inputs": {},
  "params": {
    "searchQueryParams": [
      {
        "include": [
          {
            "name": "LLM"
          }
        ]
      }
    ],
    "sortBy": "lastUpdatedDate",
    "sortOrder": "descending",
    "start": 0,
    "maxResults": 100
  }
}
  • awesomeChatgptPromptsAgent
{
  "inputs": {},
  "params": {
    "promptKey": "travelGuide"
  }
}
  • pdf2textAgent
{
  "inputs": {
    "buffer": {
      "type": "Buffer",
      "data": [
        104,
        101,
        108,
        108,
        111,
        112,
        100,
        102
      ]
    }
  },
  "params": {
    "type": "md"
  }
}
  • promptsAgent
{
  "inputs": {},
  "params": {
    "promptKey": "test"
  }
}
  • serperAgent
{
  "inputs": {
    "query": "apple inc"
  },
  "params": {}
}
  • slackAgent
{
  "inputs": {
    "message": [
      "Hello amateraru from GraphAI Slack agent!"
    ]
  },
  "params": {
    "post_channel": "#p_bootcamp_e_raycast_jp_amaterasu_dev"
  }
}

Environment Variables

  • serperAgent
    • SERPER_API_KEY
  • ttsNijivoiceAgent
    • NIJIVOICE_API_KEY
  • ttsOpenaiAgent
    • OPENAI_API_KEY

Related Agent Packages

Readme

Keywords

none

Package Sidebar

Install

npm i @graphai/extra-agents

Weekly Downloads

7

Version

0.0.3

License

MIT

Unpacked Size

6.84 kB

Total Files

4

Last publish

Collaborators

  • isamu
  • snakajima