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 Moderation
Constructs a Moderation object that is flagged.static Moderation
Moderation.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
Method parameters in dev.langchain4j.service with type arguments of type ModerationModifier and TypeMethodDescriptionstatic void
AiServices.verifyModerationIfNeeded
(Future<Moderation> moderationFuture)