インターフェース ChatMemory

すべての既知の実装クラス:
MessageWindowChatMemory

public interface ChatMemory
チャット会話のメモリを保存および管理するための契約。
導入:
1.0.0
作成者:
Christian Tzolov, Thomas Vitale
  • フィールドのサマリー

    フィールド
    修飾子と型
    フィールド
    説明
    static final StringSE
    コンテキストからチャットメモリの会話 ID を取得するためのキー。
    static final StringSE
  • 方法の概要

    修飾子と型
    メソッド
    説明
    void
    add(StringSE conversationId, ListSE<Message> messages)
    指定された会話のチャットメモリに指定されたメッセージを保存します。
    default void
    add(StringSE conversationId, Message message)
    指定された会話のチャットメモリに指定されたメッセージを保存します。
    void
    clear(StringSE conversationId)
    指定された会話のチャットメモリをクリアします。
    get(StringSE conversationId)
    指定された会話のチャットメモリ内のメッセージを取得します。
  • フィールドの詳細

  • メソッドの詳細

    • add

      default void add(StringSE conversationId, Message message)
      指定された会話のチャットメモリに指定されたメッセージを保存します。
    • add

      void add(StringSE conversationId, ListSE<Message> messages)
      指定された会話のチャットメモリに指定されたメッセージを保存します。
    • get

      ListSE<Message> get(StringSE conversationId)
      指定された会話のチャットメモリ内のメッセージを取得します。
    • clear

      void clear(StringSE conversationId)
      指定された会話のチャットメモリをクリアします。