Package com.inductiveautomation.ignition.designer.ai.embed
@NullMarked
package com.inductiveautomation.ignition.designer.ai.embed
-
ClassDescriptionOne reference the user inserted into the prompt via a
PromptAssist.Option.Insert, resolved at submit time.Host-side strategies an embedded AI assistant uses to talk to its surrounding UI: how to turn each user submission into a message body and how to render replies into the suggestion card.Fluent builder for anEmbedHostwhose composer and renderer are host-specific.Assembles text in the canonicalKey: valueshape — onekey: valueline per field in the order it is added.PromptAssistthat exposes the project's file-resource tree through the@-popup.Base class forPromptAssists that browse aScriptLibrary— a dotted-path tree of script symbols — through the@-popup.Pluggable source of in-prompt assistance — the rows that appear when the user triggers the autocomplete popup in the embedded assistant's prompt area.One row in the popup.A "folder-like" row: selecting it rewrites the trigger span tonextQueryand asks every assist for fresh options.A terminal row: selecting it splices@<id>:<path>— built by the framework from the owning assist'sPromptAssist.id()and this row'sPromptAssist.Option.Insert.path— into the prompt at the trigger span, closes the popup, and registers aContextReferencethe framework resolves at submit time.A row that is both confirmable and expandable.Captures host-UI state at submit time and turns it into the host-context blocks that lead the message body sent to the assistant's harness.The resolved payload of one prompt reference — what aPromptAssist.Option.Insert's supplier produces at submit time and the framework attaches to the outbound message.A text-modality body — the wire form is the exact text embedded between<reference>tags.ConcreteReferenceBody.TextBodythat carries only its rendered wire text.Renders one model reply into a Swing view with optional apply actions.Builds theReplyRendererused for one assist session.The Swing view aReplyRendererproduces from one model reply.Structured reply shape produced by inline assist sessions.Prose-only informational reply.Apply-able reply — prose plus a host-interpreted payload.LibraryPromptAssistover Ignition'ssystem.*scripting library, letting the user drop a reference to a system function, constant, or whole package into an AI prompt.PromptAssistthat lets the user browse the Designer's tag system through the @-popup.Configures provider visibility for aTagPromptAssist, following theTagBrowserTree.Builderidiom:TagPromptAssist.Builder.withProviders(String...)restricts to an allow-list,TagPromptAssist.Builder.withoutProviders(String...)builds a deny-list, and with neither every provider is visible.LibraryPromptAssistover the project's user-defined script library — the Jython modules authored under "Project Library" — letting the user drop a reference to a symbol they authored into an AI prompt.