<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pydantic on Han's XYZ</title><link>https://han8931.github.io/categories/pydantic/</link><description>Recent content in Pydantic on Han's XYZ</description><generator>Hugo</generator><language>en</language><managingEditor>tabularasa8931@gmail.com (Han)</managingEditor><webMaster>tabularasa8931@gmail.com (Han)</webMaster><copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright><lastBuildDate>Mon, 15 Sep 2025 19:39:28 +0900</lastBuildDate><atom:link href="https://han8931.github.io/categories/pydantic/index.xml" rel="self" type="application/rss+xml"/><item><title>Agentic AI with Pydantic-AI Part 1.</title><link>https://han8931.github.io/pydantic-ai/</link><pubDate>Sun, 31 Aug 2025 00:00:00 +0000</pubDate><author>tabularasa8931@gmail.com (Han)</author><guid>https://han8931.github.io/pydantic-ai/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;AI has already changed how we interact with technology. The real shift is happening now with &lt;strong&gt;agents&lt;/strong&gt;: AI systems that can reason, make decisions, and take action.&lt;/p&gt;
&lt;p&gt;Unlike a chatbot that passively replies, an agent can &lt;strong&gt;break down complex tasks&lt;/strong&gt;, call APIs or databases, use tools, and deliver structured results. This is what makes the idea of &lt;em&gt;Agentic AI&lt;/em&gt; so powerful — it&amp;rsquo;s not just about conversation, it&amp;rsquo;s about &lt;strong&gt;problem-solving with initiative&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>Clean Validation with Pydantic v2</title><link>https://han8931.github.io/pydantic/</link><pubDate>Sat, 30 Aug 2025 00:00:00 +0000</pubDate><author>tabularasa8931@gmail.com (Han)</author><guid>https://han8931.github.io/pydantic/</guid><description>&lt;blockquote&gt;
&lt;p&gt;📝 &lt;strong&gt;Update&lt;/strong&gt; (2025-08): This post was originally published in &lt;strong&gt;April 2024&lt;/strong&gt; and has been updated to reflect changes in &lt;strong&gt;Pydantic v2&lt;/strong&gt;, including the new &lt;em&gt;field validator&lt;/em&gt;, &lt;em&gt;model validator&lt;/em&gt;, and &lt;em&gt;Annotated&lt;/em&gt;-based validation patterns. Also, this post now includes a &lt;strong&gt;new section on using Pydantic with MongoDB&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Python&amp;rsquo;s dynamic typing system is indeed convenient, allowing you to create variables without explicitly declaring their types. While this flexibility can streamline development, it can also introduce unexpected behavior, particularly when handling data from external sources like APIs or user input.&lt;/p&gt;</description></item></channel></rss>