domtgr
08/08/2025, 11:49 PMAI Evy
08/08/2025, 11:49 PMAI Evy
08/08/2025, 11:50 PMjson
{
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "The city of the weather"
}
},
"required": [
"city"
]
}
[(1) ]() , [(2) ]()
2. Key Requirements [(1) ]() [(2) ]() :
- Parameters are defined in the "Define parameters" step when creating your custom function
- You must include "type": "object" at the top level of the JSON schema
- Use the properties field to define each parameter with its type and description
- Use the required array to specify which parameters are mandatory
3. Additional Guidance :
- Refer to [OpenAI's Function Calling Guide]() for more detailed guidance
- You can also check the [Function Calling Tutorial]() for additional examples
If you're having trouble saving the custom function, it's likely because the parameters are not valid - the most common mistake is forgetting to add "type": "object" to the top level of the JSON schema .AI Evy
08/08/2025, 11:50 PMAI Evy
08/08/2025, 11:50 PM