I have developed a custom GPT that provides definitions for any type of OpenAI functions calling. Simply enter your query, and it will generate the required function definition.
Get Weather Data Retrieval
{
"type": "function",
"function": {
"name": "retrieve_weather_data",
"description": "Retrieves detailed weather information for a specified location and date.",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The geographical location for which to retrieve weather data."
},
"date": {
"type": "string",
"format": "date",
"description": "The specific date for the weather data, in YYYY-MM-DD format."
},
"metrics": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of specific weather metrics to retrieve, e.g., temperature, humidity, wind speed."
}
},
"required": ["location", "date"]
}
}
}
You can access it here:
https://chat.openai.com/g/g-iQ0419UZo-function-calling-definition-generator.
For a demonstration of its functionality, refer to this chat sample:
https://chat.openai.com/share/a38045ae-8034-4f4b-b52e-be82714ca473