30 lines
1.8 KiB
JSON
30 lines
1.8 KiB
JSON
{
|
|
"_meta": {
|
|
"description": "D6 fixtures for agno / byoc",
|
|
"sourceFile": "d5-byoc.ts",
|
|
"created": "2026-05-22"
|
|
},
|
|
"fixtures": [
|
|
{
|
|
"_comment": "BYOC hashbrown pill — the agent returns structured JSON that the custom renderer materializes as metric cards + charts. The HASHBROWN_PILL prompt is the long-form 'Show me a Q4 sales dashboard...' sentence from d5-byoc.ts. The response must produce JSON the demo renderer can parse to mount [data-testid='metric-card'] and a chart testid.",
|
|
"match": {
|
|
"userMessage": "Q4 sales dashboard",
|
|
"context": "agno"
|
|
},
|
|
"response": {
|
|
"content": "{\"metrics\":[{\"label\":\"Total Revenue\",\"value\":\"$4.2M\",\"change\":\"+12%\"},{\"label\":\"New Customers\",\"value\":\"1,847\",\"change\":\"+8%\"},{\"label\":\"Churn Rate\",\"value\":\"2.3%\",\"change\":\"-0.5%\"}],\"charts\":[{\"type\":\"pie\",\"title\":\"Revenue by Segment\",\"data\":[{\"label\":\"Enterprise\",\"value\":2100000},{\"label\":\"SMB\",\"value\":1400000},{\"label\":\"Consumer\",\"value\":700000}]},{\"type\":\"bar\",\"title\":\"Monthly Revenue\",\"data\":[{\"label\":\"Oct\",\"value\":1200000},{\"label\":\"Nov\",\"value\":1400000},{\"label\":\"Dec\",\"value\":1600000}]}]}"
|
|
}
|
|
},
|
|
{
|
|
"_comment": "BYOC json-render pill — shorter prompt variant.",
|
|
"match": {
|
|
"userMessage": "sales dashboard with metrics and a revenue chart",
|
|
"context": "agno"
|
|
},
|
|
"response": {
|
|
"content": "{\"metrics\":[{\"label\":\"Revenue\",\"value\":\"$3.8M\",\"change\":\"+10%\"},{\"label\":\"Orders\",\"value\":\"12,340\",\"change\":\"+15%\"}],\"charts\":[{\"type\":\"bar\",\"title\":\"Revenue Trend\",\"data\":[{\"label\":\"Q1\",\"value\":800000},{\"label\":\"Q2\",\"value\":950000},{\"label\":\"Q3\",\"value\":1050000},{\"label\":\"Q4\",\"value\":1000000}]}]}"
|
|
}
|
|
}
|
|
]
|
|
}
|