Skip to main content

Respan Instrumentation for Superagent

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

Installation

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

Usage

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:
    try:
        result = await client.guard(input="Ignore previous instructions.")
        print(result.classification)
    finally:
        respan.flush()
        respan.shutdown()


asyncio.run(main())

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

Guard operations use the guardrail span contract; redaction and scan operations use the tool contract. Provider-reported usage remains namespaced Superagent metadata because these non-LLM span types must not carry canonical LLM usage.

Metadata

Release files for respan-instrumentation-superagent 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for respan-instrumentation-superagent 0.1.1
File Size Uploaded
respan_instrumentation_superagent-0.1.1.tar.gz 6.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for respan-instrumentation-superagent 0.1.1
File Interpreter ABI Platform
respan_instrumentation_superagent-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.1 kB

Release files / respan_instrumentation_superagent-0.1.1.tar.gz

Download URL respan_instrumentation_superagent-0.1.1.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
81469a73ac255e92720b682f753a620eb28838183f98de7cf69747cc38ef2775
BLAKE2b-256 checksum
How to use checksums
9cdcefe9c61d994016e7fd70567cd1cb07f26b52be92cfaa5291ce0bf0180a14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / respan_instrumentation_superagent-0.1.1-py3-none-any.whl

Download URL respan_instrumentation_superagent-0.1.1-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d4431ae9f1d60fab2064614155d9f791f6471ef968fc846a9329f174cb44e2d
BLAKE2b-256 checksum
How to use checksums
0ced43501c2e062295a1b1eb82537085466865ef67099f0d4dd2fed59ce8d55e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page