Interface MessageWindowChatMemoryConfiguration

All Known Implementing Classes:
MessageWindowChatMemoryConfigurationProperties

public interface MessageWindowChatMemoryConfiguration
Configuration for MessageWindowChatMemory.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Default number of max messages.
  • Method Summary

    Modifier and Type
    Method
    Description
    default @NonNull Integer
     
  • Field Details

    • DEFAULT_MAX_MESSAGES

      static final int DEFAULT_MAX_MESSAGES
      Default number of max messages.
      See Also:
  • Method Details

    • getMaxMessages

      @NonNull default @NonNull Integer getMaxMessages()
      Returns:
      The maximum number of messages to retain. If there isn't enough space for a new message, the oldest one is evicted.