{ "_meta": { "description": "D6 fixtures for agno / gen-ui-open-advanced — delegates to gen-ui-open.json (same file, shared fixtures)", "note": "The D5 script registers fixtureFile='gen-ui-open.json' for gen-ui-open-advanced, so aimock loads gen-ui-open.json for both features. This file exists for completeness but the canonical fixtures live in gen-ui-open.json. Sandboxed-UI jsFunctions copied verbatim from langgraph-typescript (canonical) so keypad+= and the evaluate button wire to the host bridge.", "created": "2026-05-22" }, "fixtures": [ { "_comment": "gen-ui-open-advanced: Calculator pill — generateSandboxedUi with jsFunctions wiring for evaluateExpression host callback.", "match": { "userMessage": "Calculator (calls evaluateExpression)", "hasToolResult": false, "context": "agno" }, "response": { "toolCalls": [ { "id": "call_d6_agno_gen_ui_open_adv_calc_001", "name": "generateSandboxedUi", "arguments": "{\"initialHeight\":480,\"placeholderMessages\":[\"Composing calculator UI…\"],\"css\":\"body{margin:0;font-family:system-ui;background:#0f172a;color:#e2e8f0}.wrap{padding:16px;max-width:240px}.display{background:#1e293b;padding:8px;border-radius:8px;margin-bottom:8px;font-family:monospace;text-align:right}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}button{padding:10px;background:#334155;border:0;color:#e2e8f0;border-radius:6px;font-size:14px}\",\"html\":\"
0
\",\"jsFunctions\":\"(function(){var expr='';var display=document.getElementById('d');document.querySelectorAll('.grid button').forEach(function(btn){btn.addEventListener('click',async function(){if(btn.id==='eq'){var res=await Websandbox.connection.remote.evaluateExpression({expression:expr});if(res&&res.ok){display.textContent=String(res.value);expr=String(res.value);}else{display.textContent='err';expr='';}}else{expr+=btn.textContent;display.textContent=expr;}});});})();\"}" } ] } }, { "_comment": "gen-ui-open-advanced: Ping the host pill — generateSandboxedUi with notifyHost callback.", "match": { "userMessage": "Ping the host (calls notifyHost)", "hasToolResult": false, "context": "agno" }, "response": { "toolCalls": [ { "id": "call_d6_agno_gen_ui_open_adv_ping_001", "name": "generateSandboxedUi", "arguments": "{\"initialHeight\":320,\"placeholderMessages\":[\"Composing host-ping card…\"],\"css\":\"body{margin:0;font-family:system-ui;background:#0f172a;color:#e2e8f0}.card{padding:24px;background:#1e293b;border-radius:12px;margin:16px;text-align:center}button{padding:10px 20px;background:#6366f1;border:0;color:#fff;border-radius:8px;font-size:14px;cursor:pointer}.out{margin-top:12px;font-size:12px;color:#94a3b8}\",\"html\":\"

Notify the host

awaiting click…
\",\"jsFunctions\":\"document.getElementById('hi').addEventListener('click',async function(){var out=document.getElementById('out');out.textContent='sending…';var res=await Websandbox.connection.remote.notifyHost({message:'Hello from sandbox'});out.textContent=res&&res.ok?'host replied at '+res.receivedAt:'failed';});\"}" } ] } }, { "_comment": "gen-ui-open-advanced pill — 'Inline expression evaluator'. Duplicated from gen-ui-open.json for direct-file-load scenarios where only this file is loaded.", "match": { "userMessage": "Inline expression evaluator", "hasToolResult": false, "context": "agno" }, "response": { "toolCalls": [ { "id": "call_d6_agno_gen_ui_open_adv_001", "name": "generateSandboxedUi", "arguments": "{\"initialHeight\":320,\"placeholderMessages\":[\"Composing expression evaluator…\"],\"css\":\"body{margin:0;font-family:system-ui;background:#0f172a;color:#e2e8f0}.card{padding:16px;background:#1e293b;border-radius:12px;margin:16px}input{width:100%;padding:8px;background:#0f172a;border:1px solid #334155;color:#e2e8f0;border-radius:6px;box-sizing:border-box}button{margin-top:8px;padding:8px 16px;background:#6366f1;border:0;color:#fff;border-radius:6px;cursor:pointer}.out{margin-top:8px;font-size:12px;color:#94a3b8}\",\"html\":\"

Inline expression evaluator

awaiting input…
\",\"jsFunctions\":\"(function(){var input=document.getElementById('in');var out=document.getElementById('out');var go=document.getElementById('go');async function run(){var expr=input.value;out.textContent='evaluating…';var res=await Websandbox.connection.remote.evaluateExpression({expression:expr});out.textContent=res&&res.ok?'= '+res.value:'error: '+res.error;}go.addEventListener('click',run);input.addEventListener('keydown',function(e){if(e.key==='Enter')run();});})();\"}" } ] } }, { "match": { "userMessage": "Inline expression evaluator", "hasToolResult": true, "context": "agno" }, "response": { "content": "Expression evaluator rendered above — type any arithmetic expression and click Evaluate to compute via the host bridge." } } ] }