litellm/tests/guardrails_tests
Igal Boxerman d118cc7098
feat: Add Pillar Security guardrail integration (#12791)
* feat: Add Pillar Security guardrail integration

Implements comprehensive LLM security guardrails using Pillar Security API with support for prompt injection detection, PII/secret detection, content moderation, and multi-mode execution (pre_call, during_call, post_call). Includes complete documentation, testing, and configurable actions on flagged content.

* fix: Resolve MyPy type error in Pillar guardrail config

Restructure PillarGuardrailConfigModel to properly inherit from GuardrailConfigModel[T]
and resolve return type compatibility issue in get_config_model method.

* fix: Resolve MyPy type error in Pillar guardrail config

Restructure PillarGuardrailConfigModel to properly inherit from GuardrailConfigModel[T]
and resolve return type compatibility issue in get_config_model method.

* fix docs

* fix docs

* improved docs

* fix examples, READY
2025-07-22 23:17:33 -07:00
..
test_bedrock_guardrails.py [Feat] Bedrock Guardrails - Allow disabling exception on 'BLOCKED' action (#12693) 2025-07-17 08:46:33 -07:00
test_custom_guardrail.py [Feat] Presidio Improvements - Allow adding presidio api base on UI, Test presidio on Test Key, fixes for running presidio hook (#10840) 2025-05-14 17:41:33 -07:00
test_guardrails_config.py UI - Azure Content Guardrails (#12341) 2025-07-05 10:19:29 -07:00
test_lakera_v2.py [Feat] Add Lakera v2 Guardrail Support (#10880) 2025-05-16 17:08:21 -07:00
test_lasso_guardrails.py Litellm dev 07 05 2025 p3 (#12349) 2025-07-05 18:44:00 -07:00
test_pillar_guardrails.py feat: Add Pillar Security guardrail integration (#12791) 2025-07-22 23:17:33 -07:00
test_presidio_pii.py Add presidio_language yaml configuration support for guardrails (#11331) 2025-06-02 13:13:17 -07:00
test_tracing_guardrails.py [Feat] Bedrock Guardrails - Allow disabling exception on 'BLOCKED' action (#12693) 2025-07-17 08:46:33 -07:00