Getting Started

Install SDKs

The Superagent SDKs allows you easilly create, deploy and monitor your AI Assistants in a production environment. The Python SDK supports both synchronous and asynchronous concurrency. The Javascript SDK can be run in any environment, in the browser or on the server.

Install the SDK

1poetry add superagent-py
2# or
3pip install superagent-py

Sync

1import os
2from superagent.client import Superagent
3
4client = Superagent(
5 token=os.environ["SUPERAGENT_API_KEY"], # replace with your Superagent API
6 base_url="https://api.beta.superagent.sh" # or your local environment
7)

Async

Python
1import os
2from superagent.client import AsyncSuperagent
3
4client = AsyncSuperagent(
5 token=os.environ["SUPERAGENT_API_KEY"], # replace with your Superagent API key
6 base_url="https://api.beta.superagent.sh" # or you local environment
7)