Files
2026-07-13 12:58:18 +08:00

141 lines
5.5 KiB
JSON

{
"_meta": {
"description": "D6 fixtures for ms-agent-python / beautiful-chat",
"sourceFile": "d5-all.json",
"created": "2026-05-21",
"copiedFrom": "langgraph-python"
},
"fixtures": [
{
"match": {
"userMessage": "d5 beautiful-chat probe: bar chart of expenses by category",
"hasToolResult": false,
"context": "ms-agent-python"
},
"response": {
"toolCalls": [
{
"id": "call_d5_bc_bar_chart_001",
"name": "barChart",
"arguments": "{\"title\":\"Expenses by Category\",\"description\":\"Monthly expense breakdown\",\"data\":[{\"label\":\"Rent\",\"value\":15000},{\"label\":\"Salaries\",\"value\":80000},{\"label\":\"Marketing\",\"value\":12000},{\"label\":\"Travel\",\"value\":5000}]}"
}
]
}
},
{
"match": {
"userMessage": "d5 beautiful-chat probe: bar chart of expenses by category",
"hasToolResult": true,
"context": "ms-agent-python"
},
"response": {
"content": "Bar chart rendered above \u2014 Salaries dominate at $80k, with Rent at $15k as the next-largest category."
}
},
{
"match": {
"userMessage": "d5 beautiful-chat probe: pie chart of revenue distribution by category",
"hasToolResult": false,
"context": "ms-agent-python"
},
"response": {
"toolCalls": [
{
"id": "call_d5_bc_pie_chart_001",
"name": "pieChart",
"arguments": "{\"title\":\"Revenue by Category\",\"description\":\"Breakdown of revenue across product categories\",\"data\":[{\"label\":\"Electronics\",\"value\":42000},{\"label\":\"Clothing\",\"value\":28000},{\"label\":\"Food\",\"value\":18000},{\"label\":\"Books\",\"value\":12000}]}"
}
]
}
},
{
"match": {
"userMessage": "d5 beautiful-chat probe: pie chart of revenue distribution by category",
"hasToolResult": true,
"context": "ms-agent-python"
},
"response": {
"content": "Pie chart rendered above \u2014 Electronics leads at $42k, followed by Clothing, Food, and Books."
}
},
{
"match": {
"userMessage": "d5 beautiful-chat probe: schedule a 30-minute meeting to learn about CopilotKit",
"hasToolResult": false,
"context": "ms-agent-python"
},
"response": {
"toolCalls": [
{
"id": "call_d5_bc_schedule_time_001",
"name": "scheduleTime",
"arguments": "{\"reasonForScheduling\":\"Learn about CopilotKit\",\"meetingDuration\":30}"
}
]
}
},
{
"match": {
"userMessage": "d5 beautiful-chat probe: schedule a 30-minute meeting to learn about CopilotKit",
"hasToolResult": true,
"context": "ms-agent-python"
},
"response": {
"content": "Meeting scheduled \u2014 calendar invite is on its way."
}
},
{
"match": {
"userMessage": "d5 beautiful-chat probe: toggle the theme",
"hasToolResult": false,
"context": "ms-agent-python"
},
"response": {
"toolCalls": [
{
"id": "call_d5_bc_toggle_theme_001",
"name": "toggleTheme",
"arguments": "{}"
}
]
}
},
{
"match": {
"userMessage": "d5 beautiful-chat probe: toggle the theme",
"hasToolResult": true,
"context": "ms-agent-python"
},
"response": {
"content": "Theme toggled."
}
},
{
"_comment": "beautiful-chat 'Search Flights (A2UI Fixed Schema)' pill \u2014 sends 'Find flights from SFO to JFK for next Tuesday.'. Beautiful-chat's search_flights tool takes `flights: list[Flight]` (NOT the {origin,destination} shape used by tool_rendering_agent). Test asserts United Airlines + $349 + Delta + $289 are visible. Narrowed userMessage to 'for next Tuesday' so this stays scoped to the beautiful-chat pill (the tool-rendering basic + reasoning-chain pills both lack that phrase). hasToolResult:false gates this to the initial user turn; the follow-up content fixture below catches iteration 2 via toolCallId.",
"match": {
"userMessage": "for next Tuesday",
"hasToolResult": false,
"context": "ms-agent-python"
},
"response": {
"toolCalls": [
{
"id": "call_d6_bc_search_flights_001",
"name": "search_flights",
"arguments": "{\"flights\":[{\"airline\":\"United Airlines\",\"airlineLogo\":\"https://www.google.com/s2/favicons?domain=united.com&sz=128\",\"flightNumber\":\"UA231\",\"origin\":\"SFO\",\"destination\":\"JFK\",\"date\":\"Tue, May 6\",\"departureTime\":\"08:00\",\"arrivalTime\":\"16:30\",\"duration\":\"5h 30m\",\"status\":\"On Time\",\"statusColor\":\"#22c55e\",\"price\":\"$349\",\"currency\":\"USD\"},{\"airline\":\"Delta\",\"airlineLogo\":\"https://www.google.com/s2/favicons?domain=delta.com&sz=128\",\"flightNumber\":\"DL412\",\"origin\":\"SFO\",\"destination\":\"JFK\",\"date\":\"Tue, May 6\",\"departureTime\":\"10:15\",\"arrivalTime\":\"18:45\",\"duration\":\"5h 30m\",\"status\":\"On Time\",\"statusColor\":\"#22c55e\",\"price\":\"$289\",\"currency\":\"USD\"}]}"
}
]
}
},
{
"match": {
"toolCallId": "call_d6_bc_search_flights_001",
"context": "ms-agent-python"
},
"response": {
"content": "Two flights shown above \u2014 United at $349 (08:00) and Delta at $289 (10:15), both on time."
}
}
]
}