Amazon Bedrock 为 Claude 模型推出结构化输出
原标题:Structured outputs for Anthropic Claude models on Amazon Bedrock
AI 摘要
AWS 宣布 Amazon Bedrock 上所有 Anthropic Claude 模型现已支持结构化输出,覆盖 bedrock-runtime 与 bedrock-mantle 两个端点。该功能通过约束解码在生成阶段强制 JSON Schema,使输出从概率性变为确定性,开发者无需再自行解析、重试或后处理。同时提供严格工具调用(strict tool use)以校验智能体工作流中的工具参数,并支持批处理、跨区域推理与流式输出。
正文节选
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, where the model is available. Whether you call Claude through Boto3 and the bedrock-runtime APIs or through the Messages API and the bedrock-mantle endpoint, you can now receive schema-compliant JSON responses that conform to a defined structure. You no longer need custom parsing, retry logic, or