Interface IPromptingMessageExtender


public interface IPromptingMessageExtender
Interface to extend a prompting message and e.g. add some more context information to the prompting. THe interface is used by default implementation PromptingBase and all its extensions.

Example: function that collects additional information for a prompting text e.g. from a RAG database. The additional information is added by the extender using IPrompting.addMessage(PromptingMessage).
  • Method Details

    • prepareNewMessage

      void prepareNewMessage(IPrompting prompting, String text)