-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathjoke_agent_uipath.json
More file actions
139 lines (138 loc) · 3.68 KB
/
joke_agent_uipath.json
File metadata and controls
139 lines (138 loc) · 3.68 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"entryPoints": [
{
"filePath": "agent",
"uniqueId": "0afddb15-cecc-4a20-87ef-c1a65a690fcb",
"type": "agent",
"input": {
"type": "object",
"properties": {
"word": {
"type": "string",
"description": "The word to base the joke on"
}
},
"required": ["word"]
},
"output": {
"type": "object",
"properties": {
"joke": {
"type": "string",
"description": "The generated family-friendly joke"
},
"randomName": {
"type": "string",
"description": "A randomly generated name"
},
"analysis": {
"type": "string",
"description": "The analysis result from the SentenceAnalyzer tool"
},
"explanation": {
"type": "string",
"description": "An explanation if a joke couldn't be generated"
}
},
"required": ["joke", "randomName", "analysis"]
}
}
],
"bindings": {
"version": "2.0",
"resources": [],
"guardrails": [
{
"$guardrailType": "custom",
"id": "0dac2299-a8ae-43aa-8703-3eb93c657b2a",
"name": "Guardrail on input for donkey",
"description": "Filters out the word 'donkey' from tool inputs",
"enabledForEvals": true,
"selector": {
"scopes": ["Tool"],
"matchNames": ["Agent _ Sentence Analyzer"]
},
"rules": [
{
"$ruleType": "word",
"fieldSelector": {
"$selectorType": "specific",
"fields": [
{
"path": "sentence",
"source": "input"
}
]
},
"operator": "contains",
"value": "donkey"
}
],
"action": {
"$actionType": "filter",
"fields": [
{
"path": "sentence",
"source": "input"
}
]
}
},
{
"$guardrailType": "builtInValidator",
"id": "3b4d5416-202a-47ab-bba6-89fa8940a5cf",
"name": "PII detection guardrail",
"description": "This validator is designed to detect personally identifiable information",
"validatorType": "pii_detection",
"validatorParameters": [
{
"$parameterType": "enum-list",
"id": "entities",
"value": ["Email", "Address", "Person"]
},
{
"$parameterType": "map-enum",
"id": "entityThresholds",
"value": {
"Email": 0.5,
"Address": 0.5,
"Person": 0.5
}
}
],
"action": {
"$actionType": "block",
"reason": "PII detected"
},
"enabledForEvals": true,
"selector": {
"scopes": ["Agent", "Llm"],
"matchNames": []
}
},
{
"$guardrailType": "builtInValidator",
"id": "255b1220-97f8-4d79-be8e-052a664b2b90",
"name": "Prompt injection guardrail",
"description": "This validator is built to detect malicious attack attempts",
"validatorType": "prompt_injection",
"validatorParameters": [
{
"$parameterType": "number",
"id": "threshold",
"value": 0.5
}
],
"action": {
"$actionType": "block",
"reason": "Prompt Injection detected"
},
"enabledForEvals": true,
"selector": {
"scopes": ["Llm"],
"matchNames": []
}
}
]
}
}