AgentTrace Python SDK - Drop-in tracing for any AI agent
Project description
agenttrace-io (Python SDK)
Drop-in tracing for any AI agent. Local SQLite storage, zero dependencies, zero cloud.
Installation
pip install agenttrace-io
Requires Python 3.10+.
Quickstart
from agenttrace import init, trace
agent = init(db_path="./traces.db")
# Trace a callable
result = agent.trace("my-op", lambda: 42 * 2)
# Use as decorator
@trace("greet")
def greet(name: str) -> str:
return f"Hello, {name}"
# Use as context manager
with agent.trace("context-op") as t:
value = "computed"
t.set_output(value)
# Query and export
traces = agent.get_traces()
stats = agent.get_stats()
agent.export("json")
agent.close()
See the full README for more.
License
MIT © Klepsiphron
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
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
File details
Details for the file agenttrace_io-0.4.14.tar.gz.
File metadata
- Download URL: agenttrace_io-0.4.14.tar.gz
- Upload date:
- Size: 26.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6690b840349ac8cbe90d0d1501fe9d01f0d12490b805f7cc853ff745f62a748f
|
|
| MD5 |
d581cfd4efe8a4464ac876b3b7429b52
|
|
| BLAKE2b-256 |
045b96746134aeef7f3cdbb99e111c8133f9945df51a59f2f4105f9a4dfb99ad
|
Provenance
The following attestation bundles were made for agenttrace_io-0.4.14.tar.gz:
Publisher:
release.yml on Klepsiphron/agenttrace
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agenttrace_io-0.4.14.tar.gz -
Subject digest:
6690b840349ac8cbe90d0d1501fe9d01f0d12490b805f7cc853ff745f62a748f - Sigstore transparency entry: 1754208973
- Sigstore integration time:
-
Permalink:
Klepsiphron/agenttrace@7383745bc541ac99fb4d543d20525d13d03924d2 -
Branch / Tag:
refs/tags/v0.4.14 - Owner: https://github.com/Klepsiphron
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7383745bc541ac99fb4d543d20525d13d03924d2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file agenttrace_io-0.4.14-py3-none-any.whl.
File metadata
- Download URL: agenttrace_io-0.4.14-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95632396d14691c91863494f13fe452ce95ddc5afa9ec90058ae291012702880
|
|
| MD5 |
360dd9cb2012660c2fca7cc1ac1c520f
|
|
| BLAKE2b-256 |
f9f1383bb9ae21be99b2cb9535152439109f58e629f16b08626d4ead4494c09f
|
Provenance
The following attestation bundles were made for agenttrace_io-0.4.14-py3-none-any.whl:
Publisher:
release.yml on Klepsiphron/agenttrace
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agenttrace_io-0.4.14-py3-none-any.whl -
Subject digest:
95632396d14691c91863494f13fe452ce95ddc5afa9ec90058ae291012702880 - Sigstore transparency entry: 1754209016
- Sigstore integration time:
-
Permalink:
Klepsiphron/agenttrace@7383745bc541ac99fb4d543d20525d13d03924d2 -
Branch / Tag:
refs/tags/v0.4.14 - Owner: https://github.com/Klepsiphron
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7383745bc541ac99fb4d543d20525d13d03924d2 -
Trigger Event:
push
-
Statement type: