From 7fdc6b4417e5cf0fbc72d3117531914353d3984a Mon Sep 17 00:00:00 2001 From: Edward Funnekotter Date: Fri, 30 May 2025 22:34:26 -0700 Subject: [PATCH] fix: ensure function description is copied when ignoring parameters Copybara import of the project: -- 8540f266ebc0210749834d73ee61f01783ae3526 by Edward Funnekotter (aider) : fix: ensure function description is copied when ignoring parameters -- b9fb5916593fe552a7b02bff379ebf2f3b3cf69f by Edward Funnekotter : 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 --- src/google/adk/tools/_automatic_function_calling_util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/google/adk/tools/_automatic_function_calling_util.py b/src/google/adk/tools/_automatic_function_calling_util.py index d51def4..6bd117e 100644 --- a/src/google/adk/tools/_automatic_function_calling_util.py +++ b/src/google/adk/tools/_automatic_function_calling_util.py @@ -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)