June 17, 2026
9 min read
Architecting Multimodal AI Agents for AR/XR: A Developer's Deep Dive into NVIDIA's XR AI Public Beta

Key Takeaways
- •System Architecture & Data Flow
- •Visual Understanding & RAG via Metropolis VSS and NeMo Retriever
- •1. Visual Retrieval with Metropolis VSS
Agentic workflows are transitioning from screen-bound chatbots into the physical environment. Whether troubleshooting machinery on a factory floor or conducting delicate surgeries, game engine developers and XR architects are tasked with building the spatial interfaces that connect human workers with intelligent digital assistants. The release of the NVIDIA XR AI developer library in public beta marks a major milestone for this shift, providing an integration framework to build multimodal AI agents for AR glasses and XR headsets.
By linking real-time device sensor streams with high-performance edge or cloud-based neural engines, XR AI enables developers to build contextually aware, physically grounded agents. This guide outlines the system architecture of the NVIDIA XR AI framework, details its core ingestion and retrieval pipelines, and demonstrates how to implement a client-side frame and pose streaming loop within Unity.
System Architecture & Data Flow
Architecting an agent that perceives, reasons, and acts in real time requires tight synchronization between local XR hardware, network streams, and remote AI services. The NVIDIA XR AI framework organizes these components into a unified pipeline.
The diagram below illustrates the ingestion-to-activation flow:
The system operates across four core capability layers:
1. Multimodal Ingestion: The developer library ingests raw inputs from AR glasses (such as Meta, Rokid, and VITURE) including video frames, microphone streams, spatial depth maps, and head-pose telemetry.
2. Specialized Tool Connection: Rather than requiring agents to run inference on raw data directly, XR AI hooks into external services. Visual inputs are passed to NVIDIA Metropolis and NVIDIA Metropolis for video search and summarization (VSS) for video understanding. Knowledge queries route through NVIDIA NeMo Retriever to retrieve enterprise documentation.
3. Reasoning Engine: Complex decision-making is routed to compatible foundation models, specifically NVIDIA Nemotron reasoning models and NVIDIA Cosmos Reason, which evaluate spatial queries and plan actions.
4. Agent Orchestration: The NVIDIA NeMo Agent Toolkit coordinates tool use, resolves multi-agent conflicts, and controls reasoning state-machines. The runtime runs on accelerated computing platforms, ranging from local workstation nodes powered by NVIDIA RTX PRO GPUs to datacenter-scale clusters on NVIDIA DGX Station and NVIDIA DGX Spark environments.
Visual Understanding & RAG via Metropolis VSS and NeMo Retriever
A primary challenge of spatial agents is the "temporal search" problem: an agent cannot assist with a task unless it remembers what happened seconds or minutes ago. NVIDIA XR AI addresses this by coupling the ingestion pipeline with NVIDIA Metropolis VSS (Video Search and Summarization) and NeMo Retriever.
1. Visual Retrieval with Metropolis VSS
Traditional computer vision models perform frame-by-frame object classification (e.g., detecting a wrench). In contrast, Metropolis VSS indexes video streams temporally, allowing agents to understand chronological workflows. For example, in Siemens' manufacturing research, an engineer wearing AR glasses can troubleshoot a programmable logic controller (PLC) issue. Instead of the agent simply naming the components in view, Metropolis VSS analyzes the historical video buffer to verify if the engineer completed the preceding diagnostic step correctly.
2. Enterprise Retrieval with NeMo Retriever
To provide useful answers, the agent needs access to dense domain knowledge. When the engineer asks how to resolve a specific PLC error, the NeMo Agent Toolkit coordinates a RAG query through NeMo Retriever. NeMo Retriever runs semantically indexed queries against company databases, technical manuals, and CAD digital twins, extracting the exact wiring diagram required. The agent then matches this document data with the live spatial coordinates of the physical machine.
Occlusion-Aware Spatial UI Design
In XR development, HUD design is as critical as the backend logic. In surgical settings, such as research conducted at the University of Pittsburgh Medical Center (UPMC) Surreality Lab, rendering information in the surgeon's direct line of sight can be dangerous. The Surreality Lab pipeline uses NVIDIA XR AI running on an NVIDIA DGX Station to deliver context-aware assistance while preventing visual occlusion.
Spatial Rendering Rules
When designing UIs for agent-assisted tasks, developers should implement three rules:
- The Foveated Safe Zone: Reserve the central 10–15 degrees of the user's field of view (FOV) for the physical task. Place text panels, tool lists, and status indicators in the peripheral regions.
- Semantic Occlusion Mapping: The agent must determine what not to occlude. For example, when Metropolis identifies a critical region (like a surgical incision or a high-voltage terminal), the client application must offset the spatial UI anchors to remain clear of those pixel clusters.
- Transient Overlays: Information should only render in response to specific triggers (voice requests, error detection, or workflow transition points) and fade out automatically when the user resumes manual work.
Implementing the Ingestion Loop in Unity
To connect a Unity client application to the NVIDIA XR AI gateway, you must implement a sensor ingestion loop. This script captures video frames from the headset’s front-facing camera, packages them alongside the head-pose transform matrices, and pushes them to the backend endpoint.
Here is a clean implementation of the client-side bridge:
Multi-Agent Orchestration & Workflow Logging
Beyond local diagnostics, spatial agents often coordinate complex multi-system operations. In laboratory research contexts, AutoBio’s LabOS system leverages NVIDIA XR AI on smart safety glasses (such as VITURE Helix, Meta, and Rokid) to manage scientific workflows.
At Stanford University and Princeton University, researchers use LabOS to guide CRISPR gene-editing steps. In this scenario, the agent acts as an orchestrator that:
- Perceives: Identifies the specific sample vials and CRISPR reagents in the physical workstation via the headset camera.
- Accesses Knowledge: Retrieves the experiment protocol schema using NeMo Retriever.
- Coordinates Action: Instructs robotic arm systems to prepare samples, while visually guiding the human researcher to perform manual steps in sequence.
- Maintains Records: Automatically logs a structured, reproducible audit trail of the physical steps, timestamps, and camera frames.
This collaborative structure—linking humans, robot networks, and databases—is managed through the NeMo Agent Toolkit, which ensures that each entity remains synchronized throughout the protocol execution.
Infrastructure Scaling: Cloud vs. Local Workstations
Deploying spatial agents requires balancing computing power and network latency. Because speech recognition, image processing, and reasoning inference must occur in the flow of work, latency must remain minimal to prevent motion sickness and visual desynchronization.
XR AI supports three primary deployment configurations:
| Infrastructure | Environment | Primary Use Case | Key Advantage |
|---|---|---|---|
| NVIDIA RTX PRO Systems | Local Workstation | Single-user local deployments (e.g., surgical theater, small lab) | Sub-millisecond local network latency; high data privacy |
| NVIDIA DGX Station | On-Premise Server | Multi-user local facilities (e.g., hospital building, research lab) | Shared compute pool; high throughput for multiple HMD streams |
| NVIDIA DGX Spark | Cloud Infrastructure | Enterprise-wide deployments (e.g., distributed factory floors, digital twins) | Massive model capacity; easy scaling across multiple locations |
For applications requiring real-time visual tracking, developers can offload video processing (Metropolis VSS) to local RTX PRO workstations, while routing complex, non-time-critical database searches (NeMo Retriever) to DGX Spark cloud clusters.
Next Steps for XR Developers
To begin building with the platform, developers can access the public beta libraries, sample code, and documentation via the NVIDIA XR developer portal. As smart safety glasses like the VITURE Helix make spatial hardware more accessible in industrial and clinical environments, the demand for developers who can bridge spatial computing with agentic LLM systems will continue to rise.