Function Calling parameter types

Is this with Pydantic 2.0? It didn’t work with 1.10.x
The schema() produces “$ref” references which refer to a definitions field in the schema and I think the API doesn’t understand that.