Saltar a contenido

title: apogee-ai-guardrails description: Input/output filters: PII, prompt injection, jailbreak; commercial-grade adapters.


apogee-ai-guardrails

Input/output filters: PII, prompt injection, jailbreak; commercial-grade adapters.

This page is being expanded

The tables below are generated from the package source, so they are accurate. Narrative guides and worked examples are being written module by module.

Public API

Everything below is exported from the package root, so from apogee_ai_guardrails import X works for each name.

Layer Symbols
Application PolicyOutcome
Application · DTOs ApplyPolicyDTO, BenchDTO, RedactDTO, ScanDTO
Application · Use cases ApplyPolicyUseCase, BenchPipelineUseCase, ListDetectorsUseCase, RedactTextUseCase, ScanTextUseCase
Domain GuardrailReport, GuardrailViolation, RedactionPolicy, RedactionStrategy, RuleSeverity, ScanDirection
Domain · Enums PiiKind
Domain · Exceptions GuardrailBlockedException, GuardrailError, PolicyViolationException
Domain · Protocols (ports) IDetector, IGuardrailPipeline, IRedactor
Infrastructure DetectorRegistry, FormatPreservingRedactor, HashRedactor, JailbreakDetector, MaskRedactor, PiiDetector, PresidioPiiDetector, ProfanityDetector, PromptInjectionDetector, SchemaDetector, default_redaction_policy

Install

Bash
pip install apogee-ai-guardrails

The base install has no required third-party dependency. Each extra unlocks one adapter.

Extra Pulls in
presidio presidio-analyzer>=2.2, presidio-anonymizer>=2.2
detoxify detoxify>=0.5

CLI

Installed as a console script, and registered as an apogee plugin so the same subcommands work under the global binary.

Bash
apogee-guardrails --help