forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterrupt-headless.json
More file actions
94 lines (94 loc) · 3.13 KB
/
Copy pathinterrupt-headless.json
File metadata and controls
94 lines (94 loc) · 3.13 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"_meta": {
"description": "D6 fixtures for ms-agent-python / interrupt-headless",
"sourceFile": "harness/fixtures/d5/interrupt-headless.json",
"created": "2026-05-29",
"copiedFrom": "langgraph-python"
},
"fixtures": [
{
"_comment": "interrupt-headless sales-call pill \u2014 second leg: confirmation after user picks a slot. Placed BEFORE first-leg so toolCallId matching takes precedence over toolName matching.",
"match": {
"userMessage": "intro call with the sales team",
"toolCallId": "call_d5_schedule_sales_001",
"context": "ms-agent-python"
},
"response": {
"content": "Booked: Sales intro call confirmed for the slot you picked."
}
},
{
"_comment": "interrupt-headless alice-1on1 pill \u2014 second leg: confirmation after user picks a slot. Placed BEFORE first-leg so toolCallId matching takes precedence.",
"match": {
"userMessage": "1:1 with Alice",
"toolCallId": "call_d5_schedule_alice_001",
"context": "ms-agent-python"
},
"response": {
"content": "Scheduled: 1:1 with Alice locked in for the slot you picked."
}
},
{
"_comment": "interrupt-headless sales-call pill \u2014 first leg: schedule_meeting tool call triggers interrupt(...). Same agent/prompts as gen-ui-interrupt but different frontend (useHeadlessInterrupt renders in app surface pane, not inline).",
"match": {
"userMessage": "intro call with the sales team",
"toolName": "schedule_meeting",
"context": "ms-agent-python"
},
"response": {
"content": "Sure \u2014 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"
}
]
}
}
]
}
},
{
"_comment": "interrupt-headless alice-1on1 pill \u2014 first leg: schedule_meeting tool call.",
"match": {
"userMessage": "1:1 with Alice",
"toolName": "schedule_meeting",
"context": "ms-agent-python"
},
"response": {
"content": "Got it \u2014 pulling up next-week slots.",
"toolCalls": [
{
"id": "call_d5_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-13T11:00:00Z"
},
{
"label": "Thu 3:30 PM",
"iso": "2026-05-14T15:30:00Z"
}
]
}
}
]
}
}
]
}