All skills
docling-project avatar

/building-pydantic-ai-agents

@2d1dcde
by Docling Projectdocling-project/docling68k stars
4,979

Build AI agents with Pydantic AI — tools, capabilities, structured output, streaming, testing, and multi-agent patterns. Use when the user mentions Pydantic AI, imports pydantic_ai, or asks to build an AI agent, add tools/capabilities, stream output, define agents from YAML, or test agent behavior.

Use this Skill: https://skilld.dev/gh/docling-project/docling/building-pydantic-ai-agents

This session only. Nothing lands on disk.

referencesCOMMON-TASKS.md

≈1.2k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Task Reference Map

This file exists as a compatibility index for older links into COMMON-TASKS.md.

Prefer the narrower task-family guides below so the agent loads only the material it needs:

Add Capabilities to an Agent

Read Add Capabilities.

Intercept Agent Lifecycle with Hooks

Read Intercept Agent Lifecycle with Hooks.

Define Agents Declaratively with Specs

Read Define Agents Declaratively with Specs.

Enable Thinking Across Providers

Read Enable Thinking Across Providers.

Use MCP Servers

Read Use MCP Servers.

Search with DuckDuckGo, Tavily, or Exa

Read Search with DuckDuckGo, Tavily, or Exa.

Require Tool Approval (Human in the Loop)

Read Require Tool Approval.

Send Images, Audio, Video, or Documents to the Model

Read Send Images, Audio, Video, or Documents to the Model.

Manage Context Size

Read Manage Context Size.

Work with Message History

Read Work with Message History.

Show Real-Time Progress

Read Run Methods and Streaming.

Handle Provider Failures

Read Handle Provider Failures.

Make an Agent Resilient with Retries

Read Make an Agent Resilient with Retries.

Debug a Failed Agent Run

Read Debug a Failed Agent Run.

Test Agent Behavior

Read Test Agent Behavior.

Coordinate Multiple Agents

Read Coordinate Multiple Agents.

Build Multi-Step Workflows with Graphs

Read Build Multi-Step Workflows with Graphs.

Debug and Validate Agent Behavior

Read Debug and Validate Agent Behavior.

Advanced and Less Common Features

Read only the relevant section in ORCHESTRATION-AND-INTEGRATIONS.md:

Working with the Installed Pydantic AI Package

Prefer the checked-out repository or these bundled references first.

Inspect local package source only as a last resort when:

  • the user asks about a symbol that is not covered in this skill
  • the local environment already includes pydantic_ai and you need exact module layout
  • you have no narrower offline reference available

Source: SKILL.md on GitHub

No alerts3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    This skill provides comprehensive documentation and code patterns for building production-grade AI applications using the Pydantic AI framework. It includes guidance on structured output, dependency injection, lifecycle hooks, and agent orchestration. No security risks, obfuscation, or malicious patterns were identified.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: LOW · No issues

Signed by skilld at 2d1dcde. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 5 hours ago.

Activeupdated 5 months ago
compatibility
Requires Python 3.10+
metadata
{
  "version": "1.1.0",
  "author": "pydantic"
}

README badge

README badge for docling-project/docling/building-pydantic-ai-agents