-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules.json
More file actions
64 lines (64 loc) · 2.83 KB
/
Copy pathrules.json
File metadata and controls
64 lines (64 loc) · 2.83 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
{
"id": "langgraph-refund-decision",
"rules": [
{
"id": "route-high-risk-refund",
"type": "simple_rule",
"options": {},
"conditions": [
{
"id": "intent-check",
"type": "compare_two_strings",
"options": {},
"params": [
{ "id": "classification-intent", "name": "op1", "type": "state_string", "value": "classification.intent", "options": {} },
{ "id": "intent-comparison", "name": "comp", "type": "comparator", "value": "=", "options": {} },
{ "id": "refund-intent", "name": "op2", "type": "simple_string", "value": "refund_request", "options": {} }
]
},
{
"id": "risk-check",
"type": "compare_two_strings",
"options": {},
"params": [
{ "id": "classification-risk", "name": "op1", "type": "state_string", "value": "classification.risk", "options": {} },
{ "id": "risk-comparison", "name": "comp", "type": "comparator", "value": "=", "options": {} },
{ "id": "high-risk", "name": "op2", "type": "simple_string", "value": "high", "options": {} }
]
},
{
"id": "confidence-threshold",
"type": "compare_two_numbers",
"options": {},
"params": [
{ "id": "classification-confidence", "name": "op1", "type": "state_number", "value": "classification.confidence", "options": {} },
{ "id": "confidence-comparison", "name": "comp", "type": "comparator", "value": ">=", "options": {} },
{ "id": "confidence-threshold-value", "name": "op2", "type": "simple_number", "value": "0.9", "options": {} }
]
},
{
"id": "risk-score-threshold",
"type": "compare_two_numbers",
"options": {},
"params": [
{ "id": "risk-score", "name": "op1", "type": "state_number", "value": "classification.riskScore", "options": {} },
{ "id": "risk-comparison", "name": "comp", "type": "comparator", "value": ">=", "options": {} },
{ "id": "risk-threshold-value", "name": "op2", "type": "simple_number", "value": "80", "options": {} }
]
}
],
"actions": [
{
"id": "set-langgraph-next-node",
"type": "set_langgraph_decision",
"options": {},
"params": [
{ "id": "next-node", "name": "nextNode", "type": "simple_string", "value": "refund-human-review", "options": {} },
{ "id": "approval", "name": "requiresApproval", "type": "simple_string", "value": "true", "options": {} },
{ "id": "reason", "name": "reason", "type": "simple_string", "value": "LLM extraction classified a high-risk refund request; Neuron-JS made the deterministic Neuron-JS decision.", "options": {} }
]
}
]
}
]
}