This package is used to:
-
Run AI agents and multi-agent boxes.
-
Manage chat and history sessions.
-
Equip agents with external tools & custom functions.
-
Extract structured data using agents.
-
Go crazy and pass agents as tools to other agents so they can call each other.
-
Stream responses with built-in streaming hooks.
-
Built-in support for vision (and soon sound and videos).
and much more... check the docs for more info.
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",
engines: {
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.