In short.
Pydantic AI’s Multi-agent Applications is a practical guide for Python developers building cooperating AI agents, but its examples require setup that the page does not explain. Its most useful details concern asynchronous delegation, dependency reuse, conversation isolation, shared usage accounting and cancellation. Delegation and programmatic hand-off receive substantial examples; graphs and broader autonomous-agent capabilities mainly receive introductions and links. No examples were executed, so compatibility, output quality, latency and actual operating costs are not assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is the complete Multi-agent Applications page at [https://pydantic.dev/docs/ai/guides/multi-agent-applications/index.md], including its introductory documentation-index and agent-query notices, code examples, diagrams and observability guidance. The documentation index and every linked page are excluded, including detailed SubAgents, graph, Harness, Temporal, Logfire and flight-booking documentation. Example execution claims and printed outputs were not reproduced. Installation, live provider behavior, performance and production suitability are not assessed; actual costs and applicable licenses remain unknown.
The overview
Identity
Multi-agent Applications is a guide in the Pydantic AI documentation at [https://pydantic.dev/docs/ai/guides/multi-agent-applications/index.md]. It explains how Python applications can coordinate multiple agents and distinguishes five levels of complexity: single-agent workflows, delegation, programmatic hand-off, graph-based control flow and deep agents.
The guide provides Python listings, control-flow diagrams and explanations of framework behavior. It is a learning resource for implementing coordination patterns.
Assessment
The guide is useful when a developer needs to decide who controls the next step: an agent requesting help through a tool, or application code choosing which agent runs next. Its implementation details address mistakes that can be easy to miss, including nested synchronous calls, incomplete usage accounting and assumptions about shared conversation history.
Beginners will need familiarity with Python functions, asynchronous execution and Pydantic AI’s Agent interface. Experienced developers gain concrete integration constraints, but the page does not establish production reliability or demonstrate that multiple agents outperform a single agent.
Users
The main audience is Python developers already using, or preparing to use, Pydantic AI. The delegation examples suit applications where one agent needs a specialist’s result before continuing. The hand-off example suits applications where code or a person controls progression between stages.
Developers investigating tracing, reusable service connections or coordinated request limits will also find relevant material. Readers seeking a no-code agent builder, an introductory Python course or a complete deployment walkthrough will need other resources.
Capabilities
The guide demonstrates a parent agent calling another agent through a tool, returning typed results, forwarding dependencies and accumulating usage. It also demonstrates sequential agents with structured success or failure outputs, user interaction and conversation history for follow-up attempts.
It describes the Harness SubAgents capability, which exposes delegate_task(agent_name, task), forwards dependencies and threads usage limits. It introduces planning, file operations, shell execution, compaction, approvals and durable execution through linked capabilities. The tracing section describes visibility into agent decisions, latency, token usage, costs and instrumented tool operations.
Using it
Requirements
The examples require Python and Pydantic AI, with access configured for the model providers named in the code. The dependency example additionally imports httpx; the hand-off example imports Pydantic models and rich.prompt. Optional tracing uses Logfire instrumentation.
The page provides no minimum Python version, pinned package versions, installation commands or model-provider credential instructions. Availability of the example model identifiers and compatibility with a particular installed release are not assessed.
Mechanism
During delegation, the parent agent calls a tool that awaits a delegate agent’s run and returns its output. Control then returns to the parent. The SubAgents capability gives each delegate a separate run and message history, so the parent conversation is not automatically visible. The guide recommends a custom delegation tool when parent history or more specialized arguments are needed.
Programmatic hand-off places sequencing in application code, optionally involving a person. Message history can be supplied explicitly. Cancellation is scoped to runs: a delegate cancelling itself becomes a failed tool return for its parent, while a shared CancellationToken can cancel an entire tree of runs.
Setup
For the demonstrated delegation pattern, define the parent and delegate agents, register an async def tool on the parent and await the delegate’s run method inside it. Pass usage=ctx.usage to share usage accounting, and deps=ctx.deps when reusing dependencies. Matching deps_type declarations describe the dependency object expected by each agent.
The outer parent run may use run_sync(), but run_sync() and run_stream_sync() cannot be called from a tool, output function or another function executing during an agent run; the page says these calls raise UserError. The asynchronous examples also need an asyncio import and asyncio.run(main()) entry point. Optional tracing is illustrated with logfire.configure() and logfire.instrument_pydantic_ai().
Example
The simplest example has a joke-selection agent call a joke_factory tool. That tool asks a second agent for a list of jokes and returns the list to the selector. The example uses different providers for the two agents and shares usage accounting, illustrating delegation without requiring a complex business process.
The hand-off example first seeks flight details, then asks for a seat preference validated through a Pydantic model. Its flight-search tool returns the fixed flight number AK456; it does not demonstrate a live flight-search integration. Similarly, the dependency example uses example.com and a placeholder API key. Printed results are source illustrations, not independently reproduced outcomes.
Assessment & evidence
Limitations
The guide identifies an important Temporal exception: a tool running in an activity receives a copy of the run context, so passing usage=ctx.usage does not carry delegate usage back to the parent. Applications using Temporal need additional guidance beyond the ordinary delegation example.
The page cautions that creating dependencies within a tool can be slower than reusing parent connections. Graphs and most deep-agent capabilities are described mainly through links, leaving their implementation details outside this page. No benchmarks, deployment evidence, isolation tests or comprehensive failure-recovery results are supplied.
Reasoning
The architectural distinction is practical: delegation fits a parent that needs help and then resumes, while hand-off fits a sequence controlled by application code or a person. The page positions graphs for more complex control flow and presents deep-agent capabilities as composable pieces.
A reasonable design inference is to add coordination only when the task benefits from separate responsibilities or explicit stages. Each extra agent introduces another run, context boundary and accounting path. The guide explains how to manage these boundaries but provides no comparative evidence that adding agents improves quality, speed or cost.
Alternatives
Within Pydantic AI, the guide presents several alternatives: retain a single agent, use SubAgents for convenient delegation, write a custom delegation tool, or sequence agents directly in application code. It points to output functions for transferring control without returning to the first agent and to graphs for more complex execution.
For a broader coding-agent assembly, the page points to Coder, which combines file operations, shell access, delegation and context management. Its detailed behavior is not covered here. The page supplies no comparison with other agent frameworks.
Evidence
The source is the complete documentation page at [https://pydantic.dev/docs/ai/guides/multi-agent-applications/index.md]. It contains explanatory prose, Python examples, control-flow diagrams, illustrative outputs and links to related Pydantic AI documentation.
This is first-party instructional evidence for the described interfaces and patterns. It does not provide independent performance measurements or establish that the examples work in a particular environment. No code was executed, and linked pages were not assessed.
Access & freshness
Costs
Actual operating cost is unknown. The page supplies no provider price schedule, representative workload estimate or Logfire pricing. Its printed RunUsage cost figures are illustrative outputs and do not establish what another run would cost.
The guide describes UsageLimits controls for cost, requests, total tokens and tool calls. With different models in one application, aggregate token counts cannot reconstruct monetary cost because pricing differs between models. The guide says result.usage accumulates per-response cost where it can be calculated; nested accounting also depends on forwarding usage correctly.
Rights
The page does not state a license for its documentation or example code. Permissions and conditions for redistribution, modification and commercial reuse are therefore unknown from this source.
Check the applicable upstream licenses before republishing the guide or distributing its examples. The page also does not establish the contractual terms of the model providers or optional tracing services.
Freshness
The page was captured on 15 November 2026 at 00:13:37.883 UTC. That timestamp identifies the source snapshot; it does not establish when the documentation was last updated.
The page does not tie its examples to a specific Pydantic AI release. Current model availability, package compatibility and changes after capture are unknown.
Actions
Choose the coordination pattern around who should control the next step. For delegation, start with a small parent-and-delegate implementation, configure compatible providers and check typed outputs, dependency reuse, shared usage, cancellation and the intended conversation boundaries.
Before extending the pattern, replace placeholder integrations, set suitable usage limits and consult the linked documentation for any required graphs, sandboxing or durable execution. Confirm package versions, provider pricing and reuse terms separately. These are recommended next steps; their results are not assessed.
