Uses of Class
dev.langchain4j.model.moderation.Moderation
Package
Description
-
Uses of Moderation in dev.langchain4j.model.mistralai
-
Uses of Moderation in dev.langchain4j.model.moderation
Modifier and TypeMethodDescriptionstatic Moderation
Constructs a Moderation object that is flagged.static Moderation
Moderation.notFlagged()
Constructs a Moderation object that is not flagged.Modifier 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
-
Uses of Moderation in dev.langchain4j.service
Modifier and TypeMethodDescriptionstatic void
AiServices.verifyModerationIfNeeded
(Future<Moderation> moderationFuture)