Skip to main content

Respan instrumentation plugin for Superagent safety-agent

Project description

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:
    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.

Project details


Download files

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

Source Distribution

respan_instrumentation_superagent-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file respan_instrumentation_superagent-0.1.0.tar.gz.

File metadata

File hashes

Hashes for respan_instrumentation_superagent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5a2a0bbf72e94960f60d016dc42f3b9f54de8e675d9c4508b034363004efc2c9
MD5 7401460cc459492e602ff727a86a122e
BLAKE2b-256 f9734b93cce8d8d1ee2b1a94d5ee4affbaffe341789b373afda72dcb4b803ba1

See more details on using hashes here.

File details

Details for the file respan_instrumentation_superagent-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for respan_instrumentation_superagent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 271572e8c8a30f818e7b4eb6f8b5c753f8babc9ee0963d6b28f31c9fc1b11ee3
MD5 41e1abb886caa174b3f3b26008c5e9c3
BLAKE2b-256 37bf9a8df994b5d29bcf6e46579447706d8c94cd55d9edfc066ecb8aa6458b6c

See more details on using hashes here.

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