88 lines
3.1 KiB
JSON
88 lines
3.1 KiB
JSON
{
|
|
"_comment": "D5 fixture for /demos/gen-ui-interrupt. Two pill prompts (sales call / 1:1 with Alice). Each pill is a 2-leg flow — first leg returns a `schedule_meeting` tool call (which triggers the Python agent's `interrupt(...)` suspension); second leg matches `toolCallId` after the user picks a slot and returns a confirmation narration. Both legs are SHARED with /demos/interrupt-headless.json (same agent, same chip prompts, different frontend rendering — `useInterrupt` inline vs `useHeadlessInterrupt` in a separate pane). The `call_d5_schedule_sales_001` / `_alice_001` toolCallIds match `interrupt-headless.json` and `showcase/aimock/d5-all.json` so all three sources stay in lockstep.",
|
|
"fixtures": [
|
|
{
|
|
"match": {
|
|
"userMessage": "intro call with the sales team",
|
|
"toolName": "schedule_meeting"
|
|
},
|
|
"response": {
|
|
"content": "Sure — let me check available times.",
|
|
"toolCalls": [
|
|
{
|
|
"id": "call_d5_schedule_sales_001",
|
|
"name": "schedule_meeting",
|
|
"arguments": {
|
|
"topic": "Sales intro call",
|
|
"attendee": "Sales team",
|
|
"slots": [
|
|
{ "label": "Mon 10:00 AM", "iso": "2026-05-11T10:00:00Z" },
|
|
{ "label": "Tue 2:00 PM", "iso": "2026-05-12T14:00:00Z" }
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"match": {
|
|
"userMessage": "intro call with the sales team",
|
|
"toolCallId": "call_d5_schedule_sales_001__cancelled"
|
|
},
|
|
"response": {
|
|
"content": "Denied — the sales intro call was not booked because no time slot was selected."
|
|
}
|
|
},
|
|
{
|
|
"match": {
|
|
"userMessage": "intro call with the sales team",
|
|
"toolCallId": "call_d5_schedule_sales_001"
|
|
},
|
|
"response": {
|
|
"content": "Booked: Sales intro call confirmed for the slot you picked."
|
|
}
|
|
},
|
|
{
|
|
"match": {
|
|
"userMessage": "1:1 with Alice",
|
|
"toolName": "schedule_meeting"
|
|
},
|
|
"response": {
|
|
"content": "Got it — pulling up next-week slots.",
|
|
"toolCalls": [
|
|
{
|
|
"id": "call_d5_schedule_alice_001",
|
|
"name": "schedule_meeting",
|
|
"arguments": {
|
|
"topic": "1:1 with Alice — Q2 goals",
|
|
"attendee": "Alice",
|
|
"slots": [
|
|
{ "label": "Wed 11:00 AM", "iso": "2026-05-13T11:00:00Z" },
|
|
{ "label": "Thu 3:30 PM", "iso": "2026-05-14T15:30:00Z" }
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"match": {
|
|
"userMessage": "1:1 with Alice",
|
|
"toolCallId": "call_d5_schedule_alice_001__cancelled"
|
|
},
|
|
"response": {
|
|
"content": "Denied — the 1:1 with Alice was not scheduled because no time slot was selected."
|
|
}
|
|
},
|
|
{
|
|
"match": {
|
|
"userMessage": "1:1 with Alice",
|
|
"toolCallId": "call_d5_schedule_alice_001"
|
|
},
|
|
"response": {
|
|
"content": "Scheduled: 1:1 with Alice locked in for the slot you picked."
|
|
}
|
|
}
|
|
]
|
|
}
|