enzo_58304
05/18/2025, 11:37 AMAI Evy
05/18/2025, 11:37 AMAI Evy
05/18/2025, 11:38 AM"type": "object" at the top level of the schema [(1) ]() . Here's an example of the correct format:
javascript
{
"type": "object",
"properties": {
"maxLength": {
"type": "string",
"description": "The maximum length"
}
},
"required": ["maxLength"]
}
, [(2) ]()
One common mistake noted in the documentation is "not adding "type": "object" to the top level of the JSON schema" [(1) ]() . The schema should follow the JSON schema format used for function calling [(2) ]() .
For troubleshooting:
1. Ensure you have "type": "object" at the top level
2. Define your properties within the "properties" object
3. List any required parameters in the "required" array
4. Follow the examples provided in the custom function documentation [(1) ]()AI Evy
05/18/2025, 11:38 AMAI Evy
05/18/2025, 11:38 AMenzo_58304
05/18/2025, 11:39 AMAI Evy
05/18/2025, 11:39 AMAI Evy
05/18/2025, 11:39 AMjavascript
{
"type": "object",
"properties": {
"maxLength": {
"type": "number",
"description": "The maximum length limit",
"maximum": 2000
}
},
"required": ["maxLength"]
}
[(1) ]() , [(2) ]()
Make sure you:
1. Include "type": "object" at the top level [(1) ]()
2. Define the parameter under "properties"
3. Include it in the "required" array if the parameter is mandatory
If you still encounter issues saving the custom function, verify that the JSON schema format is valid [(3) ]() .AI Evy
05/18/2025, 11:39 AMAI Evy
05/18/2025, 11:39 AMenzo_58304
05/18/2025, 11:44 AMAI Evy
05/18/2025, 11:44 AMAI Evy
05/18/2025, 11:45 AMjavascript
{
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "Die Nachricht über die Bearbeitungszeit"
}
},
"required": ["message"]
}
[(1) ]() , [(2) ]()
Wichtige Hinweise:
- Das Schema muss "type": "object" auf der obersten Ebene haben [(1) ]()
- Die Parameter müssen unter "properties" definiert werden
- Fügen Sie erforderliche Parameter zum "required" Array hinzuAI Evy
05/18/2025, 11:45 AMAI Evy
05/18/2025, 11:45 AM