Package com.inductiveautomation.reporting.designer.workspace.data.sources.ai
updateData Jython editor — the
prompt assists and tool bundle that ScriptDataConfigPanel wires
into its embedded assistant.
Data flow
The host builds every type here from the same walk over the report's declared data sources,
stopping at the script currently being edited: ReportDataPromptAssist
surfaces the data dictionary keys already populated by report parameters and upstream
(non-script) data sources; and ReportDataTools gives the
agent read-only tools for upstream scripts' content and upstream queries content.
Runtime boundaries
A data dictionary key and a script's name are not interchangeable, and this package is
deliberate about keeping that distinction visible to the model: a report parameter or non-script
data source contributes exactly one known key, but a script can write any number of keys into
data at runtime under names that need not match its own. The only way to learn what a
given upstream script actually writes is ReportDataTools.getUpstreamScriptContent(String),
which returns that script's source for inspection.
Extension points
This package is scoped to the Script Data Source editor's assist wiring. Grounding for other
Reporting data-source editors, or AI helpers unrelated to the updateData script, belongs
in a package of its own.
-
ClassDescriptionOne key the script can read from its
datadictionary at runtime.PromptAssistthat surfaces the entries already present in thedatadictionary when a ReportingupdateDatascript runs — namely the report's parameters and the output keys of any data source declared upstream of the current script.Read-only report-data lookups the ReportingupdateDatascript agent uses to ground its suggestions in one report's actual configuration: the parameters already populated intodata, and the source of script data sources declared upstream of the script being edited.