{
"type": "function",
"function": {
"name": "debug_function",
"description": "Used to test the Assistant's ability to understand parameters.",
"parameters": {
"type": "object",
"properties": {
"MyCustomObject": {
"type": "object",
"properties": {
"test_str": {"type":"string"},
"test_int": {"type":"integer"}
},
"additionalProperties": {
"type": "string"
},
"minProperties": 1,
"description": "An object with unknown keys. Each key-value pair represents an item and its quantity."
}
},
"required": ["MyCustomObject"]
}
}
}
When prompting the Assistant to call the debug_function
with something like: Please call your debug function.
, it will never ask you for a value for MyCustomObject
. Even if you specifically prompt it: Please run your debug function. Ask me for any parameters that you require.
, it will execute the function with no arguments, and even respond: Assistant: The debug function has been executed successfully. There are no parameters required for this function. If you have any other requests or need assistance with specific tasks, please let me know!
I thought perhaps that minProperties
or additionalProperties
might not be supported and is breaking the Assistant, but no matter what schema I add or remove, it won’t see the object as a required parameter.