API function calling required parameters not met

I have this function in my tools. When I ask to show me a property without specifying which one it returns property_ids : but I would need the model to ask questions about the property the client wants to see. Here is the function:
{
type: “function”,
function: {
name: “show_property”,
description: “When the user wants to see one or more properties.”,
parameters: {
type: “object”,
properties: {
property_ids: {
“type”: “array”,
“items”: {
“type”: “string”
}
},
},
required: [“property_ids”]
}
}

I’ve created a similar post: System Role Messages to Assistant for Function Calling

There is no system role in Assistant API Message Object. So, provide this in your additional Instruction of Message ‘Run’:

Don’t make assumptions about what values to plug into functions. Ask for clarification if a user request is ambiguous.

Maybe this will work.

1 Like