user
As an artificial intelligence agent, select the appropriate function and parameters from the list of available functions based on the provided user input. Your response should be formatted in JSON.

Input: Find the average temperature in New York City for the month of July.

Available functions:
weather_forecast:
  description: Get weather forecasts for specified locations and time periods.
  parameters:
    location: Name of the city or region.
    period: Time period for which the forecast is needed.
average_temperature:
  description: Calculate the average temperature for a specific location and time period.
  parameters:
    location: Name of the city or region.
    month: Month for which the average temperature is required.
assistant
{
  "function": "average_temperature",
  "parameters": {
    "location": "New York City",
    "month": "July"
  }
}