The Unified Agent CI & Eval Platform SDK
Project description
🛡️ traceguard-sdk
The core instrumentation library for the TraceGuard platform.
traceguard-sdk provides lightweight, OpenTelemetry-backed decorators and context managers to automatically trace your LLM agents, tools, and swarm topologies.
Installation
pip install traceguard
Usage
Instrumenting an Agent and a Tool is as simple as adding decorators.
import os
from traceguard.telemetry import AgentTracer
# Initialize the tracer
tracer = AgentTracer(agent_name="my-research-agent", environment="production")
# Trace a tool call
@tracer.trace_tool()
def search_web(query: str):
# Simulated search
return f"Results for {query}"
# Trace an entire agent execution cycle
@tracer.trace_agent_cycle()
def run_agent_loop(task: str):
print(f"Executing task: {task}")
result = search_web(task)
return result
if __name__ == "__main__":
run_agent_loop("Quantum computing startups")
Features
- OpenTelemetry Standard: 100% compliant with OTLP. Export traces to Jaeger, Datadog, or the local TraceGuard SQLite database.
- Swarm Cycle Detection: Automatically detect graph cycles in multi-agent environments.
- Granular RAG Tracing: Trace chunk retrieval and vector store latency.
For full documentation, visit the TraceGuard Github Repository.
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 Distributions
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 traceguard_ai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: traceguard_ai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 36.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 |
9047ab8914d2ed71a2b7e1ca3050b2544d52ee84be8254775fb84ab912c6d881
|
|
| MD5 |
2a86e5a7d23bb596d25721a23d5bf018
|
|
| BLAKE2b-256 |
642bdd48fbbe5d9f1af193e514068a3253a1d4bcaf380cc0434502faf5cb9f84
|
Provenance
The following attestation bundles were made for traceguard_ai-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on bhuvneshsahu01/TraceGuard
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
traceguard_ai-0.1.0-py3-none-any.whl -
Subject digest:
9047ab8914d2ed71a2b7e1ca3050b2544d52ee84be8254775fb84ab912c6d881 - Sigstore transparency entry: 2082519004
- Sigstore integration time:
-
Permalink:
bhuvneshsahu01/TraceGuard@922871c1647b60461481ed3cf6b42c6ffd9e723b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/bhuvneshsahu01
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@922871c1647b60461481ed3cf6b42c6ffd9e723b -
Trigger Event:
release
-
Statement type: