Skip to main content

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


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.2.0.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dunetrace-0.2.0-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file dunetrace-0.2.0.tar.gz.

File metadata

  • Download URL: dunetrace-0.2.0.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dunetrace-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0b3902d6506bab1055fcda723d27d9bafbc62a6058e4aaaf5a1e8e8315bf729f
MD5 866fbfd1a9af0d22bc41df83e8358e38
BLAKE2b-256 729f4f209000148fdc4879bb19dc518819e556bc043afe29b6cfe7f967adae18

See more details on using hashes here.

Provenance

The following attestation bundles were made for dunetrace-0.2.0.tar.gz:

Publisher: publish.yml on dunetrace/dunetrace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dunetrace-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: dunetrace-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dunetrace-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58cec9059f34f6a419bd5d4b8cce6777e1ebdb1b2a1c2d25421c43aee34ae472
MD5 e0baa62f34dcc8e464b24b7db399aabf
BLAKE2b-256 9b41175d84ddd8657ddd8ccc7720c603a1846026174ccebc0d8b14858ee8b1bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for dunetrace-0.2.0-py3-none-any.whl:

Publisher: publish.yml on dunetrace/dunetrace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page