singularity-forge/tests/fixtures/recordings/agent-handles-error.json
2026-05-05 14:31:16 +02:00

41 lines
877 B
JSON

{
"name": "agent-handles-error",
"description": "Two-turn fixture where the agent encounters and handles an error",
"turns": [
{
"role": "user",
"content": "Read the file /nonexistent/path.txt"
},
{
"role": "assistant",
"content": "Let me try to read that file.",
"toolUses": [
{
"name": "Read",
"input": {
"file_path": "/nonexistent/path.txt"
},
"error": "ENOENT: no such file or directory, open '/nonexistent/path.txt'"
}
]
},
{
"role": "user",
"content": "That file doesn't exist. Can you create it instead?"
},
{
"role": "assistant",
"content": "The file doesn't exist. I'll create it for you.",
"toolUses": [
{
"name": "Write",
"input": {
"file_path": "/nonexistent/path.txt",
"content": ""
},
"output": "File created successfully"
}
]
}
]
}