movies-app / tools.py
tmzh
working chat agent
95bf5e4
raw
history blame
3.81 kB
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.",
}
}
]