plugins:
# Self-contained Search Replace Plugin
- name: "LLMGuardPluginAll"
kind: "llmguardplugin.plugin.LLMGuardPlugin"
description: "A plugin for running input and output through llmguard scanners "
version: "0.1"
author: "ContextForge"
hooks: ["prompt_pre_fetch", "prompt_post_fetch"]
tags: ["plugin", "guardrails", "llmguard", "pre-post", "filters", "sanitizers"]
mode: "enforce" # enforce | permissive | disabled
priority: 20
conditions:
# Apply to specific tools/servers
- prompts: ["test_prompt"]
server_ids: [] # Apply to all servers
tenant_ids: [] # Apply to all tenants
config:
cache_ttl: 120 #defined in seconds
input:
filters:
PromptInjection:
threshold: 0.6
use_onnx: false
policy: PromptInjection
policy_message: I'm sorry, I cannot allow this input.
sanitizers:
Anonymize:
language: "en"
vault_ttl: 120 #defined in seconds
vault_leak_detection: True
output:
sanitizers:
Deanonymize:
matching_strategy: exact
filters:
Toxicity:
threshold: 0.5
policy: Toxicity
policy_message: I'm sorry, I cannot allow this output.
# Plugin directories to scan
plugin_dirs:
- "llmguardplugin"
# Global plugin settings
plugin_settings:
parallel_execution_within_band: true
plugin_timeout: 30
fail_on_plugin_error: false
enable_plugin_api: true
plugin_health_check_interval: 60