8000 Allow GOOGLE_AI to support optional args. · CentML/adk-python@83ba641 · GitHub
[go: up one dir, main page]

Skip to content

Commit 83ba641

Browse files
google-genai-botcopybara-github
authored andcommitted
Allow GOOGLE_AI to support optional args.
PiperOrigin-RevId: 764419789
1 parent d232e62 commit 83ba641

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/google/adk/tools/_automatic_function_calling_util.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -319,12 +319,11 @@ def from_function_with_options(
319319
type='OBJECT',
320320
properties=parameters_properties,
321321
)
322-
if variant == 'VERTEX_AI':
323-
declaration.parameters.required = (
324-
function_parameter_parse_util._get_required_fields(
325-
declaration.parameters
326-
)
327-
)
322+
declaration.parameters.required = (
323+
function_parameter_parse_util._get_required_fields(
324+
declaration.parameters
325+
)
326+
)
328327
if not variant == 'VERTEX_AI':
329328
return declaration
330329

0 commit comments

Comments
 (0)
0