-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslide_schema.py
40 lines (40 loc) · 1.2 KB
/
slide_schema.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
GPT_TOOL_SLIDE_SCHEMA = {
"type": "function",
"function": {
"name": "json_answer",
"description": "Generate output using the specified schema",
"parameters": {
"type": "object",
"properties": {
"slides": {
"type": "array",
"items": {
"type": "object",
"properties": {
"heading": {"type": "string"},
"bullet_points": {
"type": ["array", "null"],
"items": {
"type": "object",
"properties": {
"bullet_type": {
"type": "string",
"enum": ["none", "bullet", "number", "letter"]
},
"bullet_level": {
"type": "string",
"enum": ["0", "1", "2", "3"]
},
"bullet_text": {"type": "string"}
},
"required": ["bullet_type", "bullet_level", "bullet_text"]
}
}
},
"required": ["heading"]
}
}
}
}
}
}