DOE OSTI · 3520546
Dual Context: Leveraging Structured Application Context for Code Generation and Runtime Feature Activation via Chat Interfaces
Abstract
Integrating artificial intelligence (AI) capabilities into software applications typically involves two common paths. For developers, AI assists in generating and documenting source code and other related software engineering efforts. For users, AI assists them through question-and-answer exchanges via chatbots. Both approaches have their value, but neither effectively leverages the modularity of component-based architectures that modern web application frameworks offer. We implement a proof of concept within a centralized suite of applications used for the Atmospheric Radiation Measurement (ARM) Data Center Operational Tools, where we introduce a third integration path through the ARM Context Engine (ACE). ACE is a context driven system that uses structured contextual specifications to enable Large Language Models (LLMs) to render interactive and feature-rich user interface (UI) components directly within chat responses, alongside or in place of conventional text outputs. These specifications serve two important purposes across what we call code context and UI context. Code context provides AI-assisted development tools with structured application knowledge beyond raw code, including component relationships, architectural patterns and schematic information, enabling the generation of consistent, well-structured code. UI context defines the rules for enabling and rendering component features at runtime based on the user's natural language input, allowing end users to activate capabilities such as data export, filtering, and pagination within chat responses, without requiring code changes or redeployment. We demonstrate, through a comparative evaluation against general-purpose AI chatbots, that context-driven component rendering provides interactive capabilities that text-based responses cannot replicate, including deterministic component behavior, application-consistent design language, and on-demand feature activation. A development effort comparison further shows that features that traditionally require multi-step development cycles can be activated with a single naturallanguage request. In this ongoing work, we present ACE as an emerging approach to AI integration that positions modular, well-documented software architecture as the foundation for AI-ready applications. ACE treats context as a shared resource across both development and user-facing AI, bringing cohesion to conventionally disconnected efforts, bridging developer tooling and end-user capabilities within a single framework.
Keep this discovery
Explore connections, maps & timelines
Tadimeti, Vijay [ORNL], Enright, Eric [ORNL] (ORCID:0000000175217499), Schneider, James [ORNL] (ORCID:0009000228880639), Dumas, Kyle [ORNL] (ORCID:0000000167662816), Maddox, Noah [ORNL]. 2026-07-01. Dual Context: Leveraging Structured Application Context for Code Generation and Runtime Feature Activation via Chat Interfaces. https://doi.org/10.1109/sera69989.2026.11618637
Cite the original work for its findings. Save a collection to share your selection of sources.