Class QueryBrowserReplyRenderer

java.lang.Object
com.inductiveautomation.ignition.designer.querybrowser.ai.QueryBrowserReplyRenderer
All Implemented Interfaces:
ReplyRenderer

public final class QueryBrowserReplyRenderer extends Object implements ReplyRenderer
ReplyRenderer for QueryBrowserAgent. The harness delivers replies as ResponseEnvelope — a Statement envelope (clarifying question or explanation) renders as prose only; a Suggestion envelope's value field is the literal proposed SQL, which this renderer surfaces with Apply and Apply & Run buttons that write the SQL back to the host editor.
  • Constructor Details

  • Method Details

    • renderStatement

      public ReplyView renderStatement(String description)
      Description copied from interface: ReplyRenderer
      Render an informational reply with no apply-able actions. The returned ReplyView is expected to carry an empty actions list — the panel will read it as a STATEMENT card.
      Specified by:
      renderStatement in interface ReplyRenderer
      Parameters:
      description - prose explanation from the model, supporting markdown.
    • renderSuggestion

      public ReplyView renderSuggestion(String description, String value)
      Description copied from interface: ReplyRenderer
      Render an apply-able suggestion. The value is the literal content the user can write back to the host editor; description is the prose framing. The returned view typically carries one or more apply buttons (Insert, Replace, …).
      Specified by:
      renderSuggestion in interface ReplyRenderer
      Parameters:
      description - prose explanation from the model, supporting markdown.
      value - the literal content the apply buttons hand back to the host editor.