Class QueryBrowserReplyRenderer
java.lang.Object
com.inductiveautomation.ignition.designer.querybrowser.ai.QueryBrowserReplyRenderer
- All Implemented Interfaces:
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceWrite-back callbacks invoked when the user clicks an Apply button. -
Constructor Summary
ConstructorsConstructorDescriptionQueryBrowserReplyRenderer(QueryBrowserReplyRenderer.ApplyActions actions, Runnable closeAfterApplyAndRun) -
Method Summary
Modifier and TypeMethodDescriptionrenderStatement(String description) Render an informational reply with no apply-able actions.renderSuggestion(String description, String value) Render an apply-able suggestion.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReplyRenderer
getSuggestionFailure
-
Constructor Details
-
QueryBrowserReplyRenderer
public QueryBrowserReplyRenderer(QueryBrowserReplyRenderer.ApplyActions actions, Runnable closeAfterApplyAndRun)
-
-
Method Details
-
renderStatement
Description copied from interface:ReplyRendererRender an informational reply with no apply-able actions. The returnedReplyViewis expected to carry an empty actions list — the panel will read it as aSTATEMENTcard.- Specified by:
renderStatementin interfaceReplyRenderer- Parameters:
description- prose explanation from the model, supporting markdown.
-
renderSuggestion
Description copied from interface:ReplyRendererRender an apply-able suggestion. Thevalueis the literal content the user can write back to the host editor;descriptionis the prose framing. The returned view typically carries one or more apply buttons (Insert, Replace, …).- Specified by:
renderSuggestionin interfaceReplyRenderer- Parameters:
description- prose explanation from the model, supporting markdown.value- the literal content the apply buttons hand back to the host editor.
-