Class OpcPromptContextLoader
java.lang.Object
com.inductiveautomation.ignition.designer.ai.opc.OpcPromptContextLoader
Builds bounded OPC source context for Designer AI prompt composers.
The loader only browses structural OPC metadata from explicit prompt references. It does not describe nodes, read live values, search across servers, or browse beyond selected roots.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreates an OPC context loader backed by a caller-supplied browser.OpcPromptContextLoader(DesignerContext context) Creates an OPC context loader backed by the Designer's configured OPC connections. -
Method Summary
Modifier and TypeMethodDescriptionload(List<ContextReference> references) Loads bounded prompt context for explicit OPC references.
-
Constructor Details
-
OpcPromptContextLoader
Creates an OPC context loader backed by the Designer's configured OPC connections.- Parameters:
context- the Designer context used to browse OPC metadata.
-
OpcPromptContextLoader
Creates an OPC context loader backed by a caller-supplied browser.- Parameters:
browser- the browser used to resolve selected OPC references.
-
-
Method Details
-
load
Loads bounded prompt context for explicit OPC references.Non-OPC references in the list are ignored, so hosts can pass their full inserted-reference list; OPC references are identified by an
OpcReferenceBodybody.- Parameters:
references- the inserted prompt references from the host prompt.- Returns:
- an
<opcSourceContext>block, or an empty string when the list carries no OPC references.
-