Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 922 Bytes

generative-ai.functiondeclaration.parameters.md

File metadata and controls

30 lines (18 loc) · 922 Bytes

Home > @google/generative-ai > FunctionDeclaration > parameters

FunctionDeclaration.parameters property

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;

Example

with 1 required and 1 optional parameter: type: OBJECT properties:

param1:

  type: STRING
param2:

 type: INTEGER
required:

  - param1