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.
This class is equal to the BedrockAnthropicMessageSanitizer class in the dev.langchain4j.model.bedrock.internal.sanitizer package.
When it is changed in one place, it should be changed in the other place as well.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List
<ChatMessage> sanitizeMessages
(List<ChatMessage> messages)
-
Constructor Details
-
MessageSanitizer
public MessageSanitizer()
-
-
Method Details
-
sanitizeMessages
-