@scoopika/scoopika
Get Started
Install the package using your preferred package manager:
Initialization
Let’s initialize a Scoopika class:
- Import the Scoopika class from the package.
- Create a new Scoopika instance, providing the following configuration options:
- token: Your unique Scoopika token, or you can just the
SCOOPIKA_TOKEN
envrionment variable. generate token. - keys: An object containing API keys for the LLM providers your agents utilize. or you can just add them to your account. (refer to the keys documentation for details).
- token: Your unique Scoopika token, or you can just the
Notice that in the keys, you need to provide keys for the providers your agents use. if you’ve already added an API key to your account in the platform there’s no need to pass it again.
Check all options you can pass to a Scoopika instance here.
Usage Example
Web usage (API endpoint)
Let’s setup a Scoopika API endpoint to use it for web usage (server-client):
This nedpoint should work with any web framework that supports HTTP streaming, we recommend you check the guides for different frameworks. but this is an example with express:
and you’re good, you can start using the client library with this endpoint.
Custom usage
Was this page helpful?