Class TitleGeneratorPlugin

java.lang.Object
com.axelor.ai.chat.plugin.TitleGeneratorPlugin
All Implemented Interfaces:
ChatPlugin

public class TitleGeneratorPlugin extends Object implements ChatPlugin
Titles a new chat once its first answer is in: a short model call over the user's message and the reply, run after the stream ends so the reader never waits on it, and announced to the chat's room like any other change.

The model is chosen when the title is written, not when the turn began: the reply may hold what the turn's tools read, and the model must be one that may receive it.

  • Method Details

    • priority

      public int priority()
      Description copied from interface: ChatPlugin
      Execution priority. Lower values run first. Default is 100.
      Specified by:
      priority in interface ChatPlugin
    • onComplete

      public void onComplete(ChatRequest request)
      Description copied from interface: ChatPlugin
      Called after the loop completes successfully.
      Specified by:
      onComplete in interface ChatPlugin