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

basic.json

211 lines4.5 KB

1{
2 "fixtures": [
3 {
4 "match": {
5 "userMessage": "[subagent-route] research squids",
6 "sequenceIndex": 0
7 },
8 "response": {
9 "reasoning": "Look up the facts first.",
10 "toolCalls": [
11 {
12 "name": "lookupFacts",
13 "arguments": "{\"topic\":\"squids\"}"
14 }
15 ]
16 }
17 },
18 {
19 "match": {
20 "userMessage": "[subagent-route] research squids",
21 "sequenceIndex": 1
22 },
23 "response": {
24 "content": "Squids have three hearts."
25 }
26 },
27 {
28 "match": {
29 "userMessage": "[subagent-approval] clean up the old logs",
30 "sequenceIndex": 0
31 },
32 "response": {
33 "toolCalls": [
34 {
35 "name": "deleteLogs",
36 "arguments": "{\"folder\":\"old\"}"
37 }
38 ]
39 }
40 },
41 {
42 "match": {
43 "userMessage": "[subagent-approval] clean up the old logs",
44 "sequenceIndex": 1
45 },
46 "response": {
47 "content": "Deleted the old logs."
48 }
49 },
50 {
51 "match": {
52 "userMessage": "[subagent-tool] research squids",
53 "sequenceIndex": 0
54 },
55 "response": {
56 "toolCalls": [
57 {
58 "name": "researcher",
59 "arguments": "{}"
60 }
61 ]
62 }
63 },
64 {
65 "match": {
66 "userMessage": "[subagent-tool] research squids",
67 "sequenceIndex": 1
68 },
69 "response": {
70 "content": "Squids have three hearts."
71 }
72 },
73 {
74 "match": {
75 "userMessage": "[subagent-tool] research squids",
76 "sequenceIndex": 2
77 },
78 "response": {
79 "content": "Research is done."
80 }
81 },
82 {
83 "match": {
84 "userMessage": "[subagent-brief] compare squid facts",
85 "sequenceIndex": 0
86 },
87 "response": {
88 "toolCalls": [
89 {
90 "name": "researcher",
91 "arguments": "{\"task\":\"[subagent-brief-task] List two squid facts.\"}"
92 }
93 ]
94 }
95 },
96 {
97 "match": {
98 "userMessage": "[subagent-brief-task] List two squid facts."
99 },
100 "response": {
101 "content": "Squids have three hearts and blue blood."
102 }
103 },
104 {
105 "match": {
106 "userMessage": "[subagent-brief] compare squid facts",
107 "sequenceIndex": 1
108 },
109 "response": {
110 "content": "The comparison is ready."
111 }
112 },
113 {
114 "match": {
115 "userMessage": "[subagent-result] price vendor a",
116 "sequenceIndex": 0
117 },
118 "response": {
119 "toolCalls": [
120 {
121 "name": "pricer",
122 "arguments": "{\"task\":\"[subagent-result-task] Price Vendor A.\"}"
123 }
124 ]
125 }
126 },
127 {
128 "match": {
129 "userMessage": "[subagent-result-task] Price Vendor A."
130 },
131 "response": {
132 "content": "Vendor A costs 42 EUR."
133 }
134 },
135 {
136 "match": {
137 "userMessage": "[subagent-result] price vendor a",
138 "sequenceIndex": 1
139 },
140 "response": {
141 "content": "Pricing is ready."
142 }
143 },
144 {
145 "match": {
146 "userMessage": "[subagent-limits] research two topics",
147 "sequenceIndex": 0
148 },
149 "response": {
150 "toolCalls": [
151 {
152 "name": "researcher",
153 "arguments": "{\"task\":\"[subagent-limits-task] squids\"}"
154 },
155 {
156 "name": "researcher",
157 "arguments": "{\"task\":\"[subagent-limits-task] octopuses\"}"
158 }
159 ]
160 }
161 },
162 {
163 "match": {
164 "userMessage": "[subagent-limits-task] squids"
165 },
166 "response": {
167 "content": "Squids have three hearts."
168 }
169 },
170 {
171 "match": {
172 "userMessage": "[subagent-limits] research two topics",
173 "sequenceIndex": 1
174 },
175 "response": {
176 "content": "One topic is done."
177 }
178 },
179 {
180 "match": {
181 "userMessage": "[subagent-keys] write a draft",
182 "sequenceIndex": 0
183 },
184 "response": {
185 "toolCalls": [
186 {
187 "name": "writer",
188 "arguments": "{\"task\":\"[subagent-keys-task] Write a draft.\"}"
189 }
190 ]
191 }
192 },
193 {
194 "match": {
195 "userMessage": "[subagent-keys-task] Write a draft."
196 },
197 "response": {
198 "content": "The draft is written."
199 }
200 },
201 {
202 "match": {
203 "userMessage": "[subagent-keys] write a draft",
204 "sequenceIndex": 1
205 },
206 "response": {
207 "content": "The writer is done."
208 }
209 }
210 ]