{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.calculatorx.com/schemas/math.multiplication.agent.input.json",
  "title": "Multiplication — agent input",
  "oneOf": [
    {
      "title": "product",
      "type": "object",
      "additionalProperties": false,
      "required": [
        "a",
        "b",
        "mode"
      ],
      "properties": {
        "a": {
          "anyOf": [
            {
              "type": "number",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "string",
              "maxLength": 512,
              "pattern": "^\\s*[+-]?(?:[0-9]+\\.?[0-9]*|\\.[0-9]+)\\s*$"
            }
          ]
        },
        "b": {
          "anyOf": [
            {
              "type": "number",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "string",
              "maxLength": 512,
              "pattern": "^\\s*[+-]?(?:[0-9]+\\.?[0-9]*|\\.[0-9]+)\\s*$"
            }
          ]
        },
        "mode": {
          "const": "product"
        }
      }
    },
    {
      "title": "long",
      "type": "object",
      "additionalProperties": false,
      "required": [
        "a",
        "b",
        "mode"
      ],
      "properties": {
        "a": {
          "anyOf": [
            {
              "type": "number",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "string",
              "maxLength": 512,
              "pattern": "^\\s*[+-]?(?:[0-9]+\\.?[0-9]*|\\.[0-9]+)\\s*$"
            }
          ]
        },
        "b": {
          "anyOf": [
            {
              "type": "number",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            {
              "type": "string",
              "maxLength": 512,
              "pattern": "^\\s*[+-]?(?:[0-9]+\\.?[0-9]*|\\.[0-9]+)\\s*$"
            }
          ]
        },
        "mode": {
          "const": "long"
        }
      }
    }
  ],
  "description": "Exact decimal product of multiplicand × multiplier, with optional long-multiplication work.. Mode-discriminated agent contract. Named fields are canonical; a/b are legacy share-URL aliases. (calculation_version 1.0.4)"
}
