{
  "answers": {
    "c00": {
      "noul": 0.99,
      "type": "noul"
    },
    "c01": {
      "noul": 0.99,
      "type": "noul"
    },
    "c02": {
      "noul": 0.99,
      "type": "noul"
    },
    "c03": {
      "noul": 0.99,
      "type": "noul"
    },
    "c04": {
      "noul": 0.99,
      "type": "noul"
    },
    "c05": {
      "noul": 1.0,
      "type": "noul"
    },
    "c06": {
      "noul": 0.99,
      "type": "noul"
    },
    "c07": {
      "noul": 1.0,
      "type": "noul"
    },
    "c08": {
      "noul": 0.99,
      "type": "noul"
    },
    "c09": {
      "noul": 0.99,
      "type": "noul"
    },
    "c10": {
      "noul": 0.99,
      "type": "noul"
    },
    "c11": {
      "noul": 0.99,
      "type": "noul"
    },
    "c12": {
      "noul": 0.99,
      "type": "noul"
    },
    "c13": {
      "noul": 1.0,
      "type": "noul"
    },
    "c14": {
      "noul": 0.99,
      "type": "noul"
    },
    "c15": {
      "noul": 0.99,
      "type": "noul"
    },
    "c16": {
      "noul": 0.99,
      "type": "noul"
    },
    "c17": {
      "noul": 0.8,
      "type": "noul"
    },
    "w00": {
      "noul": 0.96,
      "type": "noul"
    },
    "w01": {
      "noul": 0.94,
      "type": "noul"
    },
    "w02": {
      "noul": 0.94,
      "type": "noul"
    },
    "w03": {
      "noul": 0.97,
      "type": "noul"
    },
    "w04": {
      "noul": 0.96,
      "type": "noul"
    },
    "w05": {
      "noul": 0.97,
      "type": "noul"
    },
    "w06": {
      "noul": 0.96,
      "type": "noul"
    },
    "w07": {
      "noul": 0.98,
      "type": "noul"
    },
    "w08": {
      "noul": 0.98,
      "type": "noul"
    }
  },
  "asked_at": "2026-11-23T04:49:53Z",
  "endpoint": "https://api.typesafe.ai/v1/systemone",
  "errors_helpful": [
    {
      "call": 0,
      "noul": 0.99,
      "question": "c00"
    },
    {
      "call": 1,
      "noul": 0.99,
      "question": "c01"
    },
    {
      "call": 2,
      "noul": 0.99,
      "question": "c02"
    },
    {
      "call": 3,
      "noul": 0.99,
      "question": "c03"
    },
    {
      "call": 4,
      "noul": 0.99,
      "question": "c04"
    },
    {
      "call": 5,
      "noul": 1.0,
      "question": "c05"
    },
    {
      "call": 6,
      "noul": 0.99,
      "question": "c06"
    },
    {
      "call": 7,
      "noul": 1.0,
      "question": "c07"
    },
    {
      "call": 8,
      "noul": 0.99,
      "question": "c08"
    },
    {
      "call": 9,
      "noul": 0.99,
      "question": "c09"
    },
    {
      "call": 10,
      "noul": 0.99,
      "question": "c10"
    },
    {
      "call": 11,
      "noul": 0.99,
      "question": "c11"
    },
    {
      "call": 12,
      "noul": 0.99,
      "question": "c12"
    },
    {
      "call": 13,
      "noul": 1.0,
      "question": "c13"
    },
    {
      "call": 14,
      "noul": 0.99,
      "question": "c14"
    },
    {
      "call": 15,
      "noul": 0.99,
      "question": "c15"
    },
    {
      "call": 16,
      "noul": 0.99,
      "question": "c16"
    },
    {
      "call": 17,
      "noul": 0.8,
      "question": "c17"
    }
  ],
  "format": "didrun.judgments.v1",
  "input_tokens": 13387,
  "method": "0.15.0",
  "model": "jev-1.14.0",
  "model_asked": "jev-1.14.0",
  "request": {
    "model": "jev-1.14.0",
    "questions": {
      "c00": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "Error: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"query\"\n    ],\n    \"message\": \"Required\"\n  }\n]",
          "tool": "agirails_search_docs"
        },
        "type": "noul"
      },
      "c01": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "query": {}
          },
          "parameter": "query",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "Error: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"object\",\n    \"path\": [\n      \"query\"\n    ],\n    \"message\": \"Expected string, received object\"\n  }\n]",
          "tool": "agirails_search_docs"
        },
        "type": "noul"
      },
      "c02": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "capability": {}
          },
          "parameter": "capability",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "Error: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"object\",\n    \"path\": [\n      \"capability\"\n    ],\n    \"message\": \"Expected string, received object\"\n  }\n]",
          "tool": "agirails_find_agents"
        },
        "type": "noul"
      },
      "c03": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "Error: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"concept\"\n    ],\n    \"message\": \"Required\"\n  }\n]",
          "tool": "agirails_explain_concept"
        },
        "type": "noul"
      },
      "c04": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "concept": {}
          },
          "parameter": "concept",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "Error: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"object\",\n    \"path\": [\n      \"concept\"\n    ],\n    \"message\": \"Expected string, received object\"\n  }\n]",
          "tool": "agirails_explain_concept"
        },
        "type": "noul"
      },
      "c05": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "Error: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"service\"\n    ],\n    \"message\": \"Required\"\n  },\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"input\"\n    ],\n    \"message\": \"Required\"\n  },\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"number\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"budget\"\n    ],\n    \"message\": \"Required\"\n  }\n]",
          "tool": "agirails_request_service"
        },
        "type": "noul"
      },
      "c06": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "budget": 1,
            "input": "didrun",
            "service": {}
          },
          "parameter": "service",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "Error: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"object\",\n    \"path\": [\n      \"service\"\n    ],\n    \"message\": \"Expected string, received object\"\n  }\n]",
          "tool": "agirails_request_service"
        },
        "type": "noul"
      },
      "c07": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "Error: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"txId\"\n    ],\n    \"message\": \"Required\"\n  },\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"price\"\n    ],\n    \"message\": \"Required\"\n  },\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"deliverables\"\n    ],\n    \"message\": \"Required\"\n  }\n]",
          "tool": "agirails_submit_quote"
        },
        "type": "noul"
      },
      "c08": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "deliverables": "didrun",
            "price": "didrun",
            "txId": {}
          },
          "parameter": "txId",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "Error: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"object\",\n    \"path\": [\n      \"txId\"\n    ],\n    \"message\": \"Expected string, received object\"\n  }\n]",
          "tool": "agirails_submit_quote"
        },
        "type": "noul"
      },
      "c09": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "Error: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"txId\"\n    ],\n    \"message\": \"Required\"\n  }\n]",
          "tool": "agirails_get_transaction"
        },
        "type": "noul"
      },
      "c10": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "txId": {}
          },
          "parameter": "txId",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "Error: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"object\",\n    \"path\": [\n      \"txId\"\n    ],\n    \"message\": \"Expected string, received object\"\n  }\n]",
          "tool": "agirails_get_transaction"
        },
        "type": "noul"
      },
      "c11": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "Error: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"txId\"\n    ],\n    \"message\": \"Required\"\n  },\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"deliverable\"\n    ],\n    \"message\": \"Required\"\n  }\n]",
          "tool": "agirails_deliver"
        },
        "type": "noul"
      },
      "c12": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "deliverable": "didrun",
            "txId": {}
          },
          "parameter": "txId",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "Error: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"object\",\n    \"path\": [\n      \"txId\"\n    ],\n    \"message\": \"Expected string, received object\"\n  }\n]",
          "tool": "agirails_deliver"
        },
        "type": "noul"
      },
      "c13": {
        "criteria": {
          "false": "The reply names no argument of the tool: for example a generic failure, a stack trace with no argument named, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply names at least one argument of the tool that the call left out or got wrong, and so tells the caller what to change."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` name an argument that the call must add or fix?",
          "reply": "Error: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"txId\"\n    ],\n    \"message\": \"Required\"\n  },\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"undefined\",\n    \"path\": [\n      \"reason\"\n    ],\n    \"message\": \"Required\"\n  }\n]",
          "tool": "agirails_dispute"
        },
        "type": "noul"
      },
      "c14": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "reason": "didrun",
            "txId": {}
          },
          "parameter": "txId",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "Error: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"object\",\n    \"path\": [\n      \"txId\"\n    ],\n    \"message\": \"Expected string, received object\"\n  }\n]",
          "tool": "agirails_dispute"
        },
        "type": "noul"
      },
      "c15": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "network": {}
          },
          "parameter": "network",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "Error: [\n  {\n    \"expected\": \"'mainnet' | 'testnet'\",\n    \"received\": \"object\",\n    \"code\": \"invalid_type\",\n    \"path\": [\n      \"network\"\n    ],\n    \"message\": \"Expected 'mainnet' | 'testnet', received object\"\n  }\n]",
          "tool": "agirails_get_balance"
        },
        "type": "noul"
      },
      "c16": {
        "criteria": {
          "false": "The reply does not point to `parameter`: for example a generic failure, an error about another argument, an error from a service the tool tried to reach, or a normal answer.",
          "true": "The reply points to `parameter` or to its value and says the value has the wrong type or is not accepted."
        },
        "instructions": {
          "arguments_sent": {
            "configPath": {}
          },
          "parameter": "configPath",
          "question": "Does `reply` tell the caller that `parameter` has a value the tool does not accept?",
          "reply": "Error: [\n  {\n    \"code\": \"invalid_type\",\n    \"expected\": \"string\",\n    \"received\": \"object\",\n    \"path\": [\n      \"configPath\"\n    ],\n    \"message\": \"Expected string, received object\"\n  }\n]",
          "tool": "agirails_publish_config"
        },
        "type": "noul"
      },
      "c17": {
        "criteria": {
          "false": "The reply does not say the tool is missing: for example a generic failure, a crash, or a normal answer.",
          "true": "The reply says the tool is unknown, not found, or does not exist."
        },
        "instructions": {
          "arguments_sent": {},
          "question": "Does `reply` tell the caller that there is no tool named `tool`?",
          "reply": "Unknown tool: didrun_unknown_tool",
          "tool": "didrun_unknown_tool"
        },
        "type": "noul"
      },
      "w00": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "```python\n# Install: pip install agirails\n\n# === Earn USDC as an agent ===\nfrom agirails import provide\n\nasync def my_handler(job):\n    # job.service: service type\n    # job.input: work request data\n    # job.budget: maximum USDC the requester will pay\n    result = await do_your_work(job.input)\n    return result  # auto-settles escrow on return\n\nprovide(\"your-service-name\", my_handler, network=\"testnet\")\n\n\n# === Pay an agent for work ===\nfrom agirails import request\n\nresult = await request(\"translation\", {\n    \"input\": \"Translate this text to Spanish: Hello world\",\n    \"budget\": 5,  # maximum USDC willing to pay\n    \"network\": \"testnet\",\n})\nprint(result)\n```",
          "done_when": "The tool reply contains a Python testnet quickstart covering both earning and paying.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "intent": "both",
                "language": "python",
                "network": "testnet"
              },
              "reply": "# AGIRAILS Quick Start (Python, testnet)\n\n```bash\npip install agirails\n```\n\n## Earn USDC\n```python\n# === EARN USDC as an AI agent (Level 0 - simplest) ===\nfrom agirails import provide\n\nasync def my_handler(job):\n    # job.service = service type (e.g., 'translation', 'echo')\n    # job.input   = the actual work request data\n    # job.budget  = max USDC the requester will pay (decimal, e.g. 10 = $10.00)\n    result = await do_your_work(job.input)\n    return result  # auto-settles escrow on return\n\nprovide('your-service-name', my_handler, network='testnet')\n```\n\n## Pay for Services\n```python\n# === PAY an AI agent for work (Level 0 - simplest) ===\nfrom agirails import request\n\nresult = await request('translation', {\n    'input': 'Translate this text to Spanish: Hello world',\n    'budget': 5,  # max USDC willing to pay\n    'network': 'testnet',\n})\nprint(result)  # \"Hola mundo\"\n```\n\n## Resources\n- Docs: https://docs.agirails.io\n- PyPI: https://pypi.org/project/agirails\n- Discord: https://discord.gg/agirails",
              "tool": "agirails_get_quickstart"
            }
          ],
          "task": "Generate a Python testnet quickstart showing both how to earn and how to pay USDC with AGIRAILS. Just show the code; don't run it."
        },
        "type": "noul"
      },
      "w01": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "```python\n# Install first: pip install agirails\n\n# === Earn USDC by providing a service ===\nfrom agirails import provide\n\nasync def my_handler(job):\n    # Replace this with your service's actual work.\n    result = await do_your_work(job.input)\n    return result  # Auto-settles escrow on return.\n\nprovide(\"your-service-name\", my_handler, network=\"testnet\")\n\n\n# === Pay USDC for a service ===\nfrom agirails import request\n\nresult = await request(\"translation\", {\n    \"input\": \"Translate this text to Spanish: Hello world\",\n    \"budget\": 5,  # Maximum USDC willing to pay.\n    \"network\": \"testnet\",\n})\nprint(result)\n```",
          "done_when": "The tool reply contains a Python testnet quickstart covering both earning and paying.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "intent": "both",
                "language": "python",
                "network": "testnet"
              },
              "reply": "# AGIRAILS Quick Start (Python, testnet)\n\n```bash\npip install agirails\n```\n\n## Earn USDC\n```python\n# === EARN USDC as an AI agent (Level 0 - simplest) ===\nfrom agirails import provide\n\nasync def my_handler(job):\n    # job.service = service type (e.g., 'translation', 'echo')\n    # job.input   = the actual work request data\n    # job.budget  = max USDC the requester will pay (decimal, e.g. 10 = $10.00)\n    result = await do_your_work(job.input)\n    return result  # auto-settles escrow on return\n\nprovide('your-service-name', my_handler, network='testnet')\n```\n\n## Pay for Services\n```python\n# === PAY an AI agent for work (Level 0 - simplest) ===\nfrom agirails import request\n\nresult = await request('translation', {\n    'input': 'Translate this text to Spanish: Hello world',\n    'budget': 5,  # max USDC willing to pay\n    'network': 'testnet',\n})\nprint(result)  # \"Hola mundo\"\n```\n\n## Resources\n- Docs: https://docs.agirails.io\n- PyPI: https://pypi.org/project/agirails\n- Discord: https://discord.gg/agirails",
              "tool": "agirails_get_quickstart"
            }
          ],
          "task": "Generate a Python testnet quickstart showing both how to earn and how to pay USDC with AGIRAILS. Just show the code; don't run it."
        },
        "type": "noul"
      },
      "w02": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "```python\n# Install first: pip install agirails\n\n# === EARN USDC as an AI agent ===\nfrom agirails import provide\n\nasync def my_handler(job):\n    # job.service: service type\n    # job.input: work request data\n    # job.budget: maximum USDC the requester will pay\n    result = await do_your_work(job.input)\n    return result  # auto-settles escrow on return\n\nprovide(\"your-service-name\", my_handler, network=\"testnet\")\n\n\n# === PAY an AI agent for work ===\nfrom agirails import request\n\nresult = await request(\"translation\", {\n    \"input\": \"Translate this text to Spanish: Hello world\",\n    \"budget\": 5,  # maximum USDC willing to pay\n    \"network\": \"testnet\",\n})\nprint(result)\n```",
          "done_when": "The tool reply contains a Python testnet quickstart covering both earning and paying.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "intent": "both",
                "language": "python",
                "network": "testnet"
              },
              "reply": "# AGIRAILS Quick Start (Python, testnet)\n\n```bash\npip install agirails\n```\n\n## Earn USDC\n```python\n# === EARN USDC as an AI agent (Level 0 - simplest) ===\nfrom agirails import provide\n\nasync def my_handler(job):\n    # job.service = service type (e.g., 'translation', 'echo')\n    # job.input   = the actual work request data\n    # job.budget  = max USDC the requester will pay (decimal, e.g. 10 = $10.00)\n    result = await do_your_work(job.input)\n    return result  # auto-settles escrow on return\n\nprovide('your-service-name', my_handler, network='testnet')\n```\n\n## Pay for Services\n```python\n# === PAY an AI agent for work (Level 0 - simplest) ===\nfrom agirails import request\n\nresult = await request('translation', {\n    'input': 'Translate this text to Spanish: Hello world',\n    'budget': 5,  # max USDC willing to pay\n    'network': 'testnet',\n})\nprint(result)  # \"Hola mundo\"\n```\n\n## Resources\n- Docs: https://docs.agirails.io\n- PyPI: https://pypi.org/project/agirails\n- Discord: https://discord.gg/agirails",
              "tool": "agirails_get_quickstart"
            }
          ],
          "task": "Generate a Python testnet quickstart showing both how to earn and how to pay USDC with AGIRAILS. Just show the code; don't run it."
        },
        "type": "noul"
      },
      "w03": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Here is the generated TypeScript testnet snippet. It resolves `translator-agent` and requests translation with a maximum budget of 5 USDC. **It was not executed.**\n\n```typescript\nimport { Agent, AgentRegistry } from '@agirails/sdk';\n\nconst agent = new Agent({ network: 'testnet' });\nawait agent.start();\n\nconst registry = new AgentRegistry({ network: 'testnet' });\nconst agentInfo = await registry.getAgentBySlug('translator-agent');\n\nif (!agentInfo?.address) {\n  throw new Error('translator-agent not found');\n}\n\nconst { result, transaction } = await agent.request('translation', {\n  input: 'Hello, world!',\n  budget: 5, // Maximum budget in USDC\n  providerAddress: agentInfo.address,\n});\n\nconsole.log('Transaction ID:', transaction.id);\nconsole.log('Result:', result);\nconsole.log('Status: INITIATED — waiting for provider quote');\n```\n\nThe tool indicates that funds are not locked until a quote is accepted. The request doesn’t specify a target language; add one if the provider requires it.",
          "done_when": "The tool reply contains a service-request snippet reflecting the translation request, input, agent slug, 5 USDC budget, and testnet.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "agentSlug": "translator-agent",
                "budget": 5,
                "input": "Hello, world!",
                "network": "testnet",
                "service": "translation"
              },
              "reply": "## Request Service: translation\n\nInitiates an ACTP transaction. Funds are NOT locked until you accept a quote.\n\n```typescript\nimport { Agent } from '@agirails/sdk';\nimport { AgentRegistry } from '@agirails/sdk';\n\nconst agent = new Agent({ network: 'testnet' });\nawait agent.start();\n\n// Resolve slug to provider address for targeted request\nconst registry = new AgentRegistry({ network: 'testnet' });\nconst agentInfo = await registry.getAgentBySlug('translator-agent');\nconst providerAddress = agentInfo?.address;\n\n// Initiate — SDK 3.0: first arg is service type, options use input + numeric budget\nconst { result, transaction } = await agent.request('translation', {\n  input: 'Hello, world!',\n  budget: 5,  // max USDC (locks only after quote acceptance)\n  providerAddress,  // target specific agent\n});\n\nconsole.log('Transaction ID:', transaction.id);\nconsole.log('Result:', result);\nconsole.log('Status: INITIATED — waiting for provider quote');\n\n// Notified when provider accepts and payment flows\nagent.on('payment:received', (amount) => {\n  console.log(`Payment received: ${amount} USDC`);\n  // Accept with: agirails_accept_quote({ txId: transaction.id, quotedPrice: amount, network: 'testnet' })\n});\n```\n\n> **Next step:** Use `agirails_get_transaction` to check status, or `agirails_accept_quote` to lock escrow.",
              "tool": "agirails_request_service"
            }
          ],
          "task": "Generate a TypeScript testnet snippet to request translation of “Hello, world!” from the agent slug translator-agent, with a maximum budget of 5 USDC. Don't execute it."
        },
        "type": "noul"
      },
      "w04": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Here is the generated TypeScript testnet snippet. I did **not** execute it.\n\n```typescript\nimport { Agent, AgentRegistry } from '@agirails/sdk';\n\nconst agent = new Agent({ network: 'testnet' });\nawait agent.start();\n\nconst registry = new AgentRegistry({ network: 'testnet' });\nconst agentInfo = await registry.getAgentBySlug('translator-agent');\n\nif (!agentInfo?.address) {\n  throw new Error('translator-agent not found');\n}\n\nconst { result, transaction } = await agent.request('translation', {\n  input: 'Hello, world!',\n  budget: 5, // Maximum budget in USDC\n  providerAddress: agentInfo.address,\n});\n\nconsole.log('Transaction ID:', transaction.id);\nconsole.log('Result:', result);\nconsole.log('Status: INITIATED — waiting for provider quote');\n```\n\nThe request initiates an ACTP transaction; funds are not locked until a quote is accepted. The target language wasn’t specified, so you may need to include it in the input before running the snippet.",
          "done_when": "The tool reply contains a service-request snippet reflecting the translation request, input, agent slug, 5 USDC budget, and testnet.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "agentSlug": "translator-agent",
                "budget": 5,
                "input": "Hello, world!",
                "network": "testnet",
                "service": "translation"
              },
              "reply": "## Request Service: translation\n\nInitiates an ACTP transaction. Funds are NOT locked until you accept a quote.\n\n```typescript\nimport { Agent } from '@agirails/sdk';\nimport { AgentRegistry } from '@agirails/sdk';\n\nconst agent = new Agent({ network: 'testnet' });\nawait agent.start();\n\n// Resolve slug to provider address for targeted request\nconst registry = new AgentRegistry({ network: 'testnet' });\nconst agentInfo = await registry.getAgentBySlug('translator-agent');\nconst providerAddress = agentInfo?.address;\n\n// Initiate — SDK 3.0: first arg is service type, options use input + numeric budget\nconst { result, transaction } = await agent.request('translation', {\n  input: 'Hello, world!',\n  budget: 5,  // max USDC (locks only after quote acceptance)\n  providerAddress,  // target specific agent\n});\n\nconsole.log('Transaction ID:', transaction.id);\nconsole.log('Result:', result);\nconsole.log('Status: INITIATED — waiting for provider quote');\n\n// Notified when provider accepts and payment flows\nagent.on('payment:received', (amount) => {\n  console.log(`Payment received: ${amount} USDC`);\n  // Accept with: agirails_accept_quote({ txId: transaction.id, quotedPrice: amount, network: 'testnet' })\n});\n```\n\n> **Next step:** Use `agirails_get_transaction` to check status, or `agirails_accept_quote` to lock escrow.",
              "tool": "agirails_request_service"
            }
          ],
          "task": "Generate a TypeScript testnet snippet to request translation of “Hello, world!” from the agent slug translator-agent, with a maximum budget of 5 USDC. Don't execute it."
        },
        "type": "noul"
      },
      "w05": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Here’s the generated TypeScript testnet snippet. **It has not been executed.** Funds are not locked until a quote is accepted.\n\n```typescript\nimport { Agent, AgentRegistry } from '@agirails/sdk';\n\nconst agent = new Agent({ network: 'testnet' });\nawait agent.start();\n\nconst registry = new AgentRegistry({ network: 'testnet' });\nconst agentInfo = await registry.getAgentBySlug('translator-agent');\nif (!agentInfo?.address) {\n  throw new Error('translator-agent not found');\n}\n\nconst { result, transaction } = await agent.request('translation', {\n  input: 'Hello, world!',\n  budget: 5, // Maximum budget in USDC\n  providerAddress: agentInfo.address,\n});\n\nconsole.log('Transaction ID:', transaction.id);\nconsole.log('Result:', result);\nconsole.log('Status: INITIATED — waiting for provider quote');\n```\n\nThe request does not specify a target language; add one to the input if needed.",
          "done_when": "The tool reply contains a service-request snippet reflecting the translation request, input, agent slug, 5 USDC budget, and testnet.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "agentSlug": "translator-agent",
                "budget": 5,
                "input": "Hello, world!",
                "network": "testnet",
                "service": "translation"
              },
              "reply": "## Request Service: translation\n\nInitiates an ACTP transaction. Funds are NOT locked until you accept a quote.\n\n```typescript\nimport { Agent } from '@agirails/sdk';\nimport { AgentRegistry } from '@agirails/sdk';\n\nconst agent = new Agent({ network: 'testnet' });\nawait agent.start();\n\n// Resolve slug to provider address for targeted request\nconst registry = new AgentRegistry({ network: 'testnet' });\nconst agentInfo = await registry.getAgentBySlug('translator-agent');\nconst providerAddress = agentInfo?.address;\n\n// Initiate — SDK 3.0: first arg is service type, options use input + numeric budget\nconst { result, transaction } = await agent.request('translation', {\n  input: 'Hello, world!',\n  budget: 5,  // max USDC (locks only after quote acceptance)\n  providerAddress,  // target specific agent\n});\n\nconsole.log('Transaction ID:', transaction.id);\nconsole.log('Result:', result);\nconsole.log('Status: INITIATED — waiting for provider quote');\n\n// Notified when provider accepts and payment flows\nagent.on('payment:received', (amount) => {\n  console.log(`Payment received: ${amount} USDC`);\n  // Accept with: agirails_accept_quote({ txId: transaction.id, quotedPrice: amount, network: 'testnet' })\n});\n```\n\n> **Next step:** Use `agirails_get_transaction` to check status, or `agirails_accept_quote` to lock escrow.",
              "tool": "agirails_request_service"
            }
          ],
          "task": "Generate a TypeScript testnet snippet to request translation of “Hello, world!” from the agent slug translator-agent, with a maximum budget of 5 USDC. Don't execute it."
        },
        "type": "noul"
      },
      "w06": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Here’s the generated TypeScript snippet for a **0.50 USDC testnet payment** to `translator-agent` for translation:\n\n```typescript\nimport { ACTPClient } from '@agirails/sdk';\n\nconst client = await ACTPClient.create({ mode: 'testnet' });\n\nconst result = await client.pay({\n  to: 'translator-agent',\n  amount: '0.50',\n  service: 'translation',\n});\n\nconsole.log('Transaction ID:', result.txId);\nconsole.log('State:', result.state); // 'COMMITTED'\n```\n\nThe tool reports that `pay()` locks funds in escrow at the `COMMITTED` state; it does not settle the payment. Further lifecycle steps are needed to complete it.\n\n**The payment was not executed.**",
          "done_when": "The tool reply contains a smart-payment snippet with the specified target, amount, service, and testnet.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "amount": "0.50",
                "network": "testnet",
                "service": "translation",
                "target": "translator-agent"
              },
              "reply": "## Smart Pay to agent\n\n```typescript\nimport { ACTPClient } from '@agirails/sdk';\n\nconst client = await ACTPClient.create({ mode: 'testnet' });\n\n// IMPORTANT: client.pay() returns at COMMITTED state — escrow is locked, not settled.\n// You MUST complete the lifecycle: startWork → deliver → release.\nconst result = await client.pay({\n  to: 'translator-agent',\n  amount: '0.50',\n  service: 'translation',\n});\n\nconsole.log('Transaction ID:', result.txId);\nconsole.log('State:', result.state); // 'COMMITTED'\n\n// Complete the lifecycle\nawait client.startWork(result.txId);\nawait client.deliver(result.txId);\n// After dispute window expires:\nawait client.release(result.escrowId!);\n```",
              "tool": "agirails_pay"
            }
          ],
          "task": "Generate a TypeScript snippet for a testnet smart payment of 0.50 USDC to the agent slug translator-agent for translation. Don't execute the payment."
        },
        "type": "noul"
      },
      "w07": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Here is the generated testnet smart-payment snippet. **It was not executed.** Running `client.pay()` locks 0.50 USDC in escrow; it does not immediately settle the payment.\n\n```typescript\nimport { ACTPClient } from '@agirails/sdk';\n\nconst client = await ACTPClient.create({ mode: 'testnet' });\n\nconst result = await client.pay({\n  to: 'translator-agent',\n  amount: '0.50',\n  service: 'translation',\n});\n\nconsole.log('Transaction ID:', result.txId);\nconsole.log('State:', result.state); // COMMITTED\n```\n\nThe tool notes that the transaction lifecycle must subsequently be completed with `startWork`, `deliver`, and `release`.",
          "done_when": "The tool reply contains a smart-payment snippet with the specified target, amount, service, and testnet.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "amount": "0.50",
                "network": "testnet",
                "service": "translation",
                "target": "translator-agent"
              },
              "reply": "## Smart Pay to agent\n\n```typescript\nimport { ACTPClient } from '@agirails/sdk';\n\nconst client = await ACTPClient.create({ mode: 'testnet' });\n\n// IMPORTANT: client.pay() returns at COMMITTED state — escrow is locked, not settled.\n// You MUST complete the lifecycle: startWork → deliver → release.\nconst result = await client.pay({\n  to: 'translator-agent',\n  amount: '0.50',\n  service: 'translation',\n});\n\nconsole.log('Transaction ID:', result.txId);\nconsole.log('State:', result.state); // 'COMMITTED'\n\n// Complete the lifecycle\nawait client.startWork(result.txId);\nawait client.deliver(result.txId);\n// After dispute window expires:\nawait client.release(result.escrowId!);\n```",
              "tool": "agirails_pay"
            }
          ],
          "task": "Generate a TypeScript snippet for a testnet smart payment of 0.50 USDC to the agent slug translator-agent for translation. Don't execute the payment."
        },
        "type": "noul"
      },
      "w08": {
        "criteria": {
          "false": "The tool replies show an error, a missing or different result, or nothing about the task; or only the agent's final answer claims the task was done.",
          "true": "The tool replies in `steps` show the result that `done_when` describes. The result came from the server's tools, not only from the agent's own words."
        },
        "instructions": {
          "agent_final_answer": "Here’s the generated TypeScript snippet for a **0.50 USDC testnet smart payment** to `translator-agent` for translation. I did not execute it.\n\n```typescript\nimport { ACTPClient } from '@agirails/sdk';\n\nconst client = await ACTPClient.create({ mode: 'testnet' });\n\nconst result = await client.pay({\n  to: 'translator-agent',\n  amount: '0.50',\n  service: 'translation',\n});\n\nconsole.log('Transaction ID:', result.txId);\nconsole.log('State:', result.state); // 'COMMITTED'\n```\n\nWhen run, `client.pay()` locks the funds in escrow; it does not settle the payment. The tool notes that the lifecycle must then be completed through `startWork`, `deliver`, and `release`.",
          "done_when": "The tool reply contains a smart-payment snippet with the specified target, amount, service, and testnet.",
          "how_it_ended": "answered",
          "question": "Did the agent finish `task`, as `done_when` describes, according to the tool replies in `steps`?",
          "steps": [
            {
              "arguments": {
                "amount": "0.50",
                "network": "testnet",
                "service": "translation",
                "target": "translator-agent"
              },
              "reply": "## Smart Pay to agent\n\n```typescript\nimport { ACTPClient } from '@agirails/sdk';\n\nconst client = await ACTPClient.create({ mode: 'testnet' });\n\n// IMPORTANT: client.pay() returns at COMMITTED state — escrow is locked, not settled.\n// You MUST complete the lifecycle: startWork → deliver → release.\nconst result = await client.pay({\n  to: 'translator-agent',\n  amount: '0.50',\n  service: 'translation',\n});\n\nconsole.log('Transaction ID:', result.txId);\nconsole.log('State:', result.state); // 'COMMITTED'\n\n// Complete the lifecycle\nawait client.startWork(result.txId);\nawait client.deliver(result.txId);\n// After dispute window expires:\nawait client.release(result.escrowId!);\n```",
              "tool": "agirails_pay"
            }
          ],
          "task": "Generate a TypeScript snippet for a testnet smart payment of 0.50 USDC to the agent slug translator-agent for translation. Don't execute the payment."
        },
        "type": "noul"
      }
    },
    "state": {
      "about": "Replies of an MCP server to tool calls that were sent with bad input on purpose, to see whether its error messages help a caller fix the call."
    }
  },
  "run_id": "01M838ZMR94FKFPSWJGG0AX9YR",
  "works_done": [
    {
      "attempt": 0,
      "noul": 0.96,
      "question": "w00"
    },
    {
      "attempt": 1,
      "noul": 0.94,
      "question": "w01"
    },
    {
      "attempt": 2,
      "noul": 0.94,
      "question": "w02"
    },
    {
      "attempt": 3,
      "noul": 0.97,
      "question": "w03"
    },
    {
      "attempt": 4,
      "noul": 0.96,
      "question": "w04"
    },
    {
      "attempt": 5,
      "noul": 0.97,
      "question": "w05"
    },
    {
      "attempt": 6,
      "noul": 0.96,
      "question": "w06"
    },
    {
      "attempt": 7,
      "noul": 0.98,
      "question": "w07"
    },
    {
      "attempt": 8,
      "noul": 0.98,
      "question": "w08"
    }
  ]
}
