Zum Inhalt
HALOWERK

Agentenwerk

result consensus

Takes two to twelve answers and returns a field-by-field comparison. For JSON answers every leaf path is compared across responders: a path is agreed when all responders that supplied it carry the same value, conflicting when they differ, and partial when some omitted it. Numbers count as equal inside a relative tolerance you set.

POST https://agent.halowerk.com/v1/result-consensus

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
answersarrayJaThe answers to compare. Two to twelve entries.
number_tolerancenumberNeinRelative tolerance below which two numbers count as equal.
text_similarity_thresholdnumberNeinWord-overlap ratio from which two texts count as agreeing.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "answers"
  ],
  "additionalProperties": false,
  "properties": {
    "answers": {
      "type": "array",
      "minItems": 2,
      "maxItems": 12,
      "description": "The answers to compare. Two to twelve entries.",
      "items": {
        "type": "object",
        "required": [
          "responder",
          "value"
        ],
        "additionalProperties": false,
        "properties": {
          "responder": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Name of the answering agent."
          },
          "value": {
            "description": "The answer: a JSON document or a string."
          },
          "weight": {
            "type": "number",
            "minimum": 0,
            "maximum": 100,
            "default": 1,
            "description": "Optional weight for the majority count."
          }
        }
      }
    },
    "number_tolerance": {
      "type": "number",
      "minimum": 0,
      "maximum": 1,
      "default": 0.001,
      "description": "Relative tolerance below which two numbers count as equal."
    },
    "text_similarity_threshold": {
      "type": "number",
      "minimum": 0,
      "maximum": 1,
      "default": 0.6,
      "description": "Word-overlap ratio from which two texts count as agreeing."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "answers": [
    {
      "responder": "beispiel",
      "value": null,
      "weight": 1
    },
    {
      "responder": "beispiel",
      "value": null,
      "weight": 1
    }
  ],
  "number_tolerance": 0.001,
  "text_similarity_threshold": 0.6
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →