Amazon Bedrock 为 Anthropic Claude 模型提供结构化输出支持
Structured outputs for Anthropic Claude models on Amazon Bedrock
做 Claude 应用开发的可以看看,Bedrock 现在能直接吐符合 JSON Schema 的结果,省掉一堆解析和重试代码。
Amazon Bedrock 在 bedrock-runtime 和 bedrock-mantle 两个端点上为所有 Anthropic Claude 模型上线结构化输出功能。开发者可通过 JSON Schema 输出格式和严格 tool use,直接获得符合预定义 schema 的 JSON。此前需要自行编写解析、重试和后处理逻辑,现在这部分工作被内置能力替代。
Structured outputs for Anthropic Claude models on Amazon Bedrock
Amazon Bedrock now supports structured outputs for all Anthropic Claude models on both the bedrock-runtime and bedrock-mantle endpoints. Receive schema-compliant JSON that conforms to a defined structure, without custom parsing, retry logic, or post-processing, using JSON Schema output format and strict tool use.