NewsAI agentsPythonSoftware development

Pydantic AI 2: New Capabilities for AI Agents in Python

Version 2.0 of the Python framework Pydantic AI bundles tools, system prompts, hooks and model settings into so-called capabilities. According to an iX report by Gerhard Völkl, this makes it easier to build custom agents.

Pydantic AI 2: New Capabilities for AI Agents in Python

What is new

According to an article by Gerhard Völkl in iX Magazin, published by heise online, Pydantic AI introduces so-called capabilities in version 2.0. These bundle tools, system prompts, hooks and model settings into uniform, combinable building blocks. According to the article, the properties of an agent can thus be assembled modularly.

According to the report, the framework is model-agnostic: it supports common commercial chat models from OpenAI, Anthropic or Google as well as local models via Ollama.

Structure of an agent

The article describes that a chat model alone can only read and output text. Additional functions such as data access, memory or managing user preferences are provided by the so-called agent harness. According to the article, a number of common components for this harness have already emerged. Some are part of Pydantic AI, others can be integrated via the Pydantic AI Harness library, and the rest can be programmed yourself.

Assessment

For development teams in mid-sized companies that want to build AI agents into their own applications, a uniform pattern such as capabilities could reduce maintenance effort, because functions can be encapsulated and reused. What remains open from the available material is how stable the new architecture is in production use and how it compares to other agent frameworks; the sources here do not cover this.

Sources

Editorially owned by Ideal Syka. Sources and method: Newsroom & method. Tips and corrections: ai@i6eal.de.

Share
← All articles

All analyses are based on i6eal's own measurements or on clearly labelled sources. Figures are snapshots and may change; corrections are disclosed transparently.