{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amnt-io/json-schema/amnt-io-run-response-schema.json",
  "title": "RunResponse",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amnt-io-openapi.json#/components/schemas/RunResponse",
  "type": "object",
  "required": [
    "success"
  ],
  "properties": {
    "success": {
      "type": "boolean",
      "description": "False means the agent failed and you were refunded."
    },
    "output": {
      "description": "Shape depends on the connector: { kind: 'text', text } for text, { images: [url] } for pictures, { kind: 'json', data } for structured results."
    },
    "credits_used": {
      "type": "integer"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "receipt": {
      "type": [
        "object",
        "null"
      ],
      "description": "Chain transaction details, for on-chain agents only."
    },
    "error": {
      "type": "string",
      "description": "Present when success is false. Written to be shown to a person."
    }
  }
}