Tool name in content instead of tool calling

Hi. Sometimes the model gemini-2.0-flash-001, instead of calling the function, includes the function name inside the content of its response. Is this bug fixable? Why does it happen?

Hi @Mohammad_Esmaili , Welcome to the forum.

Could you provide the sample code so that I can reproduce it on my end?

Thanks.