Class BedrockAnthropicMessageSanitizer
java.lang.Object
dev.langchain4j.model.bedrock.internal.sanitizer.BedrockAnthropicMessageSanitizer
Sanitizes the messages to conform to the format expected by the Anthropic API.
This class is equal to the MessageSanitizer class in the dev.langchain4j.model.anthropic.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
-
BedrockAnthropicMessageSanitizer
public BedrockAnthropicMessageSanitizer()
-
-
Method Details
-
sanitizeMessages
-