Package com.axelor.ai.chat.plugin
Class FieldContextPlugin
java.lang.Object
com.axelor.ai.chat.plugin.FieldContextPlugin
- All Implemented Interfaces:
ChatPlugin
Names the fields a user message was sent with. Each field travels as one of the message's
data-field parts and is saved with it, so every turn re-resolves the parts of the whole history
for the reader and adds a trusted line after each, which nothing stores.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiononRequest(ChatRequest request) Called before the loop starts.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, onComplete, onError, onMessage
-
Constructor Details
-
FieldContextPlugin
public FieldContextPlugin()
-
-
Method Details
-
priority
public int priority()Description copied from interface:ChatPluginExecution priority. Lower values run first. Default is 100.- Specified by:
priorityin interfaceChatPlugin
-
onRequest
Description copied from interface:ChatPluginCalled before the loop starts. May inspect or transform the request (e.g. resolve agent config, check rate limits).- Specified by:
onRequestin interfaceChatPlugin
-