Interface MemoryMessagePicker

All Known Implementing Classes:
BufferWindowMemoryMessagePicker

public interface MemoryMessagePicker
Since the token we input to LLM is limited, the history messages we add into gpt request is also limited.

This interface defines the behavior to pick up limited history memory.

Author:
zhangxiaojia002
  • Method Details

    • pickMemoryMessage

      List<BaseMessage> pickMemoryMessage(List<BaseMessage> memoryMessages)
      pick up memory messages as needed
      Parameters:
      memoryMessages - all history memory messages
      Returns:
      memory messages picked