Pydantic AI Foundation

Use when porting or building an agent runtime's core machinery — deferred/external tool calls, human-in-the-loop approval, pause/resume envelopes, barrier-segmented parallel execution, structured-output schema resolution, capability middleware with ordering constraints, toolset composition (wrapper/combined/prefixed/renamed/prepared/filtered/dynamic/approval/external), streaming partial→final validation, the durable-execution shared kernel (string-only model round-trip with credential-leak rejection, replay-unit enqueue/cancel guards, live-vs-replay event-stream split), the durability-engine adapter plane (anyio-shielded cancel forwarding, boundary-guarded context rehydration, sequence-keyed cache keys, legacy-replay dual paths), static tool-choice deadlock gates, transport-level tenacity retries honoring Retry-After, session cancellation as typed resumable exceptions, and replayed-history hardening for partially-rejected provider turns. Source code and direct tests are ground truth.

ryan-brosas Updated

File contents

ryan-brosas/universal-template/tree/main/skills/pydantic-ai-foundation commit 8236fb26ac

Frequently asked questions

npx skillmds@latest add ryan-brosas/pydantic-ai-foundation