Zum Inhalt
HALOWERK

Modellwerk

context plan

Plans the division of a long input for a given model. It reserves room for the system prompt, the expected answer and a safety margin, then works out how many chunks are needed and where to cut, preferring paragraph boundaries over line and sentence boundaries and never cutting inside a word. Optional overlap carries context across the seams.

POST https://modell.halowerk.com/v1/context-plan

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
textstringJaThe document to split.
modelstringJaTarget model id, e.g. claude-opus-5.
expected_output_tokensintegerNeinRoom to reserve for the answer per chunk.
system_prompt_tokensintegerNeinRoom to reserve for the system prompt per chunk.
overlap_tokensintegerNeinTokens of the previous chunk repeated at the start of the next.
safety_marginnumberNeinFraction of the window held back against estimation error. 0.1 = 10 percent.
boundarystringNeinWhere to cut. auto tries paragraph, then line, then sentence.
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "text",
    "model"
  ],
  "additionalProperties": false,
  "properties": {
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000000,
      "description": "The document to split."
    },
    "model": {
      "type": "string",
      "description": "Target model id, e.g. claude-opus-5."
    },
    "expected_output_tokens": {
      "type": "integer",
      "minimum": 0,
      "default": 2000,
      "description": "Room to reserve for the answer per chunk."
    },
    "system_prompt_tokens": {
      "type": "integer",
      "minimum": 0,
      "default": 500,
      "description": "Room to reserve for the system prompt per chunk."
    },
    "overlap_tokens": {
      "type": "integer",
      "minimum": 0,
      "maximum": 20000,
      "default": 0,
      "description": "Tokens of the previous chunk repeated at the start of the next."
    },
    "safety_margin": {
      "type": "number",
      "minimum": 0,
      "maximum": 0.5,
      "default": 0.1,
      "description": "Fraction of the window held back against estimation error. 0.1 = 10 percent."
    },
    "boundary": {
      "type": "string",
      "enum": [
        "absatz",
        "zeile",
        "satz",
        "auto"
      ],
      "default": "auto",
      "description": "Where to cut. auto tries paragraph, then line, then sentence."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "text": "First section with the customer requirements.\n\nSecond section with implementation constraints and acceptance criteria.",
  "model": "gpt-5-mini",
  "expected_output_tokens": 800,
  "boundary": "auto"
}

Ergebnis & Dokumentation

Veröffentlichtes Ergebnisschema anzeigen
{
  "$ref": "https://modell.halowerk.com/v1/context-plan/schema#/outputSchema"
}

Veröffentlichtes Ergebnisbeispiel öffnen

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 →