October 2026 Summaries

11 posts from Pydantic

Filter
Month: Year:
Post Summaries Back to Blog
Rendreal is a conversational print-ordering platform that lets customers describe a project, receive print-ready artwork and a validated quote, and complete payment through a checkout link without visiting a printer’s website. Built by Vstorm using Pydantic AI, it operates through web chat, WhatsApp, and external assistants connected via an MCP server, while sharing a common service layer for product configurations, designs, and orders. Specialist agents handle print specifications and design creation, enabling users to generate or edit materials such as flyers, posters, business cards, postcards, and bookmarks from prompts or uploaded assets. Typed tool definitions and validation help ensure order details meet catalog requirements before quotes or orders are issued, reducing errors involving specifications such as bleed, resolution, and layout. The company currently supports five product types and presents its approach as a model for businesses with catalogs, quotes, and checkout processes, while noting that it has not yet created an open network of independently negotiating supplier agents.
Oct 30, 2026 631 words in the original blog post.
Pydantic is preparing version 3 after substantial improvements to V2, which has received fourteen minor releases since June 2023 and now ranks among PyPI’s 20 most downloaded packages with more than 800 million monthly downloads. The project aims to make the V3 transition less disruptive than V1-to-V2 by limiting breaking changes to correctness fixes or changes that allow users to restore prior behavior, while removing V1 deprecations and the pydantic.v1 namespace without a comparable API overhaul. Although no release date has been set, V3 is targeted to approach its final state by year-end. Pydantic V1.10.27 is the final V1 release and includes security fixes also available through V2.14.2’s pydantic.v1 namespace, while V2 will continue receiving major bug and security fixes after V3 launches until most users have migrated. Pydantic remains open source and also offers enterprise support for organizations needing migration assistance, vulnerability coordination, service-level agreements, or support for older production deployments.
Oct 30, 2026 468 words in the original blog post.
Code mode allows AI agents to write sandboxed programs that call tools through loops, branches, and parallel operations rather than having the model individually manage each tool call and result. A benchmark of 5,276 runs across five small CRUD applications and eight models found that its benefits grow substantially with task length: on long multi-step tasks, code mode reduced average cost by 58% and wall-clock time by 51% while improving success rates by 16 percentage points, and at 200-item workloads it was typically 47% to 75% cheaper while maintaining higher correctness. The results suggest that savings come less from reducing model requests, since modern models can already batch many tool calls, and more from reducing the tokens spent generating calls and processing intermediate outputs. Code mode was less advantageous for small tasks because its instructions impose a fixed overhead, and it can introduce risks such as buggy generated code, duplicated writes after retries, and harder debugging. The described Pydantic AI implementation runs generated code in the Monty sandbox with restricted host access, explicit tool permissions, and time and memory limits, while retaining traces for individual tool calls.
Oct 28, 2026 5,034 words in the original blog post.
An MCP Python SDK maintainer received the Agentic AI Foundation’s Outstanding Technical Contribution Award at AGNTCon + MCPCon North America for work advancing the SDK and the Model Context Protocol ecosystem. Key contributions include the stable v2 release, which introduced a new MCPServer API, multi-round-trip requests, standard error codes, stronger authorization, routable transport headers, a deprecation policy, and default OpenTelemetry tracing, alongside sponsorship of the WebSocket transport specification. The author also maintains underlying Python infrastructure including Starlette and Uvicorn, enabling fixes across the stack, and credits colleague Laís Carvalho, MCP contributors, and Pydantic for their support. The same SDK improvements are being applied to the Logfire MCP server, where distributed tracing can link client-server requests into unified Logfire traces and help users investigate production issues through coding agents.
Oct 27, 2026 489 words in the original blog post.
Logs record individual events but often cannot reliably connect concurrent operations, identify parent-child relationships, or show how time is distributed across a request, while spans provide trace, span, and parent IDs alongside start and end times to represent those relationships. Adding request IDs and structured duration logs improves correlation, but becomes difficult when operations run repeatedly, fail before completion, or cross libraries and services that do not propagate custom fields. The text argues that manually adding operation IDs, parent IDs, start events, durations, and cross-service headers effectively recreates distributed tracing, whereas OpenTelemetry standardizes this information through spans and the W3C traceparent header. Using Pydantic Logfire instrumentation, each checkout operation can be visualized as a trace showing concurrent work, dependencies, and durations, and completed spans can be queried for metrics such as p95 latency. Automatic instrumentation can also trace framework requests, HTTP calls, and database queries that application logs may omit. Logs remain useful for discrete events such as retries, warnings, and cache misses, and can be attached to active spans so they retain trace context.
Oct 26, 2026 1,827 words in the original blog post.
Pydantic AI Harness now supports E2B as a native sandbox provider, allowing coding agents to run shell commands and edit files inside isolated E2B microVMs rather than on a user’s local machine, protecting local credentials, environment files, and other resources. By adding the E2BSandbox capability alongside tools such as Coder, Shell, or FileSystem, developers can control the available operations, working directory, timeout, internet access, and cleanup lifecycle, while preserving a sandbox’s filesystem and memory across paused and resumed runs through a credential-free workspace reference. The post demonstrates a two-stage diagnose-and-fix workflow in which an agent first analyzes failing Python tests, saves a diagnosis, pauses the sandbox, and later resumes it to apply and verify repairs, with the host application independently checking test results and file integrity. A second example combines E2B with Temporal durable workflows to show that an agent can continue from the same sandbox after its worker process is forcibly killed, although commands may be retried and should therefore be designed to be idempotent. Observability is provided through Pydantic AI and Logfire tracing, which records workspace identifiers and tool activity, while E2B is positioned for persistent multi-run coding sessions and ModalSandbox for short-lived, highly parallel workloads.
Oct 22, 2026 2,333 words in the original blog post.
Pydantic moved Logfire’s GitHub Actions workloads from a combination of GitHub-hosted runners, Depot, and Ubicloud to RunsOn-managed ephemeral EC2 runners in its AWS account on September 1, responding to CI costs that rose from $3,990 in June to $18,200 in August as AI-assisted development drove pull requests and workflow executions sharply higher. Although runner usage increased from 1.23 million minutes in August to 1.62 million in September, total monthly CI spending fell to $5,700, including RunsOn licensing and AWS compute, storage, caching, and transfer costs. RunsOn retains GitHub Actions as the workflow control plane while giving Pydantic greater control over runner types, networking, capacity, storage, and pricing, with most workloads using Graviton-based instances and x64 reserved for specific container builds and tests. The deployment combines local caching, persistent disks for BuildKit state, diversified EC2 capacity pools, and selective use of Spot and On-Demand instances, keeping interruption-sensitive merge, release, and deployment jobs on more reliable capacity. Pydantic concluded that effective cost control depends on using Spot capacity where retries are inexpensive, sizing runners for critical-path latency rather than simply choosing the lowest price, and placing caches close to compute while retaining them only when reuse is likely.
Oct 16, 2026 707 words in the original blog post.
The author argues that agent workflows are better expressed as ordinary typed code than as specialized graph-library nodes and edges, because standard language constructs already represent branching, looping, fan-out, joins, retries, and state through the call stack. Graph visualizations remain useful for design and observability, but the author contends they should describe code rather than serve as the execution model. A central claim is that graph systems struggle to simultaneously provide type safety, parallel execution, and durable snapshots, particularly when concurrent nodes mutate shared state and require semantic merge rules that type checkers cannot fully validate. The proposed alternative uses Python async functions for orchestration, Temporal for durable replay outside a sandbox, and Monty, a sandboxed Python interpreter, for safely executing model-written workflows with snapshotting at registered external calls. In this model, agents write and type-check their own workflow code, while humans focus on defining objectives, constraints, evaluations, and feedback systems; execution traces can then provide a graph-like record of the workflow that actually occurred.
Oct 13, 2026 2,513 words in the original blog post.
Pydantic v2.14, released October 8, adds official Python 3.15 support while ending support for Python 3.9, alongside contributions from 13 external developers, new capabilities, bug fixes, and schema-generation performance improvements. Key additions include the stabilized MISSING sentinel for representing omitted field values, support for Python 3.15 lazy imports, TypeForm-aware type inference in tools such as TypeAdapter, frozendict validation and serialization, and a __namespace__ option for create_model() that is intended to replace the more limited __validators__ argument before Pydantic v3. Several common types, including Fraction, named tuples, deque, OrderedDict, and Counter, now receive native pydantic-core schemas for faster validation, serialization, and constraint support. The release also changes aspects of JSON Schema output, model configuration behavior, generated signatures for models using aliases, numeric constraint handling, and error reporting for invalid wrap-serializer calls, so users are advised to review compatibility implications before upgrading. Performance work targets model construction and schema generation, with individual benchmarked improvements generally ranging from 5% to 20%, particularly benefiting applications that define many models at import time.
Oct 08, 2026 1,575 words in the original blog post.
Claude Agent SDK packages a Python client with a bundled Claude Code runtime, making it well suited to products that intentionally need a coding agent with built-in shell, filesystem, project-instruction, plugin, permission, and agent-loop behavior, but potentially less suitable for unrelated applications because those embedded choices can affect behavior beyond the public API. The discussion argues that agent prompts, tools, permissions, retries, and control loops should be treated as meaningful dependencies, since SDK upgrades can alter bundled system prompts or tool definitions even when an application’s own code, model, and prompts remain unchanged. It contrasts this approach with Pydantic AI, which lets developers assemble an agent incrementally by selecting models, instructions, typed tools, outputs, dependencies, execution environments, and optional capabilities such as coding tools, memory, planning, or subagents. Pydantic AI can run tools locally or in interchangeable sandboxes including Modal, E2B, and Sprites, while observability through Logfire and regression testing through Pydantic Evals can expose prompts, tool calls, retries, and behavior changes during upgrades. The central recommendation is to choose Claude Agent SDK when Claude Code’s prebuilt coding-agent behavior is the intended product, and to use a more composable framework when the application requires direct control over its agent runtime and capabilities.
Oct 05, 2026 1,471 words in the original blog post.
AI agents can produce plausible but incorrect results without errors because their non-deterministic, multi-step workflows may involve faulty tool arguments, poor tool selection, abandoned context, looping, or degraded reasoning that traditional application monitoring does not reveal. Effective agent observability therefore requires correlated session-level traces that capture planning, model calls, tool executions, backend activity, latency, token usage, costs, errors, and multi-agent handoffs on a shared timeline, ideally using portable OpenTelemetry standards. The piece argues that conventional APM, manual logs, and LLM-focused tracing tools offer only partial visibility, particularly when database and application work must be connected to agent behavior. It presents Pydantic Logfire as an OpenTelemetry-based platform that can instrument Pydantic AI agents with minimal setup, providing conversation replay, tool inspection, cost tracking, full-stack traces, SQL-accessible telemetry, MCP support, and integration with evaluation datasets. It concludes that observability should be established early in production agent development so incidents can become reproducible tests, costs can be monitored per step, and agent quality can improve through measurable feedback.
Oct 01, 2026 1,119 words in the original blog post.