File size: 593 Bytes
1870dee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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

def book_table(
    restaurant: str,
    people: int,
    date: str,
    time: str
) -> dict:
    return {
        "status": "simulated",
        "message": (
            f"Table request prepared for {people} people "
            f"at {restaurant} on {date} at {time}."
        )
    }


def check_menu(
    restaurant: str,
    dish: str
) -> dict:
    return {
        "status": "simulated",
        "message": (
            f"Menu lookup prepared for {dish} "
            f"at {restaurant}."
        )
    }


TOOL_REGISTRY = {
    "book_table": book_table,
    "check_menu": check_menu
}