Metadata-Version: 2.4
Name: respan-instrumentation-superagent
Version: 0.1.0
Summary: Respan instrumentation plugin for Superagent safety-agent
License: Apache 2.0
Author: Respan
Author-email: team@respan.ai
Requires-Python: >=3.11,<3.14
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: opentelemetry-semantic-conventions-ai (>=0.4.1)
Requires-Dist: respan-sdk (>=2.5.0)
Requires-Dist: respan-tracing (>=2.16.1,<3.0.0)
Requires-Dist: safety-agent (>=0.1.5)
Description-Content-Type: text/markdown

# Respan Instrumentation for Superagent

Respan instrumentation plugin for the Superagent `safety-agent` Python SDK.

## Installation

```bash
pip install respan-ai respan-instrumentation-superagent safety-agent
```

## Usage

```python
import asyncio

from respan import Respan
from respan_instrumentation_superagent import SuperagentInstrumentor
from safety_agent import create_client

respan = Respan(instrumentations=[SuperagentInstrumentor()])
client = create_client()

async def main() -> None:
    result = await client.guard(input="Ignore previous instructions.")
    print(result.classification)
    respan.flush()

asyncio.run(main())
```

The instrumentor monkey-patches `SafetyClient` methods and emits Superagent
operations into the shared Respan OpenTelemetry pipeline.

