BB AI SDK:
0.1.9 (see Installation). Starter repo version: v0.1.12 (repository badge / pyproject.toml).GitHub repository
View source code, releases, and issues
Prerequisites
- Python 3.12+: Managed via UV
- UV Package Manager: Modern Python package manager (replaces pip/poetry)
Quick start
1. Clone and install UV
2. Set up environment
3. Configure credentials
Edit.env with required values:
4. Install dependencies and run
Load environment variables and sync dependencies:Available agents
The starter exposes three specialized agent endpoints:Instructions agent
Follows precise system prompts.
Endpoint:
/run/instructions_agentReasoning agent
Uses Chain-of-Thought (CoT) reasoning.
Endpoint:
/run/reasoning_agentTools agent
Equipped with tools (e.g., Web Search).
Endpoint:
/run/tools_agentAPI usage
Project structure
Observability
Usesconfigure_observability(fastapi_app=app, framework="agno", ...) in the FastAPI app. Set LANGFUSE_* in .env; extras: bb-ai-sdk[instrument-fastapi,instrument-agno]==0.1.9.
BB AI SDK Observability — integration steps.
Evaluation and Red teaming
The starter includes configuration for Promptfoo, enabling systematic testing and red teaming of your agents.- Evaluations: Defined in
promptfoo_config/*.yaml. - Red Teaming: Security and safety testing configured in
redteam.yaml.
Development
Run tests
Build Docker image
CI/CD
Standard workflows are pre-configured in.github/workflows:
- PR Checks: Linting, testing, and validation.
- Build and Publish: Docker image creation on merge.
- Release: Automated versioning and release notes.
See CI/CD workflows for pipeline details.
Next steps
- Create Your First Agent: Deploy to a runtime
- Multi-Agent Starter: Upgrade to agent teams
- MCP Agent: Integrate with MCP servers
- Knowledge Agent: Add RAG capabilities