@botterylabs/bottery-api
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

Bottery Logo

The simple way to create AI agents for your needs


Getting started

  1. Install the module via npm: npm i @botterylabs/bottery-api
  2. Create an instance of BotteryClient:
const client = new BotteryClient();
  1. Authenticate with the Bottery API:
await client.Connect(process.env.BOTTERY_API_KEY);

That's it, you're good to start using the API!


Example

import dotenv from "dotenv";
dotenv.config();
import BotteryClient from "./src";

const client = new BotteryClient();

(async () => {
    const authRes = await client.Connect(process.env.API_KEY!);
    if(!authRes){
        console.error("Failed to authenticate");
        return;
    }
    const response = await client.GetAgents();
    console.log(`Agents found: `, response)
})()

Package Sidebar

Install

npm i @botterylabs/bottery-api

Weekly Downloads

0

Version

1.3.0

License

none

Unpacked Size

15.1 kB

Total Files

11

Last publish

Collaborators

  • botterylabsllc