forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbyoc.json
More file actions
63 lines (63 loc) · 2.64 KB
/
Copy pathbyoc.json
File metadata and controls
63 lines (63 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"_meta": {
"description": "D6 fixtures for ms-agent-python / byoc",
"sourceFile": "harness/fixtures/d5/feature-parity.json",
"created": "2026-05-22"
},
"fixtures": [
{
"_comment": "byoc-hashbrown pill: Sales dashboard with metric card + pie chart + bar chart. The BYOC renderer materializes the structured JSON as DOM components.",
"match": {
"userMessage": "Q4 sales dashboard",
"hasToolResult": false,
"context": "ms-agent-python"
},
"response": {
"toolCalls": [
{
"id": "call_d6_byoc_sales_dashboard_001",
"name": "render_dashboard",
"arguments": "{\"metrics\":[{\"label\":\"Total Revenue\",\"value\":\"$4.2M\",\"trend\":\"up\"},{\"label\":\"New Customers\",\"value\":\"1,247\",\"trend\":\"up\"},{\"label\":\"Churn Rate\",\"value\":\"1.8%\",\"trend\":\"down\"}],\"charts\":[{\"type\":\"pie\",\"title\":\"Revenue by Segment\",\"data\":[{\"label\":\"Enterprise\",\"value\":2100},{\"label\":\"SMB\",\"value\":1400},{\"label\":\"Startup\",\"value\":700}]},{\"type\":\"bar\",\"title\":\"Monthly Revenue\",\"data\":[{\"label\":\"Oct\",\"value\":1200},{\"label\":\"Nov\",\"value\":1400},{\"label\":\"Dec\",\"value\":1600}]}]}"
}
]
}
},
{
"match": {
"userMessage": "Q4 sales dashboard",
"hasToolResult": true,
"context": "ms-agent-python"
},
"response": {
"content": "Here is the Q4 sales dashboard with total revenue at $4.2M, a pie chart showing revenue by segment, and a bar chart of monthly revenue."
}
},
{
"_comment": "byoc-json-render pill: shorter prompt variant.",
"match": {
"userMessage": "sales dashboard with metrics",
"hasToolResult": false,
"context": "ms-agent-python"
},
"response": {
"toolCalls": [
{
"id": "call_d6_byoc_json_render_001",
"name": "render_dashboard",
"arguments": "{\"metrics\":[{\"label\":\"Revenue\",\"value\":\"$3.8M\",\"trend\":\"up\"},{\"label\":\"Active Users\",\"value\":\"12,430\",\"trend\":\"up\"}],\"charts\":[{\"type\":\"bar\",\"title\":\"Revenue Trend\",\"data\":[{\"label\":\"Q1\",\"value\":820},{\"label\":\"Q2\",\"value\":940},{\"label\":\"Q3\",\"value\":1080},{\"label\":\"Q4\",\"value\":960}]}]}"
}
]
}
},
{
"match": {
"userMessage": "sales dashboard with metrics",
"hasToolResult": true,
"context": "ms-agent-python"
},
"response": {
"content": "The sales dashboard is rendered above with revenue metrics and a revenue trend chart."
}
}
]
}