Class ModerationModelCall

java.lang.Object
dev.langchain4j.test.service.ModelCall
dev.langchain4j.test.service.ModerationModelCall

@Experimental public final class ModerationModelCall extends ModelCall
A call to a moderation model made during an AI Service invocation (see ModelCall).
  • Method Details

    • request

      public ModerationRequest request()
      Returns the request sent to the moderation model.
      Specified by:
      request in class ModelCall
    • response

      public ModerationResponse response()
      Returns the response of the moderation model, or null if the call failed or had not ended when the invocation finished.
      Specified by:
      response in class ModelCall