tools = [ { "type": "function", "function": { "name": "discover_movie", "description": "Find movies using over 30 filters and sort options", "parameters": { "type": "object", "properties": { "region": { "type": "string", "description": "ISO 3166-1 code to filter release dates", }, "sort_by": { "type": "string", "description": "Sort the results", }, "certification_country": { "type": "string", "description": "Used in conjunction with the certification filter", }, "certification": { "type": "string", "description": "Filter results with a valid certification from the certification_country", }, "certification.lte": { "type": "string", "description": "Filter and only include movies that have a certification that is less than or equal to the specified value", }, "certification.gte": { "type": "string", "description": "Filter and only include movies that have a certification that is greater than or equal to the specified value", }, "include_adult": { "type": "boolean", "description": "Choose whether to include adult (pornography) content in the results", }, "include_video": { "type": "boolean", "description": "Choose whether to include videos in the results", }, "page": { "type": "integer", "description": "Specify which page to query", }, "primary_release_year": { "type": "integer", "description": "Filter the results to only include movies that have a primary release year that equals the specified value", }, "primary_release_date.gte": { "type": "string", "description": "Filter and only include movies that have a primary release date that is greater or equal to the specified value", }, "primary_release_date.lte": { "type": "string", "description": "Filter and only include movies that have a primary release date that is less than or equal to the specified value", }, "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", }, "vote_count.gte": { "type": "integer", "description": "Filter and only include movies that have a vote count that is greater or equal to the specified value", }, "vote_count.lte": { "type": "integer", "description": "Filter and only include movies that have a vote count that is less than or equal to the specified value", }, "vote_average.gte": { "type": "number", "description": "Filter and only include movies that have a rating that is greater or equal to the specified value", }, "vote_average.lte": { "type": "number", "description": "Filter and only include movies that have a rating that is less than or equal to the specified value", }, "with_cast": { "type": "string", "description": "A comma separated list of person ID's to filter the results with", }, "with_crew": { "type": "string", "description": "A comma separated list of person ID's to filter the results with", }, "with_people": { "type": "string", "description": "A comma separated list of person ID's to filter the results with", }, "with_companies": { "type": "string", "description": "A comma separated list of production company ID's to filter the results with", }, "with_genres": { "type": "string", "description": "A comma separated list of genre ID's to filter the results with", }, "without_genres": { "type": "string", "description": "A comma separated list of genre ID's to exclude from the results", }, "with_keywords": { "type": "string", "description": "A comma separated list of keyword ID's to filter the results with", }, "without_keywords": { "type": "string", "description": "A comma separated list of keyword ID's to exclude from the results", }, "with_runtime.gte": { "type": "integer", "description": "Filter and only include movies that have a runtime that is greater or equal to the specified value", }, "with_runtime.lte": { "type": "integer", "description": "Filter and only include movies that have a runtime that is less than or equal to the specified value", }, "with_original_language": { "type": "string", "description": "Specify an ISO 639-1 string to filter results by their original language value", }, "with_watch_providers": { "type": "string", "description": "A comma or pipe separated list of watch provider ID's to filter the results with", }, "watch_region": { "type": "string", "description": "An ISO 3166-1 code to filter the watch provider results", }, "with_watch_monetization_types": { "type": "string", "description": "Filter the results by monetization type", }, "without_companies": { "type": "string", "description": "A comma separated list of production company ID's to filter the results with", }, }, "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", }, "append_to_response": { "type": "string", "description": "Comma-separated list of sub requests to append to the response", }, }, "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" }, "include_adult": { "type": "boolean", "description": "Include adult (pornography) content in the results", "default": False }, "language": { "type": "string", "description": "Language for the search results", "default": "en-US" }, "page": { "type": "integer", "description": "Page number of results", "default": 1 } }, "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" }, "language": { "type": "string", "description": "Language for the person details", "default": "en-US" }, "append_to_response": { "type": "string", "description": "Comma-separated list of additional details to append to the response (e.g., 'images,credits')" } }, "required": ["person_id"] } } }, { "type": "function", "function": { "name": "get_movie_genres", "description": "Get the list of official genres for movies.", "parameters": { "type": "object", "properties": { "language": { "type": "string", "description": "Language for the genre names", "default": "en-US" } } } } } ]