interface GoogleAISafetyHandler {
    handle(response: GoogleLLMResponse): GoogleLLMResponse;
}

Implemented by

Methods

Methods

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

    Parameters

    Returns GoogleLLMResponse

    GoogleAISafetyError