-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconfig.yaml
More file actions
61 lines (58 loc) · 2.18 KB
/
config.yaml
File metadata and controls
61 lines (58 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# plugins/config.yaml - Main plugin configuration file
plugins:
# Self-contained Search Replace Plugin - depends on plugin availability
- name: "ReplaceBadWordsPlugin"
# From https://github.com/contextforge-org/contextforge-plugins-python
kind: "contextforge-plugins-python.regex_filter.search_replace.SearchReplacePlugin"
description: "A plugin for finding and replacing words."
version: "0.1.0"
author: "Teryl Taylor"
hooks: ["prompt_pre_fetch", "prompt_post_fetch", "tool_pre_invoke", "tool_post_invoke"]
tags: ["plugin", "transformer", "regex", "search-and-replace", "pre-post"]
mode: "enforce" # enforce | permissive | disabled
priority: 150
conditions:
# Apply to specific tools/servers
- prompts: ["test_prompt"]
server_ids: [] # Apply to all servers
tenant_ids: [] # Apply to all tenants
config:
words:
- search: crap
replace: crud
- search: crud
replace: yikes
# Nemo example
- name: "NemoWrapperPlugin"
kind: "plugins.examples.nemo.nemo_wrapper_plugin.NemoWrapperPlugin"
description: "A simple Nemo PII detector"
version: "0.1.0"
author: "Evaline Ju"
hooks: ["tool_pre_invoke", "tool_post_invoke"]
tags: ["plugin", "pre-post"]
mode: "enforce" # enforce | permissive | disabled
priority: 150
config:
foo: bar
# Nemo Check Example
- name: "NemoCheckv2"
kind: "plugins.examples.nemocheckinternal.plugin.NemoCheckv2"
description: "Adapter for nemo check server"
version: "0.1.0"
author: "Julian Stephen"
config:
checkserver_url: "http://nemo-guardrails-service:8000/v1/guardrail/checks"
# Plugin directories to scan
plugin_dirs:
- "plugins/native" # Built-in plugins
- "plugins/custom" # Custom organization plugins
- "/etc/mcpgateway/plugins" # System-wide plugins
- "plugins/examples/nemo" # Example Nemo guardrails plugins
- "plugins/examples/nemocheckinternal" # Nemo Check Server plugins
# 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