google-labs-jules[bot] and Hangfei Lin
0959b06dbd
Fix: Handle unexpected 'parameters' argument in FunctionTool.run_async
...
The LLM occasionally includes an unexpected 'parameters' argument when calling tools, specifically observed with 'transfer_to_agent'. This change makes FunctionTool.run_async more robust by filtering arguments against the function signature before invocation.
This resolves issue #1637 .
Update test_function_tool.py
fix typing
fix: add `from __future__ import annotations`
2025-07-02 00:22:09 +00:00
Xiang (Sean) Zhou and Copybara-Service
b92e068155
chore: fix function tool UT
...
PiperOrigin-RevId: 764567867
2025-05-28 22:30:42 -07:00
Google Team Member and Copybara-Service
60ceea72bd
fix: do not convert "false" value to dict
...
This causes information loss, and is unexpected from user.
PiperOrigin-RevId: 764558190
2025-05-28 21:56:52 -07:00
Xiang (Sean) Zhou and Copybara-Service
ff8a3c9b43
chore: reformat the codes using autoformat.sh
...
PiperOrigin-RevId: 762004002
2025-05-22 09:43:54 -07:00
Xiang (Sean) Zhou and Copybara-Service
09cb128cf9
fix: fix function tool name parsing
...
to fix https://github.com/google/adk-python/issues/824
PiperOrigin-RevId: 761703269
2025-05-21 16:00:09 -07:00
Xiang (Sean) Zhou and Copybara-Service
f67ccf32c3
fix: support Callable that has __call__ as coroutine function in FunctionTool
...
PiperOrigin-RevId: 760913537
2025-05-19 22:09:44 -07:00
Ankur Sharma and Copybara-Service
f872577f68
Currently if a model calls a FunctionTool without all the mandatory parameters, the code will just break. This change basically adds the capability for the FunctionTool to identify if the model is missing required arguments, and in that case, instead of breaking the execution, it provides a error message to the model so it could fix the request and retry.
...
PiperOrigin-RevId: 751023475
2025-04-24 09:31:40 -07:00