-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathinput_schema.py
executable file
·109 lines (109 loc) · 4.92 KB
/
input_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
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
tools = {
"tools": [
{
"toolSpec": {
"name": "create_pizza_order",
"description": "Use this tool to create a pizza orders. When creating the order determine the crust, size, toppings, extras and delivery details ",
"inputSchema": {
"json": {
"type": "object",
"properties": {
"crust": {
"type": "string",
"description": "The type of crust for the pizza",
"enum": [
"thin",
"regular",
"deep dish",
"stuffed",
"gluten-free"
]
},
"size": {
"type": "string",
"description": "The size of the pizza",
"enum": [
"small",
"medium",
"large",
"extra-large"
]
},
"toppings": {
"type": "array",
"description": "A list of toppings for the pizza",
"items": {
"type": "string",
"enum": [
"pepperoni",
"sausage",
"mushrooms",
"onions",
"peppers",
"olives",
"extra cheese",
"ham",
"pineapple",
"bacon",
"anchovies",
"chicken",
"tomatoes",
"garlic",
"spinach"
]
}
},
"extras": {
"type": "array",
"description": "A list of extra items to include with the pizza",
"items": {
"type": "string",
"enum": [
"garlic bread",
"cheese bread",
"salad",
"wings",
"soda"
]
}
},
"delivery_instructions": {
"type": "string",
"description": "Any special delivery instructions for the order"
},
"customer_details": {
"type": "object",
"description": "Details about the customer placing the order",
"properties": {
"name": {
"type": "string",
"description": "The name of the customer"
},
"phone": {
"type": "string",
"description": "The phone number of the customer"
},
"address": {
"type": "string",
"description": "The delivery address for the order"
}
},
"required": [
"name",
"phone",
"address"
]
}
},
"required": [
"crust",
"size",
"toppings",
"customer_details"
]
}
}
}
}
]
}