Set TYPESAFE_API_KEY in your environment, then instantiate and use the client:
fromtypesafe_sdkimportChoice,TypeSafeClientwithTypeSafeClient()asclient:response=client.system_one(state={"document":"I was charged twice. Please fix this ASAP."},questions={"category":Choice(instructions="What is this ticket about?",criteria={"billing":None,"technical":None,"other":None},),},)print(response.choices["category"].choice)
learn what TypeSafe is, what it can do, and how to use it in TypeSafe docs.