Could you also annotate type so that its parameters are guaranteed to be number and not arbitrary types such as string?
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence