Standard setup (recommended)
Use uv for project management and install the SDK from the private Backbase Artifactory.1. Configure pyproject.toml
Add the Backbase Artifactory repository to your pyproject.toml. This tells uv where to find the bb-ai-sdk package.
pyproject.toml
2. Set credentials
Authenticate with Artifactory using environment variables. Add these to your.env file (and ensure .env is in .gitignore):
.env
3. Install the SDK
Load your environment variables and add the package:Observability extras (recommended for agents)
Install the instrumentation bundles you need. These pull OpenInference + OTel helpers; they do not install Agno/LangChain themselves.framework= in code | Extra |
|---|---|
"agno" | [instrument-agno] (legacy alias: [agno]) |
"langchain" | [instrument-langchain] |
"langgraph" | [instrument-langgraph] |
| FastAPI route spans | [instrument-fastapi] |
uv add "bb-ai-sdk[guardrails]==0.1.9" --index backbase
Verification
Verify the installation was successful (expect0.1.9):