mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-07-13 15:14:50 -06:00
Allow GOOGLE_AI to support optional args.
PiperOrigin-RevId: 764419789
This commit is contained in:
parent
d232e6216d
commit
83ba6419cd
@ -319,12 +319,11 @@ def from_function_with_options(
|
||||
type='OBJECT',
|
||||
properties=parameters_properties,
|
||||
)
|
||||
if variant == 'VERTEX_AI':
|
||||
declaration.parameters.required = (
|
||||
function_parameter_parse_util._get_required_fields(
|
||||
declaration.parameters
|
||||
)
|
||||
)
|
||||
declaration.parameters.required = (
|
||||
function_parameter_parse_util._get_required_fields(
|
||||
declaration.parameters
|
||||
)
|
||||
)
|
||||
if not variant == 'VERTEX_AI':
|
||||
return declaration
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user