<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Pydantic on 我的博客</title><link>https://pengkangzhen.github.io/tags/pydantic/</link><description>Recent content in Pydantic on 我的博客</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Mon, 29 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://pengkangzhen.github.io/tags/pydantic/index.xml" rel="self" type="application/rss+xml"/><item><title>Pydantic 入门：为 LLM 结构化输出写好数据模型</title><link>https://pengkangzhen.github.io/posts/pydantic-structured-output/</link><pubDate>Mon, 29 Jun 2026 00:00:00 +0000</pubDate><guid>https://pengkangzhen.github.io/posts/pydantic-structured-output/</guid><description>结构化输出的可靠性最终都落在那个 Pydantic 模型上。本文以一个&amp;rsquo;让 LLM 建立运筹优化模型&amp;rsquo;的真实场景，从基础定义讲到嵌套、Enum、before/after 验证器，再到 LangChain 接入。</description></item></channel></rss>