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
pip install dunetrace[openai] # OpenAI
pip install dunetrace[crewai] # CrewAI
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.0.tar.gz
(24.7 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.0-py3-none-any.whl
(22.5 kB
view details)
File details
Details for the file dunetrace-0.1.0.tar.gz.
File metadata
- Download URL: dunetrace-0.1.0.tar.gz
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d31708bac600ca2763119372023c98a7f375ca619c5a896c576bd78d80eb31e
|
|
| MD5 |
dfc937f5a30cfa0facb0f763fdd963d0
|
|
| BLAKE2b-256 |
add7997366ab84f6845bec8e33e85da919516c8f1a7eebeb94af8732cbb722a3
|
File details
Details for the file dunetrace-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dunetrace-0.1.0-py3-none-any.whl
- Upload date:
- Size: 22.5 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 |
84e11402fa055d5be3eefbe8a03551ad9f931788efafd39ed8fb84a5da1aa902
|
|
| MD5 |
783391513ccf14e88dd26b0483e3d554
|
|
| BLAKE2b-256 |
07d9ea017a2a44ea889fcf2c4d3f727823e0acdfda12b1903be6d406d80ea803
|