PromptInjectionException#

class langchain_experimental.prompt_injection_identifier.hugging_face_identifier.PromptInjectionException(message: str = 'Prompt injection attack detected', score: float = 1.0)[source]#

Exception raised when prompt injection attack is detected.

Parameters:
  • message (str) –

  • score (float) –