{"library":"llm-guard","type":"library","category":null,"description":"LLM-Guard (version 0.3.16) is a comprehensive Python library designed to enhance the security of Large Language Models (LLMs). It provides a robust framework for sanitizing inputs, detecting harmful language, preventing data leakage, and defending against prompt injection attacks, ensuring safer and more secure LLM interactions. The project is actively maintained with frequent minor releases.","language":"python","status":"active","version":"0.3.16","tags":["LLM","security","guardrail","NLP","AI","safety"],"last_verified":"Sun May 24","install":[{"cmd":"pip install llm-guard","imports":["from llm_guard import Guard","from llm_guard.input_scanners import PromptInjection","from llm_guard.output_scanners import Toxicity","from llm_guard.input_scanners import TokenLimit","from llm_guard.input_scanners import BanTopics"]},{"cmd":"pip install llm-guard[transformers]","imports":[]},{"cmd":"pip install llm-guard[all]","imports":[]}],"homepage":"https://llm-guard.com","github":"https://github.com/protectai/llm-guard","docs":"https://llm-guard.com/","changelog":"https://llm-guard.com/changelog/","pypi":"https://pypi.org/project/llm-guard/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":7,"avg_install_s":83.8,"avg_import_s":null,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/llm-guard/compatibility"}}