Home > @google/generative-ai > FunctionDeclaration > parameters
Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset.
Signature:
parameters?: FunctionDeclarationSchema;
with 1 required and 1 optional parameter: type: OBJECT properties:
param1:
type: STRING
param2:
type: INTEGER
required:
- param1