FeatureFuel
0

Anthropic Chat Model: support structured outputs (Output Format JSON Schema)

Source: n8n-io/n8n#43271 · opened by @kauecostax
Feature request Add an Output Format option to the Anthropic Chat Model node, so the final response can be constrained to a JSON Schema through [Anthropic structured outputs]( (output_config.format). Why Today the only way to get structured JSON from Claude in an AI Agent is Require Specific Output Format with the Structured Output Parser. The parser asks the model to call a formatting tool and validates the result afterwards, so the format depends on the model following instructions. With newer models we see frequent "Model output doesn't fit required format" errors (the output arrives as a string, or with extra keys), and retries do not always fix it. The Anthropic API can enforce the schema while generating, which removes this class of error. The OpenAI Chat Model node already exposes the equivalent (Text Format json_schema on the Responses API), but the Anthropic node has no way to send output_config.format. Proposal • New options in the node: Output For…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests