Server-side Usage
Prerequisite
- Scoopika account. create one here.
- Scoopika access token. generate one here.
- Initialized Scoopika instance. check the quickstart.
Initialize Agents
Before being able to use agents, you need to intialize them:
Run Agent
The agent.run
method takes an object with the properties inputs and hooks, learn more.
Load Agent Data
The agent data, like its name, are not loaded from the platform once you initialize the agent, and instead are loaded after the first time you use the agent or run it. so you can pre-load it to get access to it before making a run:
Add Tools to Agent
You can add custom functions as tools to agents that they can use when needed based on context.
Notice that this page does not show how you can build a tool schema, check Tools documentation for that.
To learn more, check the full docs.
Pass Agents as Tools to Other Agents
You can pass an agent as tool to another agent, so the primary agent can call the tool agent when it needs to. You can use this in bigger systems where you have multiple agents for different tasks and set of tools.
Was this page helpful?