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

114 lines
3.6 KiB
JSON

{
"_meta": {
"description": "D6 fixtures for langgraph-fastapi / beautiful-chat",
"sourceFile": "d5-all.json",
"copiedFrom": "langgraph-python",
"created": "2026-05-21"
},
"fixtures": [
{
"match": {
"userMessage": "d5 beautiful-chat probe: bar chart of expenses by category",
"hasToolResult": false,
"context": "langgraph-fastapi"
},
"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": "langgraph-fastapi"
},
"response": {
"content": "Bar chart rendered above — 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": "langgraph-fastapi"
},
"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": "langgraph-fastapi"
},
"response": {
"content": "Pie chart rendered above — 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": "langgraph-fastapi"
},
"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": "langgraph-fastapi"
},
"response": {
"content": "Meeting scheduled — calendar invite is on its way."
}
},
{
"match": {
"userMessage": "d5 beautiful-chat probe: toggle the theme",
"hasToolResult": false,
"context": "langgraph-fastapi"
},
"response": {
"toolCalls": [
{
"id": "call_d5_bc_toggle_theme_001",
"name": "toggleTheme",
"arguments": "{}"
}
]
}
},
{
"match": {
"userMessage": "d5 beautiful-chat probe: toggle the theme",
"hasToolResult": true,
"context": "langgraph-fastapi"
},
"response": {
"content": "Theme toggled."
}
}
]
}