{"slug": "agent-engineering-pydantic-ai", "title": "Agent engineering: Pydantic AI", "summary": "A developer built a news reader agent using Pydantic AI, the agent framework from the Pydantic team, which leverages Pydantic's validation to create a FastAPI-like experience with decorators and type annotations. This is the fifth iteration of the project, following versions built with Claude Agent SDK and Pi SDK.", "body_md": "This is the fifth take on the same news reader. The [Claude Agent SDK version](https://roman.pt/posts/agent-sdk-rewrite/) was a single Python file with tools and sub-agents. The [Pi SDK version](https://roman.pt/posts/pi-sdk-version/) was a single TypeScript file with an event-based session. This time I used [Pydantic AI](https://ai.pydantic.dev/), the agent framework from the Pydantic team.\n\nPydantic AI’s pitch is that since every AI library already depends on Pydantic for validation, you might as well build agents directly on it. The result feels like FastAPI for agents: decorators, type annotations, and automatic schema generation.", "url": "https://wpnews.pro/news/agent-engineering-pydantic-ai", "canonical_source": "https://roman.pt/posts/pydantic-ai-version/", "published_at": "2026-06-07 15:00:00+00:00", "updated_at": "2026-06-15 20:41:39.140228+00:00", "lang": "en", "topics": ["ai-agents", "developer-tools", "artificial-intelligence"], "entities": ["Pydantic AI", "Claude Agent SDK", "Pi SDK", "Pydantic"], "alternates": {"html": "https://wpnews.pro/news/agent-engineering-pydantic-ai", "markdown": "https://wpnews.pro/news/agent-engineering-pydantic-ai.md", "text": "https://wpnews.pro/news/agent-engineering-pydantic-ai.txt", "jsonld": "https://wpnews.pro/news/agent-engineering-pydantic-ai.jsonld"}}