{
  "metadata": {
    "schema": "neuro-san/0.3",
    "network_name": "fab_quoter",
    "version": "1.0.0",
    "origin": "https://peer-fab.doaipm.com",
    "description": "ApexFab two-agent PCB/SMT quoting network: fab_quote_lead coordinates volume unit pricing and delegates factory queue & inspection scheduling to smt_leadtime_estimator.",
    "tags": [
      "pcb",
      "smt",
      "lead-time",
      "volume-quote",
      "peer"
    ],
    "sly_data_policy": {
      "default": "deny",
      "accepted_optional_keys": [
        "target_region"
      ]
    }
  },
  "commondefs": {
    "replacement_strings": {
      "facility_network": "ApexFab ShenZhen-Line4 / Penang-Line2 / Munich-Express"
    }
  },
  "tools": [
    {
      "name": "fab_quote_lead",
      "role": "front_man",
      "function": {
        "description": "Lead fabrication estimator that prices bare PCB + SMT assembly across quantity tiers, adds stencil/NRE fees, and coordinates lead-time estimation with smt_leadtime_estimator.",
        "parameters": {
          "type": "object",
          "properties": {
            "inquiry": {
              "type": "string",
              "description": "Hardware board specification, layer count, quantity, and target timeline."
            },
            "layers": {
              "type": "integer",
              "minimum": 2,
              "maximum": 24
            },
            "qty": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000000
            },
            "has_fine_bga": {
              "type": "boolean"
            }
          },
          "required": [
            "inquiry"
          ]
        }
      },
      "instructions": "You are fab_quote_lead at ApexFab Open Peer Quoter. Parse layer count, board quantity, BGA/fine-pitch complexity, and optional target_region from explicitly forwarded sly_data (default GLOBAL if omitted). Delegate schedule calculation to smt_leadtime_estimator, then return transparent unit price tiers, NRE breakdown, and total extended estimate.",
      "tools": [
        "smt_leadtime_estimator"
      ],
      "actions": [
        "estimate_smt_quote"
      ],
      "allow": {
        "to_downstream": {
          "sly_data": [
            "target_region"
          ]
        }
      }
    },
    {
      "name": "smt_leadtime_estimator",
      "role": "specialist",
      "function": {
        "description": "Computes bare-board fab days, SMT pick-and-place setup, AOI/X-ray inspection hours, and regional transit buffers for standard and expedite builds.",
        "parameters": {
          "type": "object",
          "properties": {
            "layers": {
              "type": "integer",
              "minimum": 2,
              "maximum": 24
            },
            "qty": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000000
            },
            "has_fine_bga": {
              "type": "boolean"
            },
            "target_region": {
              "type": "string"
            }
          },
          "required": [
            "layers",
            "qty"
          ]
        }
      },
      "instructions": "Estimate factory turnaround in business days across bare PCB lamination, laser stencil, SMT assembly, AOI + X-ray verification, and regional courier transit. Return standard vs expedite schedules with line slot assignment.",
      "tools": [],
      "allow": {
        "to_downstream": {
          "sly_data": []
        }
      }
    }
  ]
}