Server-side Usage
Prerequisite
- Scoopika account. create one here.
- Scoopika access token. generate one here.
- Initialized Scoopika instance. check the quickstart.
Initialize Boxes
Before being able to use boxes, you need to intialize them:
Run Box
The box.run
method takes an object with the properties inputs and hooks, learn more.
Load Box Data
The box data, like its ID and list of agents under it, are not loaded from the platform once you initialize the box, and instead are loaded after the first time you use the box or run it. so you can pre-load it to get access to it before making a run:
Add Tools to Box
You can add custom functions as tools to boxes in two ways:
-
Global tools: Those tools will be added to all agents under the box. See how
-
Specific tools: Those tools are added to only the Agent you specific by its ID. See how
Notice that this page does not show how you can build a tool schema, check Tools documentation for that.
Was this page helpful?