fix: ensure function description is copied when ignoring parameters

Copybara import of the project:

--
8540f266ebc0210749834d73ee61f01783ae3526 by Edward Funnekotter (aider) <efunneko@gmail.com>:

fix: ensure function description is copied when ignoring parameters

--
b9fb5916593fe552a7b02bff379ebf2f3b3cf69f by Edward Funnekotter <efunneko@gmail.com>:

Fix annoying comments

COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/552 from efunneko:efunneko/122/copy_doc_string_for_tool d9bc24343d9f32376b5647c4309d6cb172833534
PiperOrigin-RevId: 765470363
This commit is contained in:
Edward Funnekotter 2025-05-30 22:34:26 -07:00 committed by Copybara-Service
parent 2623c71086
commit 7fdc6b4417

View File

@ -228,6 +228,7 @@ def build_function_declaration(
func.__closure__,
)
new_func.__signature__ = new_sig
new_func.__doc__ = func.__doc__
return (
from_function_with_options(func, variant)