nemoguardrails.library.ai_defense.actions
nemoguardrails.library.ai_defense.actions
Prompt/Response protection using Cisco AI Defense.
Module Contents
Functions
Data
API
async
Mapping for inspect API response. Expects result to be a dict with:
- “is_blocked”: a boolean indicating if the prompt or response sent to AI Defense should be blocked.
Returns: bool
True if the text should be blocked, False otherwise.