Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

traceguard_ai-0.1.0-py3-none-any.whl (36.0 kB view details)

Uploaded Python 3

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

Hashes for traceguard_ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9047ab8914d2ed71a2b7e1ca3050b2544d52ee84be8254775fb84ab912c6d881
MD5 2a86e5a7d23bb596d25721a23d5bf018
BLAKE2b-256 642bdd48fbbe5d9f1af193e514068a3253a1d4bcaf380cc0434502faf5cb9f84

See more details on using hashes here.

Provenance

The following attestation bundles were made for traceguard_ai-0.1.0-py3-none-any.whl:

Publisher: publish.yml on bhuvneshsahu01/TraceGuard

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