The syntax is incorrect. A mandatory (at least telling AI it is mandatory) tool is an object in an object. (single element dictionary with a dictionary as the value)
tool_choice
string or object
Optional
Controls which (if any) function is called by the model. none means the model will not call a function and instead generates a message. auto means the model can pick between generating a message or calling a function. Specifying a particular function via