mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
* Add CrowdStrike AIDR guardrail hook * fixup! use apply_guardrail event hook * fixup! update imports * fix(guardrails): include AI response in CrowdStrike AIDR output events Issue: _build_guard_input_for_response() was: - Sending only the original user input (messages). - Not sending the AI provider response. This fix will: - Extract response.choices from the ModelResponse object and include them in guard_input payload. - Thus, ensure AIDR output rules receive the AI-generated content for analysis. - Fix and update tests. * fix(guardrails): prevent duplicate input events in CrowdStrike AIDR guardrail Issue: The CrowdStrike AIDR guardrail was running on during_call hooks wihtout event_hook configured. This fix will: - Set event_hook to ["pre_call", "post_call"] (AIDR admins will control what policy is applied) This change will: - Require default_on parameter - Prevent duplicate API calls to AIDR for the same input - Avoid unchecked AI provider API calls on during_call hook * docs: add CrowdStrike AIDR to the list of Guardrails under Integrations * docs: update CrowdStrike AIDR documentation page --------- Co-authored-by: Konstantin Lapine <konstantin.lapine@crowdstrike.com> |
||
|---|---|---|
| .. | ||
| guardrail_hooks | ||
| test_guardrail_endpoints.py | ||
| test_guardrail_registry.py | ||
| test_init_guardrails.py | ||
| test_pillar_guardrails.py | ||
| test_prompt_security_guardrails.py | ||