File size: 1,923 Bytes
c760612
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
    "type": "function",
    "name": "extract_menu_data",
    "description": "Extract structured menu information from images.",
    "parameters": {
        "type": "object",
        "properties": {
            "restaurant": {
                "type": "string",
                "description": "Name of the restaurant. If the name is not available, it should be ''."
            },
            "address": {
                "type": "string",
                "description": "Address of the restaurant. If the address is not available, it should be ''."
            },
            "phone": {
                "type": "string",
                "description": "Phone number of the restaurant. If the phone number is not available, it should be ''."
            },
            "business_hours": {
                "type": "string",
                "description": "Business hours of the restaurant. If the business hours are not available, it should be ''."
            },
            "dishes": {
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        "name": {
                            "type": "string",
                            "description": "Name of the menu item."
                        },
                        "price": {
                            "type": "number",
                            "format": "float",
                            "description": "Price of the menu item. If the price is not available, it should be -1."
                        }
                    },
                    "required": ["name", "price"],
                    "additionalProperties": false
                },
                "description": "List of menu dishes item."
            }
        },
        "required": ["restaurant", "address", "phone", "business_hours", "dishes"],
        "additionalProperties": false
    }
}