"""Browser runtime configuration for generated HTML artifacts.""" from pydantic import BaseModel, Field DEFAULT_HTML_MAP_TILE_URL = "https://mt0.google.com/vt/lyrs=m&hl=zh-CN&x={x}&y={y}&z={z}" class HtmlRuntimeConfig(BaseModel): """Resources used by standalone HTML pages generated in the sandbox.""" base_url: str = Field( default="http://localhost:8001/api/public/html-runtime", min_length=1, description="Browser-accessible Gateway base URL for generated HTML runtime files", ) map_tile_url: str = Field( default=DEFAULT_HTML_MAP_TILE_URL, min_length=1, description="Leaflet tile URL template used when HTML maps use the map-webpage engine", )