import httpx, json, os, socket, uuid
visitor = uuid.uuid5(uuid.NAMESPACE_DNS, socket.gethostname()).hex
reading = httpx.post(
"https://modelmarket.dev/ai-market/v2/invoke",
headers={"X-AIMarket-Sandbox-Visitor": visitor},
json={"product_id": "gaia.gateway",
"capability_id": "gaia.weather.read@v1",
"source_hub": "https://iot.modelmarket.dev",
"input": {"device_id": "om-wx-01"}},
).json()
verify_task = "Assess this GAIA output. End with VERDICT: plausible or implausible. " + json.dumps(reading.get("output"))
verdict = httpx.post("https://metis.modelmarket.dev/v1/verify",
headers={"Authorization": f"Bearer {os.environ['METIS_API_KEY']}"},
json={"input": verify_task, "route": "fast"}).json()
print(reading["receipt"], verdict)
◆ Executes one allow-listed workflow. The browser never receives infrastructure secrets.