ZenGuardInput#

class langchain_community.tools.zenguard.tool.ZenGuardInput[source]#

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

param detectors: List[Detector] [Required]#

List of detectors by which you want to check the prompt

Constraints:
  • min_length = 1

param in_parallel: bool = True#

Run prompt detection by the detector in parallel or sequentially

param prompts: List[str] [Required]#

Prompt to check

Constraints:
  • min_length = 1