mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
1e66a5f8d2
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.
38 lines
1.6 KiB
JSON
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."
|
|
}
|
|
}
|
|
]
|
|
}
|