Dokumentationerreichbar
Anthropic, Structured outputs
platform.claude.com (externe Seite)
Die Doku zur strukturierten Ausgabe der Claude-Schnittstelle: Antworten nach einem mitgegebenen Schema, gesichert durch eingeschränkte Erzeugung. Der Abschnitt zu ungültigen Ausgaben nennt die Grenzen der Garantie: Eine Ablehnung hat Vorrang vor dem Schema und kommt mit Statuscode 200, eine an der Tokengrenze abgeschnittene Antwort ist unvollständig. Wertebereiche für Zahlen (minimum, maximum) unterstützt das Schema nicht.
geprüft 10.11.2026
Worauf sich diese Seite beruft, wörtlich, abgerufen am 11.10.2026:
Structured outputs guarantee schema-compliant responses through constrained decoding
bestätigt 10.11.2026Without structured outputs, Claude can generate malformed JSON responses or invalid tool inputs that break your applications.
bestätigt 10.11.2026The response completes normally, with no error and no special
bestätigt 10.11.2026Compare enum values case-insensitively, and avoid enum values that differ only in capitalization.
bestätigt 10.11.2026Although structured outputs guarantee schema compliance in most cases, there are scenarios where the output might not match your schema
bestätigt 10.11.2026The output might not match your schema because the refusal message takes precedence over schema constraints
bestätigt 10.11.2026Claude might return a value that differs from your schema only in capitalization, typically in the first letter of a word following a space
bestätigt 10.11.2026A property that asks for the model's thinking or step-by-step reasoning might lead to a reasoning_extraction refusal.
bestätigt 10.11.2026Retry with a higher max_tokens value to get the complete structured output.
bestätigt 10.11.2026
01 Was Automatisierung mit KI ist02 Ein Modell auf eigene Daten abstimmen03 Abläufe bauen mit n8n05 Wenn ein Schritt schiefgeht08 Woran es fehlt, entscheidet den Weg