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

157 lines
4.8 KiB
JSON

{
"_meta": {
"description": "D6 fixtures for strands / interrupt-headless",
"sourceFile": "d5-interrupt-headless.ts",
"copiedFrom": "langgraph-python",
"created": "2026-05-22"
},
"fixtures": [
{
"_comment": "interrupt-headless sales-call pill \u2014 first leg: schedule_meeting tool call triggers interrupt(...). Same agent/prompts as gen-ui-interrupt but frontend uses useHeadlessInterrupt (app surface pane, not inline).",
"match": {
"userMessage": "introductory sales team call",
"toolName": "schedule_meeting",
"context": "strands"
},
"response": {
"content": "Sure \u2014 let me check available times.",
"toolCalls": [
{
"id": "call_d6_headless_schedule_sales_001",
"name": "schedule_meeting",
"arguments": {
"topic": "Sales intro call",
"attendee": "Sales team",
"slots": [
{
"label": "Mon 10:00 AM",
"iso": "2026-05-25T10:00:00Z"
},
{
"label": "Tue 2:00 PM",
"iso": "2026-05-26T14:00:00Z"
}
]
}
}
]
}
},
{
"_comment": "interrupt-headless sales-call pill \u2014 second leg: confirmation after user picks a slot.",
"match": {
"userMessage": "introductory sales team call",
"toolCallId": "call_d6_headless_schedule_sales_001",
"context": "strands"
},
"response": {
"content": "Booked: Sales intro call confirmed for the slot you picked."
}
},
{
"_comment": "interrupt-headless sales-call pill \u2014 fallback for integrations without schedule_meeting tool.",
"match": {
"userMessage": "introductory sales team call",
"hasToolResult": false,
"context": "strands"
},
"response": {
"content": "Sure \u2014 let me check available times.",
"toolCalls": [
{
"id": "call_d6_headless_schedule_sales_001",
"name": "schedule_meeting",
"arguments": {
"topic": "Sales intro call",
"attendee": "Sales team",
"slots": [
{
"label": "Mon 10:00 AM",
"iso": "2026-05-25T10:00:00Z"
},
{
"label": "Tue 2:00 PM",
"iso": "2026-05-26T14:00:00Z"
}
]
}
}
]
}
},
{
"_comment": "interrupt-headless alice-1on1 pill \u2014 first leg: schedule_meeting tool call.",
"match": {
"userMessage": "one-on-one with Alice",
"toolName": "schedule_meeting",
"context": "strands"
},
"response": {
"content": "Got it \u2014 pulling up next-week slots.",
"toolCalls": [
{
"id": "call_d6_headless_schedule_alice_001",
"name": "schedule_meeting",
"arguments": {
"topic": "1:1 with Alice \u2014 Q2 goals",
"attendee": "Alice",
"slots": [
{
"label": "Wed 11:00 AM",
"iso": "2026-05-27T11:00:00Z"
},
{
"label": "Thu 3:30 PM",
"iso": "2026-05-28T15:30:00Z"
}
]
}
}
]
}
},
{
"_comment": "interrupt-headless alice-1on1 pill \u2014 second leg: confirmation after user picks a slot.",
"match": {
"userMessage": "one-on-one with Alice",
"toolCallId": "call_d6_headless_schedule_alice_001",
"context": "strands"
},
"response": {
"content": "Scheduled: 1:1 with Alice locked in for the slot you picked."
}
},
{
"_comment": "interrupt-headless alice-1on1 pill \u2014 fallback for integrations without schedule_meeting tool.",
"match": {
"userMessage": "one-on-one with Alice",
"hasToolResult": false,
"context": "strands"
},
"response": {
"content": "Got it \u2014 pulling up next-week slots.",
"toolCalls": [
{
"id": "call_d6_headless_schedule_alice_001",
"name": "schedule_meeting",
"arguments": {
"topic": "1:1 with Alice \u2014 Q2 goals",
"attendee": "Alice",
"slots": [
{
"label": "Wed 11:00 AM",
"iso": "2026-05-27T11:00:00Z"
},
{
"label": "Thu 3:30 PM",
"iso": "2026-05-28T15:30:00Z"
}
]
}
}
]
}
}
]
}