File size: 3,814 Bytes
6660737
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95bf5e4
6660737
 
 
95bf5e4
6660737
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95bf5e4
6660737
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95bf5e4
6660737
 
 
 
 
 
 
 
 
 
 
 
 
 
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
tools = [
    {
        "type": "function",
        "function": {
            "name": "discover_movie",
            "description": "Find movies using over 30 filters and sort options",
            "parameters": {
                "type": "object",
                "properties": {
                    "release_date.gte": {
                        "type": "string",
                        "description": "Filter and only include movies that have a release date (looking at all release dates) that is greater or equal to the specified value",
                    },
                    "release_date.lte": {
                        "type": "string",
                        "description": "Filter and only include movies that have a release date (looking at all release dates) that is less than or equal to the specified value",
                    },
                    "with_release_type": {
                        "type": "integer",
                        "description": "Specify a comma (AND) or pipe (OR) separated value to filter release types",
                    },
                    "year": {
                        "type": "integer",
                        "description": "Filter the results to only include movies that have a release year that equals the specified value",
                    },
                    "with_cast": {
                        "type": "string",
                        "description": "A comma separated list of person ID's to filter the results with. Use seach_person function to find the ID of a person.",
                    },
                    "with_genres": {
                        "type": "string",
                        "description": "A comma separated list of genre ID's to filter the results with. Use get_movie_genres function to find the ID of a genre.",
                    },
                },
                "required": [],
            },
        },
    },
    {
        "type": "function",
        "function": {
            "name": "get_movie_details",
            "description": "Get the top level details of a movie by ID",
            "parameters": {
                "type": "object",
                "properties": {
                    "movie_id": {
                        "type": "integer",
                        "description": "The ID of the movie to get details for. Use discover_movie to find the ID of a movie.",
                    },
                },
                "required": ["movie_id"],
            },
        },
    },
    {
        "type": "function",
        "function": {
            "name": "search_person",
            "description": "Search for people in the entertainment industry.",
            "parameters": {
                "type": "object",
                "properties": {
                    "query": {
                        "type": "string",
                        "description": "The search query for the person"
                    },
                },
                "required": ["query"]
            }
        }
    },
    {
        "type": "function",
        "function": {
            "name": "get_person_details",
            "description": "Get detailed information about a specific person.",
            "parameters": {
                "type": "object",
                "properties": {
                    "person_id": {
                        "type": "integer",
                        "description": "The ID of the person to get details for. Use search_person to find the ID of a person."
                    },
                },
                "required": ["person_id"]
            }
        }
    },
    {
        "type": "function",
        "function": {
            "name": "get_movie_genres",
            "description": "Get the list of official genres for movies.",
        }
    }
]