Hello, good day.
I just want to ask on how do I achieve this sample of Function calling, wherein I have defined the structured output of the Google Gemini model. But the AI model returns the following response:
[
{
“output”: {
“message”: “I am sorry, I cannot fulfill this request. The API does not accept arguments.”
} }
]
The objective is that I want to return the two given dates by the user, then will plug in to MongoDB aggregation query below:
[
{ “$match”: {
“date_of_transaction”: {
“$gte”: “2025-06-01”, “$lte”: “2025-06-31”
}
}
}, {
“$group”: {
“_id”: null, “totalAmount”: {
“$sum”: “$amount”
}
}
}
]
Is there other work around? Thanks.