A function that will take a response and return the, possibly modified, response or throw an exception if there are safety issues.
GoogleAISafetyError
A function that will take a response and return the, possibly modified, response or throw an exception if there are safety issues.