movies-app / tools.py
tmzh
remove unnecessary LOC
a4f227a
raw
history blame
6.89 kB
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",
},
"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",
},
"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",
},
},
"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"
}
}
}
}
}
]