smartgpt
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

smartgpt

Usage

Install package:

# npm
npm install smartgpt

# yarn
yarn add smartgpt

# pnpm
pnpm install smartgpt

# bun
bun install smartgpt

Import:

// ESM
import {} from "smartgpt";

// CommonJS
const {} = require("smartgpt");

Usage:

const gpt = new SmartGPT({
    plugins: [
        defineSmartGPTPlugin({
            name: "search",
            description: "a search engine. useful for when you need to answer questions about current events. input should be a search query.",
            handle: (input) => {
                return "ETH price is $69,420";
            },
        }),
    ],
});

await gpt.query({
    input: "What is the price of ETH?",
});

Development

  • Clone this repository
  • Install latest LTS version of Node.js
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

License

Made with 💛

Published under MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i smartgpt

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

22.2 kB

Total Files

9

Last publish

Collaborators

  • kabbouchi