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.ModerationResponse.moderation()Returns the moderation result.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.default Response<Moderation> Moderates the given text.default Response<Moderation> ModerationModel.moderate(List<ChatMessage> messages) Moderates the given list of chat messages.Methods in dev.langchain4j.model.moderation with parameters of type ModerationModifier and TypeMethodDescriptionModerationResponse.Builder.moderation(Moderation moderation) Sets the moderation result.