Skip to content

Commit 1fd7d49

Browse files
authored
fmt (#95)
1 parent bd891b3 commit 1fd7d49

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed
Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
{
22
"primary_message_interceptor": {
3-
"type": "Filter",
4-
"filter_logic": {
5-
"and": [
6-
{
7-
"request_method": "tools/call"
8-
},
9-
{
10-
"direction": "outbound"
11-
}
12-
]
13-
},
14-
"match_action": {
15-
"intercept": {
16-
"type": "PyFunc",
17-
"code_lines": [
18-
"import sys",
19-
"",
20-
"# msg_direction is 'inbound' or 'outbound'",
21-
"msg_direction = sys.argv[0]",
22-
"# msg_type is 'request', 'response_success', 'response_failure', 'notification', or 'unknown'",
23-
"msg_type = sys.argv[1]",
24-
"# raw_msg is the raw message content (json string)",
25-
"raw_msg = sys.argv[2]",
26-
"",
27-
"if 'get_current_time' in raw_msg:",
28-
" action = 'drop'",
29-
"else:",
30-
" action = 'send'",
31-
" outbound_msg = raw_msg"
32-
]
33-
}
34-
},
35-
"non_match_action": "send"
3+
"type": "Filter",
4+
"filter_logic": {
5+
"and": [
6+
{
7+
"request_method": "tools/call"
8+
},
9+
{
10+
"direction": "outbound"
11+
}
12+
]
13+
},
14+
"match_action": {
15+
"intercept": {
16+
"type": "PyFunc",
17+
"code_lines": [
18+
"import sys",
19+
"",
20+
"# msg_direction is 'inbound' or 'outbound'",
21+
"msg_direction = sys.argv[0]",
22+
"# msg_type is 'request', 'response_success', 'response_failure', 'notification', or 'unknown'",
23+
"msg_type = sys.argv[1]",
24+
"# raw_msg is the raw message content (json string)",
25+
"raw_msg = sys.argv[2]",
26+
"",
27+
"if 'get_current_time' in raw_msg:",
28+
" action = 'drop'",
29+
"else:",
30+
" action = 'send'",
31+
" outbound_msg = raw_msg"
32+
]
33+
}
34+
},
35+
"non_match_action": "send"
3636
}
37-
}
37+
}

0 commit comments

Comments
 (0)