Skip to content
existential-birds avatar

Pydantic Ai Testing

Test PydanticAI agents offline with TestModel, FunctionModel, VCR cassettes, and inline snapshots.

CCM score
55 of 100
skills.sh installs
146
GitHub stars
91
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers deterministic unit tests via TestModel, custom model logic via FunctionModel, recorded API replay, and dependency mocking with agent.override
  • Includes configuration for structured output, seeded random output, and forced tool calls via call_tools, plus capture_run_messages for inspecting runs
  • Enforces a gated sequence for --record-mode=rewrite and --inline-snapshot=fix: a green replay pass first, scoped updates, then a green re-run with git diff review
  • Designed for teams writing pytest suites for PydanticAI agents that must run without live LLM calls

Install

$ npx -y skills add existential-birds/beagle --skill pydantic-ai-testing -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Test PydanticAI agents offline with TestModel, FunctionModel, VCR cassettes, and inline snapshots. Covers deterministic unit tests via TestModel, custom model logic via FunctionModel, recorded API replay, and dependency mocking with agent.override. Includes configuration for structured output, seeded random output, and forced tool calls via call_tools, plus capture_run_messages for inspecting runs. Enforces a gated sequence for --record-mode=rewrite and --inline-snapshot=fix: a green replay pass first, scoped updates, then a green re-run with git diff review. Designed for teams writing pytest suites for PydanticAI agents that must run without live LLM calls.

Browse the repository on GitHub

Details

Repository
github.com/existential-birds/beagle
Categories
Testing & QA, AI Agents & LLM Apps
First seen
Jun 3, 2026

Questions

What does the pydantic-ai-testing skill do?

pydantic-ai-testing helps test PydanticAI agents using TestModel, FunctionModel, VCR cassettes and inline snapshots. It is meant for writing unit tests, mocking LLM responses and recording API interactions.

How do I install the pydantic-ai-testing skill?

Run npx -y skills add existential-birds/beagle --skill pydantic-ai-testing -y in your project to install pydantic-ai-testing. After that, your agent can load it to write tests for PydanticAI agents.

Where does pydantic-ai-testing sit among testing skills?

pydantic-ai-testing is in the Testing & QA category, alongside tdd and test-driven-development. Its focus on PydanticAI agents, with TestModel and VCR cassettes, sets it apart from those general test-driven workflows.

More from existential-birds/beagle

All 37

Similar to Pydantic Ai Testing

More Testing & QA