mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-07-16 04:02:55 -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',
|
type='OBJECT',
|
||||||
properties=parameters_properties,
|
properties=parameters_properties,
|
||||||
)
|
)
|
||||||
if variant == 'VERTEX_AI':
|
declaration.parameters.required = (
|
||||||
declaration.parameters.required = (
|
function_parameter_parse_util._get_required_fields(
|
||||||
function_parameter_parse_util._get_required_fields(
|
declaration.parameters
|
||||||
declaration.parameters
|
)
|
||||||
)
|
)
|
||||||
)
|
|
||||||
if not variant == 'VERTEX_AI':
|
if not variant == 'VERTEX_AI':
|
||||||
return declaration
|
return declaration
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user