nemo_gym.web.task_images
nemo_gym.web.task_images
Resolve benchmark reference images at the agent-side trust boundary.
Module Contents
Functions
Data
API
Resolve and validate one local reference below a read-only image root.
Return a model-safe URL for one task reference image.
Public WebArena-family JSONL records store relative image paths. The model endpoint cannot consume those controller paths directly, so the web agent reads them from an explicitly mounted, read-only root and emits a data URL. Existing data and HTTP(S) URLs pass through unchanged.
Local references are accepted only when they resolve inside image_root.
This prevents benchmark metadata from becoming an arbitrary file-read API.