forked from deepak4566/OpenAI_Chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
available_functions.py
44 lines (44 loc) · 1.23 KB
/
available_functions.py
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
# Define a list of available functions with their descriptions
functions = [
{
"name": "total_donations",
"description": "Get the total donations",
"parameters": {
"type": "object",
"properties": {},
"required": [],
},
},
{
"name": "donations_list",
"description": "Get the list of donations for a month and year if given",
"parameters": {
"type": "object",
"properties": {
"month": {
"type": "string",
"description": "Month of the donations",
"enum": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
],
},
"year": {
"type": "string",
"description": "Year of the donations",
},
},
"required": [],
},
}
]