{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/suedeai-ai/json-schema/suedeai-ai-run-result-schema.json",
  "title": "RunResult",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agents-openapi.json#/components/schemas/RunResult",
  "type": "object",
  "properties": {
    "runId": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "done",
        "error"
      ]
    },
    "totalCostUsdc": {
      "type": "number"
    },
    "outputs": {
      "type": "object",
      "additionalProperties": true
    },
    "result": {
      "type": "object",
      "additionalProperties": true,
      "description": "Best-effort normalized result for a curated service; raw outputs remain available."
    },
    "settled": {
      "type": "boolean"
    },
    "relayed": {
      "type": "boolean"
    },
    "transaction": {
      "type": "string"
    },
    "payer": {
      "type": "string"
    },
    "ap2": {
      "type": "object",
      "properties": {
        "profile": {
          "type": "string",
          "const": "ap2-v0.2-experimental"
        },
        "authorizationMode": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "direct",
            "autonomous",
            null
          ]
        },
        "checkoutReceipt": {
          "type": "string"
        }
      },
      "required": [
        "profile",
        "authorizationMode",
        "checkoutReceipt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "runId",
    "status",
    "totalCostUsdc",
    "outputs",
    "settled"
  ],
  "additionalProperties": false
}