@scoopika/scoopika
TypeScript icon, indicating that this package has built-in type declarations

1.5.2 • Public • Published

Scoopika

Documentation | Github repo

This package is used to run AI agents that can see, talk, listen, take actions and collaborate together.

With built-in support for streaming, full type-safety and data validation.

Usage

To use this package, you first need to create a Scoopika account here. after that you can create agents and run them.

Also make sure to generate an access token from here.

import { Scoopika, Agent } from "@scoopika/scoopika";

const scoopika = new Scoopika({
  token: "YOUR_SCOOPIKA_TOKEN",
  keys: {
    openai: "OPENAI_KEY", // replace based on the providers your agents use in the platform
  },
});

const agent = new Agent("AGENT_ID", scoopika);

(async () => {
  const response = await agent.run({
    inputs: { message: "Hello!" },
    hooks: {
      onToken: (t) => console.log(t),
    },
  });
})();

For full documentation and examples, refer to the docs.

/@scoopika/scoopika/

    Package Sidebar

    Install

    npm i @scoopika/scoopika

    Weekly Downloads

    189

    Version

    1.5.2

    License

    OPEN SCOOP

    Unpacked Size

    234 kB

    Total Files

    6

    Last publish

    Collaborators

    • kaisradwan