-
Notifications
You must be signed in to change notification settings - Fork 9
/
openai_function_schemas.py
34 lines (34 loc) · 1.01 KB
/
openai_function_schemas.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
FUNCTIONS_SCHEMA = [
{
"name": "get_search_results",
"description": "Used to get search results when the user asks for it",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The query to search for",
}
},
},
},
{
"name": "get_current_weather",
"description": "Get the current weather for a location",
"parameters": {
"type": "object",
"properties": {
"longitude": {
"type": "number",
"description": "The approximate longitude of the location",
},
"latitude": {
"type": "number",
"description": "The approximate latitude of the location",
},
},
"required": ["longitude", "latitude"],
},
},
# other functions
]