{ "_meta": { "description": "D6 fixtures for pydantic-ai / gen-ui-open", "sourceFile": "harness/fixtures/d5/gen-ui-open.json", "created": "2026-05-22" }, "fixtures": [ { "_comment": "gen-ui-open pill: 3D axis visualization. The probe sends this first suggestion-pill prompt and asserts iframe[srcdoc] mounts.", "match": { "userMessage": "3D axis visualization (model airplane)", "hasToolResult": false, "context": "pydantic-ai" }, "response": { "toolCalls": [ { "id": "call_d5_open_gen_ui_3d_axis_001", "name": "generateSandboxedUi", "arguments": "{\"initialHeight\":480,\"placeholderMessages\":[\"Composing 3D axis scene…\"],\"css\":\"body{margin:0;font-family:system-ui;background:#0f172a;color:#e2e8f0}.wrap{padding:16px}h1{font-size:14px;margin:0 0 8px}svg{display:block;background:#1e293b;border-radius:8px}\",\"html\":\"

3D axis visualization (pitch / yaw / roll)

X pitchY yawZ roll
\"}" } ] } }, { "_comment": "gen-ui-open pill: Neural network.", "match": { "userMessage": "How a neural network works", "hasToolResult": false, "context": "pydantic-ai" }, "response": { "toolCalls": [ { "id": "call_d5_open_gen_ui_neural_001", "name": "generateSandboxedUi", "arguments": "{\"initialHeight\":480,\"placeholderMessages\":[\"Composing neural network forward pass…\"],\"css\":\"body{margin:0;font-family:system-ui;background:#0f172a;color:#e2e8f0}.wrap{padding:16px}h1{font-size:14px;margin:0 0 8px}svg{display:block;background:#1e293b;border-radius:8px}circle{fill:#6366f1}\",\"html\":\"

Forward pass: input → hidden → output

\"}" } ] } }, { "_comment": "gen-ui-open pill: Quicksort.", "match": { "userMessage": "Quicksort visualization", "hasToolResult": false, "context": "pydantic-ai" }, "response": { "toolCalls": [ { "id": "call_d5_open_gen_ui_quicksort_001", "name": "generateSandboxedUi", "arguments": "{\"initialHeight\":480,\"placeholderMessages\":[\"Composing quicksort animation…\"],\"css\":\"body{margin:0;font-family:system-ui;background:#0f172a;color:#e2e8f0}.wrap{padding:16px}h1{font-size:14px;margin:0 0 8px}svg{display:block;background:#1e293b;border-radius:8px}rect{fill:#64748b}\",\"html\":\"

Quicksort: partition around pivot

\"}" } ] } }, { "_comment": "gen-ui-open pill: Fourier.", "match": { "userMessage": "Fourier: square wave from sines", "hasToolResult": false, "context": "pydantic-ai" }, "response": { "toolCalls": [ { "id": "call_d5_open_gen_ui_fourier_001", "name": "generateSandboxedUi", "arguments": "{\"initialHeight\":480,\"placeholderMessages\":[\"Composing Fourier series animation…\"],\"css\":\"body{margin:0;font-family:system-ui;background:#0f172a;color:#e2e8f0}.wrap{padding:16px}h1{font-size:14px;margin:0 0 8px}svg{display:block;background:#1e293b;border-radius:8px}\",\"html\":\"

Fourier series: square wave

\"}" } ] } }, { "_comment": "gen-ui-open pill: Calculator.", "match": { "userMessage": "Calculator (calls evaluateExpression)", "hasToolResult": false, "context": "pydantic-ai" }, "response": { "toolCalls": [ { "id": "call_d5_open_gen_ui_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
\"}" } ] } }, { "_comment": "gen-ui-open pill: Ping the host.", "match": { "userMessage": "Ping the host (calls notifyHost)", "hasToolResult": false, "context": "pydantic-ai" }, "response": { "toolCalls": [ { "id": "call_d5_open_gen_ui_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…
\"}" } ] } }, { "_comment": "gen-ui-open pill: Inline expression evaluator.", "match": { "userMessage": "Inline expression evaluator", "hasToolResult": false, "context": "pydantic-ai" }, "response": { "toolCalls": [ { "id": "call_d5_open_gen_ui_inline_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…
\"}" } ] } }, { "match": { "userMessage": "render an open gen-ui element", "context": "pydantic-ai" }, "response": { "content": "The open gen-UI element was rendered. The LLM produced an arbitrary-shape JSON payload and the renderer materialized it as a UI block." } }, { "match": { "userMessage": "continue the advanced gen-ui flow", "context": "pydantic-ai" }, "response": { "content": "The advanced gen-UI flow continued with the second-step component. The chained payloads from turns 1 and 2 form the complete advanced gen-UI sequence." } } ] }