Uses of Class
dev.langchain4j.model.moderation.Moderation
Packages that use Moderation
Package
Description
-
Uses of Moderation in dev.langchain4j.model.mistralai
Methods in dev.langchain4j.model.mistralai that return types with arguments of type 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. -
Uses of Moderation in dev.langchain4j.model.openai
Methods in dev.langchain4j.model.openai that return types with arguments of type Moderation -
Uses of Moderation in dev.langchain4j.service
Methods in dev.langchain4j.service that return ModerationMethod parameters in dev.langchain4j.service with type arguments of type ModerationModifier and TypeMethodDescriptionstatic voidAiServices.verifyModerationIfNeeded(Future<Moderation> moderationFuture) Constructors in dev.langchain4j.service with parameters of type Moderation