Files
optimclaw/tests/fixtures/llm_traces/coverage/apply_patch_chain.json
T
OutBack Dingo 6d9dbbb3b9 fork: rename IronClaw → OptimClaw
Full rename of all identifiers, filenames, and references:
  ironclaw → optimclaw
  IronClaw → OptimClaw
  IRONCLAW → OPTIMCLAW
  ironclaw_common → optimclaw_common
  ironclaw_safety → optimclaw_safety

Upstream: nearai/ironclaw
2026-03-29 06:27:52 +07:00

71 lines
1.8 KiB
JSON

{
"model_name": "test-apply-patch",
"expects": {
"tools_used": ["write_file", "apply_patch", "read_file"],
"all_tools_succeeded": true,
"min_responses": 1
},
"steps": [
{
"request_hint": { "last_user_message_contains": "patch" },
"response": {
"type": "tool_calls",
"tool_calls": [
{
"id": "call_write_original",
"name": "write_file",
"arguments": {
"path": "/tmp/optimclaw_coverage_test_apply_patch/patch_target.txt",
"content": "Hello World\nThis is the original content.\nGoodbye World"
}
}
],
"input_tokens": 80,
"output_tokens": 30
}
},
{
"response": {
"type": "tool_calls",
"tool_calls": [
{
"id": "call_apply_patch",
"name": "apply_patch",
"arguments": {
"path": "/tmp/optimclaw_coverage_test_apply_patch/patch_target.txt",
"old_string": "This is the original content.",
"new_string": "This is the PATCHED content."
}
}
],
"input_tokens": 120,
"output_tokens": 25
}
},
{
"response": {
"type": "tool_calls",
"tool_calls": [
{
"id": "call_read_patched",
"name": "read_file",
"arguments": {
"path": "/tmp/optimclaw_coverage_test_apply_patch/patch_target.txt"
}
}
],
"input_tokens": 150,
"output_tokens": 15
}
},
{
"response": {
"type": "text",
"content": "I wrote the file, applied the patch to change 'original' to 'PATCHED', and verified the result.",
"input_tokens": 180,
"output_tokens": 25
}
}
]
}