Package dev.langchain4j.model.mistralai
Class MistralAiModerationModel
java.lang.Object
dev.langchain4j.model.mistralai.MistralAiModerationModel
- All Implemented Interfaces:
ModerationModel
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionModerates the given text.moderate
(List<ChatMessage> messages) Moderates the given list of chat messages.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.langchain4j.model.moderation.ModerationModel
moderate, moderate, moderate
-
Constructor Details
-
MistralAiModerationModel
-
-
Method Details
-
moderate
Description copied from interface:ModerationModel
Moderates the given text.- Specified by:
moderate
in interfaceModerationModel
- Parameters:
text
- the text to moderate.- Returns:
- the moderation
Response
.
-
moderate
Description copied from interface:ModerationModel
Moderates the given list of chat messages.- Specified by:
moderate
in interfaceModerationModel
- Parameters:
messages
- the list of chat messages to moderate.- Returns:
- the moderation
Response
.
-