Package com.axelor.ai.chat.plugin
Class TitleGeneratorPlugin
java.lang.Object
com.axelor.ai.chat.plugin.TitleGeneratorPlugin
- All Implemented Interfaces:
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 Summary
Modifier and TypeMethodDescriptionvoidonComplete(ChatRequest request) Called after the loop completes successfully.intpriority()Execution priority.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.axelor.ai.chat.ChatPlugin
decorateProvider, decorateToolExecutor, decorateWriter, estimateInjectedTokens, onError, onMessage, onRequest
-
Method Details
-
priority
public int priority()Description copied from interface:ChatPluginExecution priority. Lower values run first. Default is 100.- Specified by:
priorityin interfaceChatPlugin
-
onComplete
Description copied from interface:ChatPluginCalled after the loop completes successfully.- Specified by:
onCompletein interfaceChatPlugin
-