Installation
Classes
RespanSuperagentClient
Wrapper around the Superagent (safety-agent) SDK that automatically exports operations to Respan as tool spans.Factory function
| Function | Description |
|---|---|
create_client(**kwargs) | Create a RespanSuperagentClient instance. |
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key | str | None | None | Respan API key. Falls back to RESPAN_API_KEY env var. |
base_url | str | None | None | API base URL. |
Methods
All methods accept an optionalrespan_params dict for attaching metadata.
| Method | Description |
|---|---|
guard(respan_params, **kwargs) | Run guardrail check. |
redact(respan_params, **kwargs) | Redact sensitive content. |
scan(respan_params, **kwargs) | Scan for security issues. |
test(respan_params, **kwargs) | Test guardrail configuration. |
respan_params
| Key | Type | Description |
|---|---|---|
customer_identifier | str | User/customer identifier. |
metadata | Dict | Custom key-value pairs. |
disable_log | bool | Set True to skip logging this call. |