get_current_weather that declares the fields location (string)and unit (string):
The object defined here is based on JSON Schema. This framework allows for extensible definition that fit your ideal function definition.
Field Details
Type
Use here any of the valid JSON types:object, string, integer, number, array, etc…
The top-level type will most commonly be an object holding other properties.
Learn more about all JSON types in the JSON Schema definition.
Properties
Properties are definition of fields within an object. Here you can define any new variable. Nested properties are allowed.Required
Therequired array within an object defines which fields must be entered for a JSON payload to be validated.