fix: Forwards __annotations__ to the fake func for FunctionTool inspection

PiperOrigin-RevId: 767926726
This commit is contained in:
Wei Sun (Jack)
2025-06-05 23:06:35 -07:00
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)