Amazon Bedrock 为 Anthropic Claude 模型上线结构化输出
Amazon Bedrock 现已在 bedrock-runtime 和 bedrock-mantle 两个端点为所有 Anthropic Claude 模型提供结构化输出,返回符合 JSON Schema 的响应,无需自定义解析或重试逻辑。该功能通过约束解码在生成 token 时强制执行 schema,并提供 JSON Schema 输出格式和严格工具调用两种机制。编译后的语法缓存 24 小时,首次使用新 schema 的请求会略慢;递归 schema、外部 $ref 和数值、字符串长度约束不被强制执行。
mes of requests asynchronously while still receiving schema-compliant outputs. On the bedrock-runtime endpoint, it also works with cross-Region inference, so you can use it across AWS Regions without additional setup. If you need responses in real time, you can stream structured responses as typed events. How it works When you make a request with a JSON schema, here’s what happens behind the scenes: Schema validation – Amazon Bedrock validates your JSON schema against the supported JSON Schema D
匹配字段正文




