8000 fix: Forwards `__annotations__` to the fake func for FunctionTool ins… · devevignesh/adk-python@9abb841 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9abb841

Browse files
Jacksunweicopybara-github
authored andcommitted
fix: Forwards __annotations__ to the fake func for FunctionTool inspection
PiperOrigin-RevId: 767926726
1 parent 3b1f2ae commit 9abb841

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/google/adk/tools/_automatic_function_calling_util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ def build_function_declaration(
230230
)
231231
new_func.__signature__ = new_sig
232232
new_func.__doc__ = func.__doc__
233+
new_func.__annotations__ = func.__annotations__
233234

234235
return (
235236
from_function_with_options(func, variant)

0 commit comments

Comments
 (0)
0