-
Notifications
You must be signed in to change notification settings - Fork 0
/
chatroom_configuration_schema.json
595 lines (595 loc) · 17.8 KB
/
chatroom_configuration_schema.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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
{
"type": "object",
"properties": {
"room_config": {
"$ref": "#/$defs/roomConfiguration"
},
"channel_config": {
"type": "object",
"properties": {
"openai_config": {
"$ref": "#/$defs/openAIClientConfiguration"
}
},
"description": "The configuration for the chat channel"
},
"agent_extensions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the extension, can be any string"
},
"command": {
"type": "string",
"description": "The command to start the agent extension"
}
}
}
},
"name": {
"type": "string",
"description": "Your name in the chat room",
"default": "User"
},
"server_config": {
"type": "object",
"properties": {
"urls": {
"type": "string",
"description": "The urls to listen on",
"default": "http://localhost:51234;https://localhost:51235"
},
"environment": {
"type": "string",
"description": "environment, available values are Development, Staging, Production.",
"default": "Development"
}
},
"description": "The configuration for the server. If provided, the client will start a server for chatroom service"
},
"workspace": {
"type": "string",
"description": "The workspace to store logs, checkpoints and other files. The default value is the current directory."
},
"enable_console_app": {
"type": "boolean",
"description": "Enable the console app for the chat room",
"default": false
},
"chatroom_openai_configuration": {
"type": "object",
"properties": {
"room_config": {
"$ref": "#/$defs/roomConfiguration"
},
"agents": {
"$ref": "#/$defs/listOfOpenAIAgentConfiguration"
}
},
"description": "ChatRoom OpenAI configuration, default is null"
},
"chatroom_github_configuration": {
"type": "object",
"properties": {
"room_config": {
"$ref": "#/$defs/roomConfiguration"
},
"issue_helper": {
"$ref": "#/$defs/issueHelperConfiguration"
},
"github_token": {
"$ref": "#/$defs/string15"
},
"github_repo_owner": {
"$ref": "#/$defs/string16"
},
"github_repo_name": {
"$ref": "#/$defs/string17"
}
},
"description": "ChatRoom Github configuration, default is null"
},
"chatroom_powershell_configuration": {
"type": "object",
"properties": {
"runner": {
"$ref": "#/$defs/powershellRunnerConfiguration"
},
"gpt": {
"$ref": "#/$defs/powershellGPTConfiguration"
},
"room_config": {
"$ref": "#/$defs/roomConfiguration"
}
},
"description": "ChatRoom PowerShell configuration, default is null"
},
"chatroom_websearch_configuration": {
"type": "object",
"properties": {
"bing_search_config": {
"$ref": "#/$defs/bingSearchConfiguration"
},
"google_search_config": {
"$ref": "#/$defs/googleSearchConfiguration"
},
"room_config": {
"$ref": "#/$defs/roomConfiguration"
}
},
"description": "ChatRoom WebSearch configuration, default is null"
},
"chatroom_planner_configuration": {
"type": "object",
"properties": {
"room_config": {
"$ref": "#/$defs/roomConfiguration1"
},
"react_planner_configuration": {
"$ref": "#/$defs/reActPlannerConfiguration"
}
},
"description": "ChatRoom Planner configuration, default is null"
}
},
"$defs": {
"roomConfiguration": {
"type": "object",
"properties": {
"room": {
"$ref": "#/$defs/string"
},
"port": {
"$ref": "#/$defs/integer"
}
},
"description": "The configuration for the chat room"
},
"string": {
"type": "string",
"description": "The name of the room. Default is \u0027room\u0027"
},
"integer": {
"type": "integer",
"description": "The port number where the room is hosted. Default is 30000"
},
"openAIClientConfiguration": {
"type": "object",
"properties": {
"llm_type": {
"$ref": "#/$defs/lLMType"
},
"openai_api_key": {
"$ref": "#/$defs/string1"
},
"openai_model_id": {
"$ref": "#/$defs/string2"
},
"azure_openai_endpoint": {
"$ref": "#/$defs/string3"
},
"azure_openai_key": {
"$ref": "#/$defs/string4"
},
"azure_openai_deploy_name": {
"$ref": "#/$defs/string5"
},
"third_party_llm_endpoint": {
"$ref": "#/$defs/string6"
},
"third_party_llm_key": {
"$ref": "#/$defs/string7"
},
"third_party_llm_model_id": {
"$ref": "#/$defs/string8"
}
},
"description": "openai configuration, this will be used to create openai client"
},
"lLMType": {
"enum": [
"AOAI",
"OpenAI",
"ThirdParty"
],
"description": "LLM provider, default is Azure OpenAI"
},
"string1": {
"type": "string",
"description": "OpenAI API key, default is $env:OPENAI_API_KEY"
},
"string2": {
"type": "string",
"description": "OpenAI model ID, default is gpt-3.5-turbo"
},
"string3": {
"type": "string",
"description": "Azure OpenAI endpoint, default is $env:AZURE_OPENAI_ENDPOINT"
},
"string4": {
"type": "string",
"description": "Azure OpenAI key, default is $env:AZURE_OPENAI_API_KEY"
},
"string5": {
"type": "string",
"description": "Azure OpenAI deploy name, default is $env:AZURE_OPENAI_DEPLOY_NAME"
},
"string6": {
"type": "string",
"description": "Third-party LLM provider endpoint, default is $env:THIRD_PARTY_LLM_ENDPOINT"
},
"string7": {
"type": "string",
"description": "Third-party LLM provider key, default is $env:THIRD_PARTY_LLM_KEY"
},
"string8": {
"type": "string",
"description": "Third-party LLM provider model ID, default is $env:THIRD_PARTY_LLM_MODEL_ID"
},
"listOfOpenAIAgentConfiguration": {
"type": "array",
"items": {
"type": "object",
"properties": {
"llm_config": {
"$ref": "#/$defs/openAIClientConfiguration1"
},
"system_message": {
"$ref": "#/$defs/string9"
},
"agent_description": {
"$ref": "#/$defs/string10"
},
"name": {
"$ref": "#/$defs/string11"
}
},
"description": "openai agents, the name of agents can\u0027t be duplicated"
},
"description": "openai agents, the name of agents can\u0027t be duplicated"
},
"openAIClientConfiguration1": {
"type": "object",
"properties": {
"llm_type": {
"$ref": "#/$defs/lLMType"
},
"openai_api_key": {
"$ref": "#/$defs/string1"
},
"openai_model_id": {
"$ref": "#/$defs/string2"
},
"azure_openai_endpoint": {
"$ref": "#/$defs/string3"
},
"azure_openai_key": {
"$ref": "#/$defs/string4"
},
"azure_openai_deploy_name": {
"$ref": "#/$defs/string5"
},
"third_party_llm_endpoint": {
"$ref": "#/$defs/string6"
},
"third_party_llm_key": {
"$ref": "#/$defs/string7"
},
"third_party_llm_model_id": {
"$ref": "#/$defs/string8"
}
},
"description": "llm configuration"
},
"string9": {
"type": "string",
"description": "System message used in gpt agent, default is \u0027You are a helpful AI assistant\u0027"
},
"string10": {
"type": "string",
"description": "Agent description used in gpt agent, default is \u0027I am a helpful AI assistant\u0027"
},
"string11": {
"type": "string",
"description": "Name of the agent, default is \u0027gpt\u0027"
},
"issueHelperConfiguration": {
"type": "object",
"properties": {
"name": {
"$ref": "#/$defs/string12"
},
"system_message": {
"$ref": "#/$defs/string13"
},
"description": {
"$ref": "#/$defs/string14"
},
"openai_config": {
"$ref": "#/$defs/openAIClientConfiguration2"
}
},
"description": "Issue helper configuration"
},
"string12": {
"type": "string",
"description": "Name of the issue helper agent, default is \u0027issue-helper\u0027"
},
"string13": {
"type": "string",
"description": "System message, default is \u0027You are a github issue helper\u0027"
},
"string14": {
"type": "string",
"description": "Agent description, default is \u0027I am a github issue helper, I can help you with your github issues.\u0027"
},
"openAIClientConfiguration2": {
"type": "object",
"properties": {
"llm_type": {
"$ref": "#/$defs/lLMType"
},
"openai_api_key": {
"$ref": "#/$defs/string1"
},
"openai_model_id": {
"$ref": "#/$defs/string2"
},
"azure_openai_endpoint": {
"$ref": "#/$defs/string3"
},
"azure_openai_key": {
"$ref": "#/$defs/string4"
},
"azure_openai_deploy_name": {
"$ref": "#/$defs/string5"
},
"third_party_llm_endpoint": {
"$ref": "#/$defs/string6"
},
"third_party_llm_key": {
"$ref": "#/$defs/string7"
},
"third_party_llm_model_id": {
"$ref": "#/$defs/string8"
}
},
"description": "OpenAI configuration"
},
"string15": {
"type": "string",
"description": "GitHub token, will use $env:GITHUB_TOKEN if not provided"
},
"string16": {
"type": "string",
"description": "GitHub repository owner, will use $env:GITHUB_REPO_OWNER if not provided"
},
"string17": {
"type": "string",
"description": "GitHub repository name, will use $env:GITHUB_REPO_NAME if not provided"
},
"powershellRunnerConfiguration": {
"type": "object",
"properties": {
"name": {
"$ref": "#/$defs/string18"
},
"description": {
"$ref": "#/$defs/string19"
},
"last_n_message": {
"$ref": "#/$defs/integer1"
}
},
"description": "Powershell runner configuration"
},
"string18": {
"type": "string",
"description": "Name of the powershell runner agent, default is \u0027ps-runner\u0027"
},
"string19": {
"type": "string",
"description": "Agent description of the powershell runner agent, default is \u0027A powershell script runner\u0027"
},
"integer1": {
"type": "integer",
"description": "Number of last message to look for powershell script, default is 10"
},
"powershellGPTConfiguration": {
"type": "object",
"properties": {
"name": {
"$ref": "#/$defs/string20"
},
"CurrentWorkingDirectory": {
"$ref": "#/$defs/string21"
},
"system_message": {
"$ref": "#/$defs/string22"
},
"description": {
"$ref": "#/$defs/string23"
},
"openai_config": {
"$ref": "#/$defs/openAIClientConfiguration2"
}
},
"description": "Powershell GPT configuration"
},
"string20": {
"type": "string",
"description": "Name of the powershell gpt agent, default is \u0027ps-gpt\u0027"
},
"string21": {
"type": "string",
"description": "Current working directory, default is current directory of where the program is running"
},
"string22": {
"type": "string",
"description": "System message, default is \u0027$\u0022\u0022\u0022\r\n You are a powershell developer. You need to convert the task assigned to you to a powershell script.\r\n \r\n If there is bug in the script, you need to fix it.\r\n\r\n The current working directory is {cwd}\r\n\r\n You need to write powershell script to resolve task. Put the script between \u0060\u0060\u0060pwsh and \u0060\u0060\u0060.\r\n The script should always write the result to the output stream using Write-Host command.\r\n\r\n e.g.\r\n \u0060\u0060\u0060pwsh\r\n # This is a powershell script\r\n Write-Host \u0022Hello, World!\u0022\r\n \u0060\u0060\u0060\r\n \u0022\u0022\u0022\u0027"
},
"string23": {
"type": "string",
"description": "Agent description, default is \u0027I am PowerShell GPT, I am good at writing powershell scripts.\u0027"
},
"bingSearchConfiguration": {
"type": "object",
"properties": {
"name": {
"$ref": "#/$defs/string24"
},
"system_message": {
"$ref": "#/$defs/string25"
},
"description": {
"$ref": "#/$defs/string26"
},
"bing_api_key": {
"$ref": "#/$defs/string27"
},
"openai_config": {
"$ref": "#/$defs/openAIClientConfiguration2"
}
},
"description": "The configuration for Bing search agent"
},
"string24": {
"type": "string",
"description": "Name of the bing search agent, default is \u0027bing-search\u0027"
},
"string25": {
"type": "string",
"description": "System message, default is \u0027You are a Bing search agent. You can search the web using Bing search engine.\u0027"
},
"string26": {
"type": "string",
"description": "Agent description, default is \u0027I am a Bing search agent. I can search the web using Bing search engine.\u0027"
},
"string27": {
"type": "string",
"description": "Bing API key, will use $env:BING_API_KEY if not provided"
},
"googleSearchConfiguration": {
"type": "object",
"properties": {
"name": {
"$ref": "#/$defs/string28"
},
"system_message": {
"$ref": "#/$defs/string29"
},
"description": {
"$ref": "#/$defs/string30"
},
"google_api_key": {
"$ref": "#/$defs/string31"
},
"google_custom_search_engine_id": {
"$ref": "#/$defs/string32"
},
"openai_config": {
"$ref": "#/$defs/openAIClientConfiguration2"
}
},
"description": "The configuration for Google search agent"
},
"string28": {
"type": "string",
"description": "Name of the google search agent, default is \u0027google-search\u0027"
},
"string29": {
"type": "string",
"description": "System message, default is \u0027You are a Google search agent. You can search the web using Google search engine.\u0027"
},
"string30": {
"type": "string",
"description": "Agent description, default is \u0027I am a Google search agent. I can search the web using Google search engine.\u0027"
},
"string31": {
"type": "string",
"description": "Google search API key, will use $env:GOOGLE_API_KEY if not provided"
},
"string32": {
"type": "string",
"description": "Google custom search engine id, will use $env:GOOGLE_CUSTOM_SEARCH_ENGINE_ID if not provided"
},
"roomConfiguration1": {
"type": "object",
"properties": {
"room": {
"$ref": "#/$defs/string"
},
"port": {
"$ref": "#/$defs/integer"
}
},
"description": "the configuration for chat room"
},
"reActPlannerConfiguration": {
"type": "object",
"properties": {
"name": {
"$ref": "#/$defs/string33"
},
"system_message": {
"$ref": "#/$defs/string34"
},
"description": {
"$ref": "#/$defs/string35"
},
"openai_config": {
"$ref": "#/$defs/openAIClientConfiguration3"
}
},
"description": "the configuration for react planner"
},
"string33": {
"type": "string",
"description": "The name of the agent. Default is \u0027react-planner\u0027"
},
"string34": {
"type": "string",
"description": "System message"
},
"string35": {
"type": "string",
"description": "Description of the agent. Default is \u0027A react planner agent, which can help other agents to plan actions.\u0027"
},
"openAIClientConfiguration3": {
"type": "object",
"properties": {
"llm_type": {
"$ref": "#/$defs/lLMType"
},
"openai_api_key": {
"$ref": "#/$defs/string1"
},
"openai_model_id": {
"$ref": "#/$defs/string2"
},
"azure_openai_endpoint": {
"$ref": "#/$defs/string3"
},
"azure_openai_key": {
"$ref": "#/$defs/string4"
},
"azure_openai_deploy_name": {
"$ref": "#/$defs/string5"
},
"third_party_llm_endpoint": {
"$ref": "#/$defs/string6"
},
"third_party_llm_key": {
"$ref": "#/$defs/string7"
},
"third_party_llm_model_id": {
"$ref": "#/$defs/string8"
}
},
"description": "OpenAI configuration for the agent. To get ideal result, it\u0027s recommended to use gpt-4o or above for this agent."
}
}
}