Class MessageSanitizer

java.lang.Object
dev.langchain4j.model.anthropic.internal.sanitizer.MessageSanitizer

public class MessageSanitizer extends Object
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 Details

    • MessageSanitizer

      public MessageSanitizer()
  • Method Details