{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/seiche-info/json-schema/seiche-info-a2-asend-schema.json",
  "title": "A2ASend",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/seiche-info-a2a-api-openapi.yml#/components/schemas/A2ASend",
  "properties": {
    "message": {
      "$ref": "#/$defs/A2AMessage"
    },
    "configuration": {
      "$ref": "#/$defs/A2AConfiguration"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "message"
  ],
  "$defs": {
    "A2AConfiguration": {
      "properties": {
        "returnImmediately": {
          "type": "boolean",
          "title": "Returnimmediately",
          "default": false
        },
        "acceptedOutputModes": {
          "items": {
            "type": "string",
            "enum": [
              "text/plain",
              "application/json"
            ]
          },
          "type": "array",
          "maxItems": 2,
          "title": "Acceptedoutputmodes"
        },
        "historyLength": {
          "type": "integer",
          "maximum": 100.0,
          "minimum": 0.0,
          "title": "Historylength",
          "default": 0
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "A2AConfiguration"
    },
    "A2AMessage": {
      "properties": {
        "messageId": {
          "type": "string",
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9_.:-]+$",
          "title": "Messageid"
        },
        "role": {
          "type": "string",
          "const": "ROLE_USER",
          "title": "Role"
        },
        "parts": {
          "items": {
            "$ref": "#/$defs/A2APart"
          },
          "type": "array",
          "maxItems": 16,
          "minItems": 1,
          "title": "Parts"
        },
        "contextId": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_.:-]+$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Contextid"
        },
        "taskId": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9_.:-]+$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Taskid"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "messageId",
        "role",
        "parts"
      ],
      "title": "A2AMessage"
    },
    "A2APart": {
      "properties": {
        "text": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 16384
            },
            {
              "type": "null"
            }
          ],
          "title": "Text"
        },
        "data": {
          "title": "Data"
        },
        "mediaType": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "text/plain",
                "application/json"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Mediatype"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "A2APart"
    }
  }
}