Google Gemini - Function Calling with Returned Arguments

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.

Hi @Lemuel_Torrefiel ,

Is it possible for you to share the workflow, that way will able to understand what’s the exact problem in the structure.

Screenshots sharing the problem will also be helpful.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.