Uses of Class
dev.langchain4j.model.moderation.Moderation
Packages that use Moderation
-
Uses of Moderation in dev.langchain4j.model.moderation
Methods in dev.langchain4j.model.moderation that return ModerationModifier and TypeMethodDescriptionstatic ModerationConstructs a Moderation object that is flagged.static ModerationModeration.notFlagged()Constructs a Moderation object that is not flagged.Methods in dev.langchain4j.model.moderation that return types with arguments of type ModerationModifier and TypeMethodDescriptionDisabledModerationModel.moderate(ChatMessage message) DisabledModerationModel.moderate(TextSegment textSegment) DisabledModerationModel.moderate(List<ChatMessage> messages) default Response<Moderation> ModerationModel.moderate(ChatMessage message) Moderates the given chat message.default Response<Moderation> ModerationModel.moderate(TextSegment textSegment) Moderates the given text segment.default Response<Moderation> Moderates the given prompt.Moderates the given text.ModerationModel.moderate(List<ChatMessage> messages) Moderates the given list of chat messages.