
  <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
      <title>HANS</title>
      <link>https://www.hansking.cn/blog</link>
      <description>A posts created with Next.js and Tailwind.css</description>
      <language>en-us</language>
      <managingEditor>admin@hansking.cn (HANS)</managingEditor>
      <webMaster>admin@hansking.cn (HANS)</webMaster>
      <lastBuildDate>Thu, 22 Jan 2026 10:00:00 GMT</lastBuildDate>
      <atom:link href="https://www.hansking.cn/tags/结构化输出/feed.xml" rel="self" type="application/rss+xml"/>
      
  <item>
    <guid>https://www.hansking.cn/blog/2026jie-gou-hua-sheng-cheng-de-zhong-ji-shi-jian-JSONSchema-yu-lei-xing-an-quan</guid>
    <title>结构化生成的终极实践：JSON Schema 与类型安全</title>
    <link>https://www.hansking.cn/blog/2026jie-gou-hua-sheng-cheng-de-zhong-ji-shi-jian-JSONSchema-yu-lei-xing-an-quan</link>
    <description>[{&quot;value&quot;:&quot;结构化生成的终极实践：JSON Schema 与类型安全&quot;,&quot;url&quot;:&quot;#结构化生成的终极实践json-schema-与类型安全&quot;,&quot;depth&quot;:1},{&quot;value&quot;:&quot;一、先设计数据契约，再写 Prompt&quot;,&quot;url&quot;:&quot;#一先设计数据契约再写-prompt&quot;,&quot;depth&quot;:2},{&quot;value&quot;:&quot;二、TypeScript 类型和运行时校验是两回事&quot;,&quot;url&quot;:&quot;#二typescript-类型和运行时校验是两回事&quot;,&quot;depth&quot;:2},{&quot;value&quot;:&quot;三、输出协议要包含版本和状态&quot;,&quot;url&quot;:&quot;#三输出协议要包含版本和状态&quot;,&quot;depth&quot;:2},{&quot;value&quot;:&quot;四、Prompt 仍然重要，但不再承担全部责任&quot;,&quot;url&quot;:&quot;#四prompt-仍然重要但不再承担全部责任&quot;,&quot;depth&quot;:2},{&quot;value&quot;:&quot;五、解析失败时要有分层修复策略&quot;,&quot;url&quot;:&quot;#五解析失败时要有分层修复策略&quot;,&quot;depth&quot;:2},{&quot;value&quot;:&quot;六、语义校验比形状校验更难&quot;,&quot;url&quot;:&quot;#六语义校验比形状校验更难&quot;,&quot;depth&quot;:2},{&quot;value&quot;:&quot;七、批量处理要记录坏样本&quot;,&quot;url&quot;:&quot;#七批量处理要记录坏样本&quot;,&quot;depth&quot;:2},{&quot;value&quot;:&quot;八、从 Schema 生成类型和文档&quot;,&quot;url&quot;:&quot;#八从-schema-生成类型和文档&quot;,&quot;depth&quot;:2},{&quot;value&quot;:&quot;九、评测结构化生成要看失败类型&quot;,&quot;url&quot;:&quot;#九评测结构化生成要看失败类型&quot;,&quot;depth&quot;:2},{&quot;value&quot;:&quot;总结：结构化生成是协议设计，不是格式许愿&quot;,&quot;url&quot;:&quot;#总结结构化生成是协议设计不是格式许愿&quot;,&quot;depth&quot;:2}]</description>
    <pubDate>Thu, 22 Jan 2026 10:00:00 GMT</pubDate>
    <author>admin@hansking.cn (HANS)</author>
    <category>AI</category><category>LLM</category><category>JSON Schema</category><category>TypeScript</category><category>结构化输出</category>
  </item>

    </channel>
  </rss>
