Package com.inductiveautomation.reporting.designer.workspace.data.sources.ai


@NullMarked package com.inductiveautomation.reporting.designer.workspace.data.sources.ai
AI assist support for the Reporting Script Data Source's 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.

  • Class
    Description
    One key the script can read from its data dictionary at runtime.
    PromptAssist that surfaces the entries already present in the data dictionary when a Reporting updateData script 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 Reporting updateData script agent uses to ground its suggestions in one report's actual configuration: the parameters already populated into data, and the source of script data sources declared upstream of the script being edited.