Files
copilotkit__copilotkit/showcase/aimock/d6/langgraph-python/gen-ui-custom.json
Jordan Ritter 1e66a5f8d2 feat(showcase-aimock): per-framework D4/D6 fixture reorg into d4/d6/shared dirs
Move monolithic d5-all.json + feature-parity.json + smoke.json into
per-integration directories under d4/<slug>/, d6/<slug>/, and shared/.
Every fixture file is now context-scoped to enable server-side aimock
routing via match.context. Migrated 12 HITL fixtures from main's
d5-all.json additions into shared/_migrated-from-d5-all-hitl.json
for follow-up distribution into per-integration files.
2026-05-26 11:25:30 -07:00

38 lines
1.6 KiB
JSON

{
"_meta": {
"description": "D6 fixtures for langgraph-python / gen-ui-custom (pie chart path)",
"sourceFile": "harness/fixtures/d5/gen-ui-custom.json",
"created": "2026-05-21"
},
"fixtures": [
{
"_comment": "gen-ui-custom pie chart — first leg: emit render_pie_chart tool call. hasToolResult:false ensures this only matches when there's no prior tool result in the conversation.",
"match": {
"userMessage": "Show me a pie chart of revenue by category",
"hasToolResult": false,
"context": "langgraph-python"
},
"response": {
"toolCalls": [
{
"id": "call_d5_render_pie_chart_001",
"name": "render_pie_chart",
"arguments": "{\"title\":\"Revenue by Category\",\"description\":\"Revenue breakdown by product category (Q4)\",\"data\":[{\"label\":\"Electronics\",\"value\":42000},{\"label\":\"Clothing\",\"value\":28000},{\"label\":\"Food\",\"value\":18000},{\"label\":\"Books\",\"value\":12000}]}"
}
]
}
},
{
"_comment": "gen-ui-custom pie chart — second leg: narration after the pie chart tool result lands. The follow-up text MUST contain 'pie' and 'chart' tokens — the D5 probe asserts their presence.",
"match": {
"userMessage": "Show me a pie chart of revenue by category",
"hasToolResult": true,
"context": "langgraph-python"
},
"response": {
"content": "Pie chart rendered above — Electronics is the largest slice, followed by Clothing, Food, and Books."
}
}
]
}