{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bernstein-run/json-schema/bernstein-run-a2-amessage-response-schema.json",
  "title": "A2AMessageResponse",
  "description": "Serialized A2A message returned by Bernstein endpoints.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bernstein-run-a2a-api-openapi.yml#/components/schemas/A2AMessageResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "sender": {
      "type": "string",
      "title": "Sender"
    },
    "recipient": {
      "type": "string",
      "title": "Recipient"
    },
    "content": {
      "type": "string",
      "title": "Content"
    },
    "task_id": {
      "type": "string",
      "title": "Task Id"
    },
    "direction": {
      "type": "string",
      "title": "Direction"
    },
    "delivered": {
      "type": "boolean",
      "title": "Delivered"
    },
    "external_endpoint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "External Endpoint"
    },
    "created_at": {
      "type": "number",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "sender",
    "recipient",
    "content",
    "task_id",
    "direction",
    "delivered",
    "external_endpoint",
    "created_at"
  ]
}