What is the BB AI SDK?
The BB AI SDK is a Python package published on Backbase Artifactory (repo.backbase.com) that connects your agentic applications to platform services (AI Gateway, Observability) with minimal code. It enables you to build production-ready AI agents with enterprise-grade features while maintaining complete framework flexibility.
Current release:
bb-ai-sdk 0.1.9 on Backbase Artifactory. Pin this version in pyproject.toml when installing from the index (see Installation). The SDK acts as a bridge between any agentic framework (Agno, LangChain, LangGraph, or custom) and Backbase platform services, requiring a few lines of code to get started.Key features
- OpenAI-Compatible: Works with any framework that supports OpenAI SDK
- Automatic Authentication: Handles API keys and agent ID validation
- Built-in Observability: Automatic tracing via OpenTelemetry; export to Langfuse, Grafana, or an OTLP endpoint
- Framework-independent: Native support for LangChain, LangGraph, and Agno
- Zero Vendor Lock-in: Uses standard APIs - your code is fully portable
Core modules
AI gateway
Access AI models through a unified OpenAI-compatible interface
Observability
Trace and monitor your agents with OpenTelemetry; export to Langfuse, Grafana, or an OTLP endpoint
Logging and redaction
Secure logs with trace correlation; same redaction rules as span attributes
Framework adapters
Integrate with LangChain, LangGraph, and Agno
Why the BB AI SDK?
Framework flexibility
Use your preferred Agentic AI framework:- ✅ LangChain: Full support with adapters
- ✅ LangGraph: Native async integration
- ✅ Agno: Direct client compatibility
- ✅ Custom: OpenAI SDK interface works anywhere
Enterprise features
Production-ready capabilities built-in:- 🔐 Multi model AI Gateway with content safety filters and policies
- 📊 Observability with Langfuse, Grafana, or OTLP export via OpenTelemetry
- 🏢 Multi-tenant context tracking
- 💰 Cost tracking per organization
- 🔍 Distributed tracing across services
Zero vendor lock-in
Your code remains portable and future-proof:- Uses standard OpenAI SDK interface
- OpenTelemetry for observability (switch backends anytime)
- Framework-native objects - no custom abstractions
- Works with or without the platform
Quick examples
- Basic usage
- With LangChain
- With LangGraph
- With observability
Next steps
Get started
Install the SDK and build your first agent
AI gateway
Learn about model access and authentication
Observability
Set up tracing and monitoring
Examples
View complete working examples