Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

approval-then-client.json

43 lines936 Bytes

1{
2 "fixtures": [
3 {
4 "match": {
5 "userMessage": "[approval-then-client] run test",
6 "sequenceIndex": 0
7 },
8 "response": {
9 "content": "First I need approval.",
10 "toolCalls": [
11 {
12 "name": "delete_file",
13 "arguments": "{\"path\":\"/tmp/before-notify.txt\"}"
14 }
15 ]
16 }
17 },
18 {
19 "match": {
20 "userMessage": "[approval-then-client] run test",
21 "sequenceIndex": 1
22 },
23 "response": {
24 "content": "Now showing notification.",
25 "toolCalls": [
26 {
27 "name": "show_notification",
28 "arguments": "{\"message\":\"After approval\",\"type\":\"info\"}"
29 }
30 ]
31 }
32 },
33 {
34 "match": {
35 "userMessage": "[approval-then-client] run test",
36 "sequenceIndex": 2
37 },
38 "response": {
39 "content": "Complete."
40 }
41 }
42 ]