Class MessageSanitizer
java.lang.Object
dev.langchain4j.model.anthropic.internal.sanitizer.MessageSanitizer
Sanitizes the messages to conform to the format expected by the Anthropic API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List
<ChatMessage> sanitizeMessages
(List<ChatMessage> messages)
-
Constructor Details
-
MessageSanitizer
public MessageSanitizer()
-
-
Method Details
-
sanitizeMessages
-