• Add ChatHistory interface and in-memory token bounded implementation: TokenCountSlidingWindowChatHistory.java
  • Fix a bug with AssistantMessage hash/equality implementation.
  • Add HistoryChatClient unit tests.
  • Implement a ChatClient decorator with history support.
  • expose PromptHistoryAgumenter hook with default implementation.
  • Special handling of System messages.

Tested with OpenAI only.

Comment From: tzolov

Replaced by #634