Skip to main content

bbagents

Python building blocks for agent systems: tools, planning, model selection, memory, human approval, tracing, and evaluation. Works with LangGraph or your own runtime.

Companion code for Agentic AI: Architecture, Theory, and Practice. Buy the book.

Agentic AI: Architecture, Theory, and Practice by Marco Dinacci

Requires Python 3.11+.

pip install -e '.[dev]'
pytest

Complete application example

Agent Stranded is a more complete example: an autonomous survival game using bbagents planning, tools, memory, skills, communication, and tracing, with an optional local LLM. Its code, documentation, and run instructions live in that separate repository.

Features

The previous README's approval/recovery example is preserved as recoverable_release.py.

  • Typed tools, dependency-checked plans, structured model decisions and validation.
  • Per-agent model selection, routing constraints, cost estimates and caching.
  • Capability policies, human intervention, explicit delegation and LangGraph interrupts.
  • Bounded async execution, retry policies, execution journals and effect reconciliation.
  • Versioned checkpoints, SQLite persistence, task budgets and completion gates.
  • Budgeted context, summarization contracts and provider-neutral retrieval (RAG).
  • Scoped, revisioned memory and skills; evaluated and approved procedure promotion.
  • Roles, messages, delegation and organizational governance.
  • Structured traces, isolated evaluation trials and compaction-continuation checks.
  • Optional Ollama, LangChain, LangGraph, LangSmith and Langfuse integrations.

No mandatory runtime dependencies. Applications own domain behavior and adapters.

See examples, demos and the guide.

Maintainers: see release instructions for publishing to PyPI.

Metadata

Release files for bbagents 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bbagents 0.1.0
File Size Uploaded Provenance Actions
bbagents-0.1.0.tar.gz 101.1 kB With provenance Details for bbagents-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bbagents 0.1.0
File Interpreter ABI Platform Actions
bbagents-0.1.0-py3-none-any.whl Python 3 none any Details for bbagents-0.1.0-py3-none-any.whl

Total release size: 157.0 kB

Release files / bbagents-0.1.0.tar.gz

Download URL bbagents-0.1.0.tar.gz
Size 101.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4b4e70ab278bf6a1b5626720b85a7c19deb2a1881f6fedf8ee38c1d4749c1b1f
BLAKE2b-256 checksum
How to use checksums
51d02e445d96253551aa1e6e8c9d0b490755bb63568badf1a58befbf2e9d9ed9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Release files / bbagents-0.1.0-py3-none-any.whl

Download URL bbagents-0.1.0-py3-none-any.whl
Size 55.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4e8142a63c86be9cdd159d1064164b46b37373a07a222acb61cb0e21a19a7b0
BLAKE2b-256 checksum
How to use checksums
d2002b4f2e968665457c916b902318ecae170cf4062f7b2a2704d4f0433d3e06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Security for bbagents 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bbagents-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page