8000 fix: ensure function description is copied when ignoring parameters · miketako3/adk-python@7fdc6b4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7fdc6b4

Browse files
efunnekocopybara-github
authored andcommitted
fix: ensure function description is copied when ignoring parameters
Copybara import of the project: -- 8540f26 by Edward Funnekotter (aider) <efunneko@gmail.com>: fix: ensure function description is copied when ignoring parameters -- b9fb591 by Edward Funnekotter <efunneko@gmail.com>: Fix annoying comments COPYBARA_INTEGRATE_REVIEW=google#552 from efunneko:efunneko/122/copy_doc_string_for_tool d9bc243 PiperOrigin-RevId: 765470363
1 parent 2623c71 commit 7fdc6b4

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
@@ -228,6 +228,7 @@ def build_function_declaration(
228228
func.__closure__,
229229
)
230230
new_func.__signature__ = new_sig
231+
new_func.__doc__ = func.__doc__
231232

232233
return (
233234
from_function_with_options(func, variant)

0 commit comments

Comments
 (0)
0