{ "_meta": { "description": "D6 fixtures for langgraph-fastapi / gen-ui-open", "sourceFile": "harness/fixtures/d5/gen-ui-open.json", "created": "2026-05-22" }, "fixtures": [ { "_comment": "open-gen-ui — 3D axis pill. generateSandboxedUi tool call with inline HTML/CSS.", "match": { "userMessage": "3D axis visualization (model airplane)", "hasToolResult": false, "context": "langgraph-fastapi" }, "response": { "toolCalls": [ { "id": "call_d6_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
\"}" } ] } }, { "match": { "userMessage": "3D axis visualization (model airplane)", "toolCallId": "call_d6_open_gen_ui_3d_axis_001", "context": "langgraph-fastapi" }, "response": { "content": "3D axis visualization rendered — pitch, yaw, and roll axes displayed in the sandbox." } }, { "_comment": "open-gen-ui — Neural network pill.", "match": { "userMessage": "How a neural network works", "hasToolResult": false, "context": "langgraph-fastapi" }, "response": { "toolCalls": [ { "id": "call_d6_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

\"}" } ] } }, { "match": { "userMessage": "How a neural network works", "toolCallId": "call_d6_open_gen_ui_neural_001", "context": "langgraph-fastapi" }, "response": { "content": "Neural network forward-pass diagram rendered — input, hidden, and output layers displayed." } }, { "_comment": "open-gen-ui — Quicksort pill.", "match": { "userMessage": "Quicksort visualization", "hasToolResult": false, "context": "langgraph-fastapi" }, "response": { "toolCalls": [ { "id": "call_d6_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

\"}" } ] } }, { "match": { "userMessage": "Quicksort visualization", "toolCallId": "call_d6_open_gen_ui_quicksort_001", "context": "langgraph-fastapi" }, "response": { "content": "Quicksort partition visualization rendered — pivot and comparison bars displayed." } }, { "_comment": "open-gen-ui — Fourier pill.", "match": { "userMessage": "Fourier: square wave from sines", "hasToolResult": false, "context": "langgraph-fastapi" }, "response": { "toolCalls": [ { "id": "call_d6_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

\"}" } ] } }, { "match": { "userMessage": "Fourier: square wave from sines", "toolCallId": "call_d6_open_gen_ui_fourier_001", "context": "langgraph-fastapi" }, "response": { "content": "Fourier series visualization rendered — overlapping sine harmonics approximating a square wave." } }, { "_comment": "Fallback narration entries for back-compat probes.", "match": { "userMessage": "render an open gen-ui element", "context": "langgraph-fastapi" }, "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." } } ] }