Metadata-Version: 2.4
Name: traceguard-ai
Version: 0.1.0
Summary: The Unified Agent CI & Eval Platform SDK
Project-URL: Homepage, https://github.com/bhuvneshsahu01/TraceGuard
Project-URL: Repository, https://github.com/bhuvneshsahu01/TraceGuard.git
Project-URL: Documentation, https://github.com/bhuvneshsahu01/TraceGuard/wiki
Author-email: Bhuvnesh <bhuvnesh@example.com>
License: MIT License
        
        Copyright (c) 2026 Bhuvnesh
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: agents,evaluation,llm,observability,opentelemetry
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Requires-Dist: groq>=0.9.0
Requires-Dist: langchain-core>=0.1.0
Requires-Dist: litellm>=1.0.0
Requires-Dist: opentelemetry-api>=1.20.0
Requires-Dist: opentelemetry-exporter-otlp>=1.20.0
Requires-Dist: opentelemetry-sdk>=1.20.0
Requires-Dist: psycopg2-binary>=2.9.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: typing-extensions>=4.5.0
Provides-Extra: dev
Requires-Dist: mypy>=1.5.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Requires-Dist: ruff>=0.1.0; extra == 'dev'
Description-Content-Type: text/markdown

# 🛡️ 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

```bash
pip install traceguard
```

## Usage

Instrumenting an Agent and a Tool is as simple as adding decorators.

```python
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](https://github.com/bhuvneshsahu01/TraceGuard).
