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

tool-error.json

27 lines549 Bytes

1{
2 "fixtures": [
3 {
4 "match": {
5 "userMessage": "[tool-error] run test",
6 "sequenceIndex": 0
7 },
8 "response": {
9 "toolCalls": [
10 {
11 "name": "failing_tool",
12 "arguments": "{\"message\":\"intentional test failure\"}"
13 }
14 ]
15 }
16 },
17 {
18 "match": {
19 "userMessage": "[tool-error] run test",
20 "sequenceIndex": 1
21 },
22 "response": {
23 "content": "The tool encountered an error. I apologize for the issue."
24 }
25 }
26 ]