Relative Content

Tag Archive for pythontypesjsonschemaopenai-apipyright

If `Union` has `UnionType`, what’s the `UnionType` equivalent of `Literal`?

I’m trying to create a function that goes through Unions and Literals and extracts their possible values. I’m trying to do that because I want to create a function that takes in a function and describes that passed-in function’s parameters in the json-schema format (see https://platform.openai.com/docs/guides/function-calling).