Learning resourcesReviewed · Pydantic

Pydantic AI Capabilities overview

Pydantic AI's Capabilities overview is a guide for Python developers assembling AI agents, but available behavior depends on the package, model and configuration chosen. It explains reusable behavior bundles, on-demand tools, capability events and provider-native versus local execution.

Researched 25 Nov 2026

In short.

Pydantic AI's Capabilities overview is a guide for developers who want reusable AI-agent behavior, but it does not establish compatibility with a particular installed release or provider. It explains how capabilities combine tools, instructions, hooks, model settings and model selection, and distinguishes core features from the separate Pydantic AI Harness library. Its strongest implementation detail concerns deferred loading, typed events and provider-adaptive tools. Installation success, reliability, performance, costs and security effectiveness are not established; no examples were executed.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete selected page at [https://pydantic.dev/docs/ai/capabilities/overview/index.md], including its documentation-index and agent-query notices, capability catalog, bundling examples, event behavior and provider-adaptive configuration. Linked pages, package source, third-party documentation and service terms are excluded. No code, installation, integration or agent journey was executed. Compatibility, performance, security effectiveness, costs and redistribution rights remain unknown where the page supplies no evidence.

The overview

Identity

This is the Pydantic-hosted Capabilities documentation page at [https://pydantic.dev/docs/ai/capabilities/overview/index.md]. It explains an extension mechanism within Pydantic AI and provides a catalog of related capabilities.

The catalog distinguishes two packages: core pydantic-ai supplies features requiring model or framework support, while the official Pydantic AI Harness library supplies additional capabilities and complete agent stacks. The selected resource is the guide, rather than an installable capability or standalone assistant.

Assessment

The guide is useful when agent behavior has become spread across constructor arguments and separate toolsets. Its examples explain how to package related behavior for reuse, while its provider notes expose configuration differences that a simple feature catalog could conceal.

It provides substantial architectural guidance, but is not a complete installation tutorial or a performance comparison. The broad capability catalog describes advertised functionality; it does not establish that every listed integration works together or meets production requirements.

Users

The main audience is Python developers building AI agents that need shared tools, memory, guardrails, approval behavior or model-selection logic. Developers maintaining several agents can use the same capability abstraction to organize behavior across them.

Beginners can use the catalog to understand the available building blocks, although the examples assume familiarity with Python imports, functions and Agent construction. Experienced developers get more detailed guidance on asynchronous event listeners, stable identifiers, serialization and provider-dependent execution.

Capabilities

A capability can contribute tools, lifecycle hooks, instructions, model settings and model selection. Capabilities can remain active throughout a run or expose their tools and instructions only after the model loads them.

The catalog covers workspaces, file and shell tools, MCP connections, web research, delegation, context management, memory, control mechanisms, persistence and instrumentation. Coder and Researcher are described as complete agent stacks assembled from capabilities.

Provider-adaptive tools cover web search, URL fetching, image generation, X search and MCP. These expose different execution routes rather than guaranteeing identical behavior across providers.

Using it

Requirements

Using the Python examples requires Pydantic AI and access to a model suitable for the selected features. Harness capabilities come from the separate Harness package. Minimum Python and package versions, complete installation commands and provider authentication procedures are not specified.

The DuckDuckGo local search fallback requires the duckduckgo optional group; the local URL-fetch fallback requires web-fetch. Requesting a local strategy without its required extra raises UserError during capability construction.

Execution requirements depend on the workspace chosen. The catalog includes local directories, containers, locally hosted microVMs, remote servers and cloud sandboxes, each with different infrastructure needs.

Mechanism

Agent accepts capability instances through its capabilities parameter. The Capability convenience class bundles instructions, function tools and toolsets without subclassing. More extensive behavior, such as lifecycle hooks, model settings or native tools, uses AbstractCapability.

Setting defer_loading=True keeps a bundle's instructions and tools hidden until the model loads it. Deferred bundles retain a catalog entry. Tool search serves a related purpose by finding individual tools in a large catalog.

Capabilities can coordinate through typed CapabilityEvent objects. Ordinary listeners follow stream order; dispatch='immediate' makes emission wait for listeners, enabling a tool to inspect a cancellation decision before proceeding. That cancellation pattern depends on the tool honoring the decision.

Event listeners run sequentially in capability order. Attaching an on_event listener also makes an otherwise non-streaming agent.run use provider streaming. Capability events are internal signals and are not forwarded by UI adapters by default.

Setup

The documented pattern is to import Agent and the desired capability classes, construct the capabilities and pass them in a list to Agent. Simple instructions and model settings can remain on Agent directly.

For custom bundles, create a Capability with an identifier, description and instructions, then register functions through its tool decorator. Deferred loading adds defer_loading=True and benefits from a description that tells the model when to load the bundle.

Configure native and local execution explicitly where needed. MCP connects locally by default because it carries credentials; provider-native MCP requires native=True. Other adaptive tools generally default toward native execution, with local fallback enabled separately. Complete environment setup is not supplied.

Example

The refund example defines a Capability named refunds, adds an instruction to confirm an order ID and registers a refund_status function through tool_plain. The agent receives that bundle through capabilities. The function returns a fixed status string; it neither queries a real order system nor issues a refund.

The file-write examples illustrate event publication and immediate cancellation. Their functions emit events and return status text without writing files. They demonstrate coordination patterns rather than a complete filesystem implementation. None of these examples was executed.

Assessment & evidence

Limitations

Native and local routes do not enforce every constraint identically. For example, WebSearch(max_uses=5) requires native support because the bundled local fallback cannot enforce that count. Unsupported constrained configurations can raise UserError.

XSearch has no default fallback for models outside xAI; its subagent fallback must be configured explicitly. Image generation distinguishes direct image-model fallback from subagent fallback. With a subagent fallback configured, a native-tool factory returning None does not simply remove the offered tool and can lead to UserError when called.

Workspace isolation also varies. Local Workspace and SSH Workspace are described as unsandboxed, and Bubblewrapped Workspace is explicitly described as a convenience rather than a security boundary. Catalog claims about guardrails or scanning are not security-audit results.

Compatibility, runtime behavior and model availability were not assessed. Model identifiers in examples do not establish that those models are available to a particular user.

Reasoning

The architectural value is a shared unit for behavior that belongs together: instructions, tools and, through custom implementations, hooks or model policy. This makes the guide especially relevant when the same behavior must be reused across agents.

Deferred loading offers a way to keep workflow-specific tools and instructions out of the initial context. That mechanism could help with large tool catalogs, but the page does not measure token savings, loading accuracy or task quality.

The native-versus-local distinction matters because it changes where work executes and which constraints are enforceable. Choosing a capability therefore also requires choosing an execution route, rather than relying on its name alone.

Alternatives

For straightforward configuration, the page recommends Agent's instructions and model_settings parameters. Capability is appropriate for declarative bundles of instructions and tools; AbstractCapability supports deeper extensions. Toolset wraps an existing AbstractToolset.

Always-on capabilities avoid a loading step, while deferred capabilities hide workflow-specific tools until requested. Native tools and local fallbacks offer alternative execution routes with different support and constraints.

Coder and Researcher provide preassembled Harness stacks for coding and web research. The page does not compare competing agent frameworks or provide evidence for choosing one over another.

Evidence

The evidence is the complete selected Pydantic-hosted page at [https://pydantic.dev/docs/ai/capabilities/overview/index.md], including its catalog, API explanations, examples and caveats. Linked documentation and third-party sites are outside the selected scope.

This is documentation evidence for intended behavior, not an independent implementation audit. It includes no observed execution results, comparative benchmarks or security-test results.

The captured source revision is sha256:5db3e7386e3eb14def266a013123705eb21b2f147ec6be71b3fdf5cc1748f4d9.

Access & freshness

Costs

The page supplies no package pricing, model rates, sandbox charges or deployment-cost estimates. Total operating cost is unknown and would depend on the selected models, services, execution infrastructure and usage.

Spend Limits is listed as supporting token and currency budgets. Caching, Code Mode and output-limiting capabilities are also described, but the page provides no measured savings or evidence that a particular configuration reduces total cost.

Rights

The selected page does not state a documentation licence, software licence or redistribution grant. Permission to redistribute the captured page or reuse its example code is therefore unknown from this evidence.

Terms governing linked services, model providers and third-party packages are not included. Their availability in the catalog does not establish rights to use or redistribute them.

Freshness

The page was captured on 2026-11-25 at 01:40:28.553 UTC. It does not identify a package release or last-updated date, so the capture time does not establish compatibility with a particular release.

The page explicitly deprecates fallback_model in favor of fallback_subagent_model for XSearch and ImageGeneration. It says the old name still works with a warning, while supplying both names is refused. ACP is separately labeled experimental. Future support and release timelines are unknown.

Actions

Before implementation, confirm that the installed release exposes the documented APIs, identify whether each chosen capability belongs to core or Harness, and check required extras and model support. Choose native or local execution explicitly where constraints or credential handling matter.

Start with one small capability and verify its tool registration, deferred loading and failure behavior before combining more components. Choose a workspace according to its documented isolation properties.

For event-based extensions, use explicit capability IDs when subscribers need stable attribution, and pin event names when serialized events must remain compatible. Check the streaming implications of listeners. Obtain applicable licences and service prices separately; they are not established by this page.

Evidence for this report

selected-page.txtselected · checked 2026-11-25