bench-observe
Python SDK for Bench — observability for AI agents. Zero dependencies.
pip install bench-observe
Usage
import asyncio
from bench import observe
agent = observe(api_key="bk_xxx", agent="my-agent")
async def search(t):
result = await do_search()
t.log("found", len(result))
t.cost(0.004)
return result
async def main():
result = await agent.task("search", {"query": "python"}, search)
asyncio.run(main())
Context manager
async with agent.task_ctx("summarize", {"doc": url}) as t:
summary = await llm.generate(prompt)
t.log("tokens", 1200)
t.cost(0.012)
Subtasks
async def pipeline(t):
await t.subtask("fetch", {"url": url}, fetch_fn)
await t.subtask("parse", {"html": html}, parse_fn)
await t.subtask("embed", {"text": text}, embed_fn)
await agent.task("full-pipeline", input, pipeline)
Custom events
agent.event("tool.use", {"tool": "search", "query": q})
After one run you get a live dashboard, public profile, and README badge — no other setup.
Metadata
Release files for bench-observe 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bench_observe-0.1.3.tar.gz | 10.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bench_observe-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.5 kB
Release files / bench_observe-0.1.3.tar.gz
| Download URL | bench_observe-0.1.3.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79c43f35d7240c2dad0250e89ab9cb6a464607a2017bcab189a75c32926a61e2
|
|
BLAKE2b-256 checksum How to use checksums |
b953c42ddbf74c8ee1a3ddcd1d94f0d018dc6c9bb1425d4143800c01a8354014
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 2, 2026.
Transparency logRelease files / bench_observe-0.1.3-py3-none-any.whl
| Download URL | bench_observe-0.1.3-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99b80ac75cc9388afadb45181f96ec25af695b6dedac4da701c5d4a18087fbb4
|
|
BLAKE2b-256 checksum How to use checksums |
fd8e94b0ee86c566b5d3c4283197c96584f88f06ffb094aaf8f83b2cbf1008b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 2, 2026.
Transparency logSecurity for bench-observe 0.1.3
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.
Attestation for bench_observe-0.1.3.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 Jul 2, 2026.
Transparency logA 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.