So I think this is what you want.
Here’s the function. I think the trick is to use ‘array’ as a the type.
{
"name": "save_cities",
"description": "City planner",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "array",
"description": "the optionss that you have for cities",
"items": {
"City": {
"type": "string",
"description": "Name of the city"
}
}
}
},
"required": [
"location"
]
}
}