Skip to main content

Superagent Security Tools

Superagent provides AI security guardrails including prompt injection detection, PII/PHI redaction, and claim verification against source materials.

Installation

Environment Variables

Available Tools

Quick Start

1

Simple Usage

2

With Configuration

Adjust agent instructions, tool options, and provider settings for production — see the Configuration section below.

Guard Tool (Prompt Injection Detection)

Redact Tool (PII Removal)

Verify Tool (Claim Verification)

Advanced Example

Response Formats

Guard Result

Redact Result

Verify Result

Best Practices

  1. Layer security - Use guard before processing user input
  2. Redact early - Remove PII before storing or processing
  3. Verify claims - Check factual statements against sources
  4. Log securely - Don’t log redacted information
  • Tavily - Web search for verification
  • Exa - Source finding