Behavioral observability for AI agents
Project description
Dunetrace SDK
Behavioral observability for AI agents. Zero-dependency Python SDK that detects failure patterns in your LLM agents in real-time.
Install
pip install dunetrace
With integrations:
pip install dunetrace[langchain] # LangChain
Quickstart
from dunetrace import Dunetrace
dt = Dunetrace(endpoint="http://localhost:8001")
with dt.run("my-agent", user_input="What is the capital of France?") as run:
# your agent logic here
run.emit("tool.called", {"tool_name": "web_search"})
What it detects
- Tool loops — same tool called repeatedly without progress
- Context bloat — prompt tokens growing 3× across steps
- Tool avoidance — agent has tools but never uses them
- Step count inflation — far more steps than needed
- First step failure — agent fails immediately
- RAG empty retrieval — retrieval returns no results
- And more (tool thrashing, retry storms, cascading failures)
Self-hosted backend
Dunetrace requires the backend to collect and analyze events:
git clone https://github.com/dunetrace/dunetrace
cd dunetrace
cp .env.example .env
docker compose up
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dunetrace-0.1.1.tar.gz
(24.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
dunetrace-0.1.1-py3-none-any.whl
(21.7 kB
view details)
File details
Details for the file dunetrace-0.1.1.tar.gz.
File metadata
- Download URL: dunetrace-0.1.1.tar.gz
- Upload date:
- Size: 24.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6074590ebf380f5948676336170bf8f7849398c07147a7cda7da7431adce90fd
|
|
| MD5 |
dcceeb5bc5c2989dc47a871b155d4e08
|
|
| BLAKE2b-256 |
6fa6dd21e643e1a3f40c80a80ea8c5e102823a67f7d0ed0c1bd100595ee8460f
|
File details
Details for the file dunetrace-0.1.1-py3-none-any.whl.
File metadata
- Download URL: dunetrace-0.1.1-py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c0d2c2cab4a38f789a6068dd811fa8f51eb22b80c0dcd62c13aae71ca823e68
|
|
| MD5 |
cf383af5f708848d2f872b9595cf6883
|
|
| BLAKE2b-256 |
760b4be883d8772d0349f29f9b9ee4aeeccb3e3fa936884ba2b16379e20481d7
|