The problem
Your AI agents break and you find out when users complain. No logs, no metrics, no idea what went wrong.
The fix
A @observe decorator that tracks every call to local SQLite. No cloud, no API key, no signup.
How it works
from agentdna import observe
@observe
def transcribe(audio):
return whisper.transcribe(audio)
@observe
def summarize(text):
return llm.summarize(text)
markdown
markdown
## The problem
Your AI agents break and you find out when users complain. No logs, no metrics, no idea what went wrong.
## The fix
A `@observe` decorator that tracks every call to local SQLite. No cloud, no API key, no signup.
## How it works
python
from agentdna import observe
@observe
def transcribe(audio):
return whisper.transcribe(audio)
@observe
def summarize(text):
return llm.summarize(text)
That's it. Every call is now logged with latency, success/failure, and error types.
View your stats
$ agentdna stats
๐ transcribe
โ
Healthy 42 calls โโโโโโโโโโ 97% avg 1250ms
๐ summarize
โ ๏ธ Degraded 38 calls โโโโโโโโโโ 92% avg 3400ms
โ 3 failures: Timeout(2), RateLimit(1)
Health thresholds:
โ
Healthy โ 95%+ success rate
โ ๏ธ Degraded โ 80-95%
๐ด Unhealthy โ below 80%
Features
Sync and async support
Latency percentiles (p50, p95, p99)
Error type breakdown
SQLite persistence โ survives restarts
Zero dependencies beyond stdlib
Export to JSON or CSV
Install
pip install agentdna-sdk
Open source
Apache 2.0 โ
GitHub
Built this because I was tired of debugging agents blind. Would love feedback!
Top comments (0)