Skip to content
HALOWERK

Depwerk

link function section call order

Return a greedy function-section order maximizing declared adjacent hot-call weights.

POST https://dep.halowerk.com/v1/link-function-section-call-order

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
functionsarrayYes
callsarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "functions": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 64,
        "minLength": 1
      },
      "maxItems": 100,
      "minItems": 1
    },
    "calls": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1
          },
          "to": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1
          },
          "weight": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000000000
          }
        },
        "required": [
          "from",
          "to",
          "weight"
        ],
        "additionalProperties": false
      },
      "maxItems": 500,
      "minItems": 0
    }
  },
  "required": [
    "functions",
    "calls"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "functions": [
    "A",
    "B",
    "C"
  ],
  "calls": [
    {
      "from": "A",
      "to": "C",
      "weight": 10
    },
    {
      "from": "C",
      "to": "B",
      "weight": 5
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’