langchain_experimental.prompt_injection_identifier.hugging_face_identifier.PromptInjectionException§

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

检测到提示注入攻击时引发的异常。

参数
  • message (str) –

  • score (float) –