You've already forked adk-python
mirror of
https://github.com/encounter/adk-python.git
synced 2026-03-30 10:57:20 -07:00
fix: Forwards __annotations__ to the fake func for FunctionTool inspection
PiperOrigin-RevId: 767926726
This commit is contained in:
committed by
Copybara-Service
parent
3b1f2ae9bf
commit
9abb8414da
@@ -230,6 +230,7 @@ def build_function_declaration(
|
||||
)
|
||||
new_func.__signature__ = new_sig
|
||||
new_func.__doc__ = func.__doc__
|
||||
new_func.__annotations__ = func.__annotations__
|
||||
|
||||
return (
|
||||
from_function_with_options(func, variant)
|
||||
|
||||
Reference in New Issue
Block a user