generated from susom/redcap-em-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
195 lines (179 loc) · 5.49 KB
/
config.json
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
{
"name": "Cappy - REDCap Support Bot",
"namespace": "Stanford\\REDCapChatBot",
"description": "Cappy is an EM enabled system-wide to inject and manage frontend support chatbot functionality across all REDCap pages.",
"documentation": "README.md",
"authors": [
{
"name": "Irvin Szeto",
"email": "[email protected]",
"institution": "Stanford University"
}
],
"framework-version": 9,
"permissions": [
"redcap_every_page_top",
"redcap_module_system_enable"
],
"enable-every-page-hooks-on-system-pages": true,
"links": {
"control-center": [
{
"name": "Cappy/RAG : EM Project Check (all time)",
"icon": "fas fa-info-circle",
"url" : "cron/check_em_project.php",
"show-header-and-footer": false
},
{
"name": "Cappy/RAG : Current JQL",
"icon": "fas fa-info-circle",
"url" : "cron/check_rssd_completions.php",
"show-header-and-footer": false
},
{
"name": "Cappy/RAG : MedWiki Scrape (all time)",
"icon": "fas fa-info-circle",
"url" : "cron/check_med_wiki.php",
"show-header-and-footer": false
},
{
"name": "Cappy/RAG : Community Portal Scrape (all time)",
"icon": "fas fa-info-circle",
"url" : "cron/check_community_portal.php",
"show-header-and-footer": false
}
]
},
"no-auth-pages": [],
"auth-ajax-actions": [
"callAI"
],
"no-auth-ajax-actions": [],
"system-settings": [
{
"key": "llm-model",
"name": "LLM Model",
"required": false,
"type": "dropdown",
"choices": [
{
"value": "gpt-4o",
"name": "GPT-4o"
},
{
"value": "claude",
"name": "Claude 3.5 Sonnet"
},
{
"value": "o1-mini",
"name": "GPT o1-mini"
}
],
"default": "gpt-4o"
},
{
"key": "gpt-temperature",
"name": "GPT Temperature",
"required": false,
"type": "number",
"default": 0.7
},
{
"key": "gpt-top-p",
"name": "GPT Top P",
"required": false,
"type": "number",
"default": 0.9
},
{
"key": "gpt-frequency-penalty",
"name": "GPT Frequency Penalty",
"required": false,
"type": "number",
"default": 0.5
},
{
"key": "gpt-presence-penalty",
"name": "GPT Presence Penalty",
"required": false,
"type": "number",
"default": 0
},
{
"key": "gpt-max-tokens",
"name": "GPT Max Tokens",
"required": false,
"type": "number",
"default": 800
},
{
"key": "chatbot_system_context",
"name": "Raw text to inject into system context for Cappy",
"required": false,
"type": "textarea"
},
{
"key": "redcap_actions_list",
"name": "List of potential programmatic actions Cappy can perform",
"required": false,
"type": "textarea"
},
{
"key": "chatbot_exclude_list",
"name": "Comma delimited list of URL fragments to exclude Cappy",
"required": false,
"type": "textarea"
},
{
"key": "rag_emtracking_pid",
"name": "EM Tracking PID - 16000 on PROD",
"required": false,
"type": "text"
},
{
"key": "rag_atlassian_api",
"name": "Atlassian API Key - enable integration with Atlassian services",
"required": false,
"type": "text"
},
{
"key": "rag_atlassian_baseurl",
"name": "Atlassian Base URL - JIRA workspace URL",
"required": false,
"type": "text"
},
{
"key": "rag_atlassian_email",
"name": "Atlassian Account - Atlassian Email",
"required": false,
"type": "text"
},
{
"key": "rag_atlassian_jql",
"name": "Atlassian JQL - ticket filter query",
"required": false,
"type": "textarea"
},
{
"key": "enable-system-debug-logging",
"name": "<b>Enable Debug Logging for Cappy (system-wide)</b><i>(optional)</i> Requires installation and configuration of emLogger",
"required": false,
"type": "checkbox"
}
],
"crons": [
{
"cron_name": "daily_context_pull",
"cron_description": "Cappy's daily cron job to fetch new or updated context and add it to the Support Context DB.",
"method": "dailyCronRun",
"cron_frequency": "86400",
"cron_max_run_time": "3600"
}
],
"compatibility": {
"php-version-min": "",
"php-version-max": "",
"redcap-version-min": "",
"redcap-version-max": ""
}
}