Open b0noI opened 1 month ago
any updates?
please use this commit for reproduction: https://github.com/GeminiAgentsToolkit/gemini-agents-toolkit/commit/c2abef95b78097c3f9e969b38fa8549d9a0a4771
in the more latest version I have remediated this with the hack (prompt that explains to the backend how NOT to call functions :) )
Hello. I will forward your issue to the model quality team. The SDK cannot do anything here since the model response and the erro comes from the backend.
Finish message: Malformed function call:
print(157.3 * 1.04)
As you see, to solve your question, the model generated the following "function call": print(157.3 * 1.04)
, but it wasn't calling any function, just doing multiplication.
To reduce cases like this you can try using tool_config to force function calling. When using forced function calling there are additional constraint decoding features enabled that can reduce/eliminate the probability of invalid function call. https://github.com/googleapis/python-aiplatform/pull/3534
Environment details
pip 24.2
google-cloud-aiplatform
version: `Version: 1.68.0Steps to reproduce
git clone git@github.com:GeminiAgentsToolkit/gemini-agents-toolkit.git pip install -r ./requirements.txt python ./examples/investing_pipeline_example.py
run the code several times, on some day it works almost all the time, today it was working 2 out of 10 times only T_T
output example: