Class FieldContextPlugin

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

public class FieldContextPlugin extends Object implements 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 Details

    • FieldContextPlugin

      public FieldContextPlugin()
  • 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
    • onRequest

      public ChatRequest onRequest(ChatRequest request)
      Description copied from interface: ChatPlugin
      Called before the loop starts. May inspect or transform the request (e.g. resolve agent config, check rate limits).
      Specified by:
      onRequest in interface ChatPlugin