mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-24 03:52:10 +00:00
experimental[patch]: update module doc strings (#19539)
Added missed module descriptions. Fixed format.
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
"""HuggingFace Security toolkit."""
|
||||
"""**HuggingFace Injection Identifier** is a tool that uses
|
||||
[HuggingFace Prompt Injection model](https://huggingface.co/deepset/deberta-v3-base-injection)
|
||||
to detect prompt injection attacks.
|
||||
"""
|
||||
|
||||
from langchain_experimental.prompt_injection_identifier.hugging_face_identifier import (
|
||||
HuggingFaceInjectionIdentifier,
|
||||
|
@@ -50,7 +50,7 @@ def _model_default_factory(
|
||||
|
||||
|
||||
class HuggingFaceInjectionIdentifier(BaseTool):
|
||||
"""Tool that uses HuggingFace Prompt Injection to
|
||||
"""Tool that uses HuggingFace Prompt Injection model to
|
||||
detect prompt injection attacks."""
|
||||
|
||||
name: str = "hugging_face_injection_identifier"
|
||||
|
Reference in New Issue
Block a user