How nvidia/xr-ai works
XR AI is a multimodal, real-time conversational AI platform for XR. A participant connects through a supported client; media reaches the shared hub, agent runtimes use models and tools to interpret it, and responses return as audio or data. The repository also includes capture-and-guidance, monitoring, routed-conversation, and CloudXR scene-manipulation samples. This map combines README-level product relationships with source-index references; unsampled subsystems are represented only at the level documented in the README.
Main entry points: _openai_compat.py Model clients · runtime.py Agent runtime · _pipeline.py Voice pipeline · device_io_hub Device I/O hub
Components 25
XR clients
- Platform clients
client-samples - StreamKit sessions
client-samples
Media and services
- Device I/O hub
services/device-io-hub/device_io_hub - AI services
services
Agent SDK
- Hub SDK
agent-sdk/xr-ai-hub/xr_ai_hub/_processor.py - Model clients
agent-sdk/xr-ai-models/xr_ai_models/_openai_compat.py - Model configuration
agent-sdk/xr-ai-models/xr_ai_models/_config.py - Agent runtime
agent-sdk/xr-ai-runtime/xr_ai_runtime/runtime.py - Voice pipeline
agent-sdk/xr-ai-voice/xr_ai_voice/_pipeline.py - Voice I/O
agent-sdk/xr-ai-voice/xr_ai_voice/_processors/io.py - Hub voice transport
agent-sdk/xr-ai-voice/xr_ai_voice/_transport.py - Agent tools
agent-sdk/xr-ai-tools/xr_ai_tools/tools.py - Current-frame capture
agent-sdk/xr-ai-tools/xr_ai_tools/current_frame.py - Image references
agent-sdk/xr-ai-tools/xr_ai_tools/image.py - Vision tools
agent-sdk/xr-ai-tools/xr_ai_tools/vision.py - Conversation context
agent-sdk/xr-ai-conversation/xr_ai_conversation/_context.py - Conversation routing
agent-sdk/xr-ai-routing/xr_ai_routing/_router.py
Agent samples
- Procedure capture and guides
agent-samples/procedure-capture-guide/worker/procedure_capture_guide_worker/capture/capturing.py - Instrument monitoring
agent-samples/lab-instrument-monitoring/worker/lab_instrument_monitoring_worker/instrument_monitor.py - Guided tea workflow
agent-samples/tea-making-sample/worker/tea_making_worker/workflow.py - Conversation sample
agent-samples/conversation-example/worker/conversation_example_worker/app.py - XR render agent
agent-samples/xr-render-demo/worker/xr_render_demo_worker/supervisor.py
CloudXR rendering
- Scene service
agent-samples/xr-render-demo/scene/xr_render_scene/service.py - CloudXR runtime
services/cloudxr-runtime/cloudxr_runtime/_service.py
Other components
- XR participant
Connections 24
- XR participant → Platform clients: uses
README.md - Platform clients → StreamKit sessions: streams media
README.md - StreamKit sessions → Device I/O hub: connects media
README.md - Device I/O hub → Hub SDK: exposes media
- Hub SDK → Agent runtime: feeds agents
- Agent runtime → Voice pipeline: runs agents
- Voice pipeline → Voice I/O: assembles
agent-sdk/xr-ai-voice/xr_ai_voice/_pipeline.py - Voice pipeline → Hub voice transport: uses transport
agent-sdk/xr-ai-voice/xr_ai_voice/_pipeline.py - Hub voice transport → Device I/O hub: carries audio
- Agent runtime → Agent tools: enables tools
- Agent tools → Current-frame capture: provides capture
agent-sdk/xr-ai-tools/xr_ai_tools/current_frame.py - Current-frame capture → Image references: stores images
agent-sdk/xr-ai-tools/xr_ai_tools/current_frame.py - Vision tools → Image references: resolves images
agent-sdk/xr-ai-tools/xr_ai_tools/vision.py - Vision tools → Model clients: calls VLM
agent-sdk/xr-ai-tools/xr_ai_tools/vision.py - Model configuration → Model clients: configures clients
agent-sdk/xr-ai-models/xr_ai_models/__init__.py - Model clients → AI services: requests inference
- Conversation sample → Conversation routing: uses routing
agent-samples/conversation-example/worker/conversation_example_worker/app.py - Conversation sample → Conversation context: uses context
- Procedure capture and guides → Hub SDK: uses hub SDK
- Procedure capture and guides → Model clients: uses models
- Instrument monitoring → Model clients: uses models
- Guided tea workflow → Model clients: uses models
- XR render agent → Scene service: manipulates scene
README.md - Scene service → CloudXR runtime: renders remotely