Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /ctrl-gaurav_effGen /effgen /guardrails /__init__.py
| """Input/output guardrails: content filtering, injection detection, PII redaction, tool safety. | |
| All guardrails work offline with no external APIs or ML models. | |
| """ | |
| from .base import Guardrail, GuardrailChain, GuardrailPosition, GuardrailResult | |
| from .content import LengthGuardrail, PIIGuardrail, TopicGuardrail, ToxicityGuardrail | |
| from .injection import PromptInjectionGuardrail, SystemPromptLeakGuardrail | |
| from .presets import ( | |
| MINIMAL, | |
| NONE, | |
| PHI, | |
| STANDARD, | |
| STRICT, | |
| get_guardrail_preset, | |
| minimal_guardrails, | |
| no_guardrails, | |
| phi_guardrails, | |
| standard_guardrails, | |
| strict_guardrails, | |
| ) | |
| from .tool_safety import ToolInputGuardrail, ToolOutputGuardrail, ToolPermissionGuardrail | |
| __all__ = [ | |
| # Base | |
| "Guardrail", | |
| "GuardrailChain", | |
| "GuardrailPosition", | |
| "GuardrailResult", | |
| # Content | |
| "ToxicityGuardrail", | |
| "PIIGuardrail", | |
| "LengthGuardrail", | |
| "TopicGuardrail", | |
| # Injection | |
| "PromptInjectionGuardrail", | |
| "SystemPromptLeakGuardrail", | |
| # Tool Safety | |
| "ToolInputGuardrail", | |
| "ToolOutputGuardrail", | |
| "ToolPermissionGuardrail", | |
| # Presets | |
| "STRICT", | |
| "STANDARD", | |
| "PHI", | |
| "MINIMAL", | |
| "NONE", | |
| "get_guardrail_preset", | |
| "strict_guardrails", | |
| "standard_guardrails", | |
| "phi_guardrails", | |
| "minimal_guardrails", | |
| "no_guardrails", | |
| ] | |
Xet Storage Details
- Size:
- 1.35 kB
- Xet hash:
- 37a89f81550fe5269de203335727331fc4db22782cbd57aeac38401180e8bdbd
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.