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
Own this skill? Claim it
What it does
- Covers deterministic unit tests via
TestModel, custom model logic viaFunctionModel, recorded API replay, and dependency mocking withagent.override - Includes configuration for structured output, seeded random output, and forced tool calls via
call_tools, pluscapture_run_messagesfor inspecting runs - Enforces a gated sequence for
--record-mode=rewriteand--inline-snapshot=fix: a green replay pass first, scoped updates, then a green re-run withgit diffreview - 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 -yInstalls 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 GitHubDetails
- 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- Deepagents Implementation142
- Pydantic Ai Dependency Injection141
- Deepagents Code Review134
- Pydantic Ai Model Integration120
- React Flow1.4K
- Python Code Review968
- Langgraph Code Review890
- Tailwind V4838
- React Flow Advanced653
- React Router V7581
- React Flow Architecture544
- Vitest Testing473
- Fastapi Code Review396
- React Flow Implementation383
- Shadcn Ui359
- React Flow Code Review330
- Langgraph Architecture283
- Swiftui Code Review277
- Tutorial Docs273
- Bubbletea Code Review271
- Zustand State261
- Dagre React Flow258
- Adr Writing254
- Swift Code Review253
Similar to Pydantic Ai Testing
More Testing & QApydantic-ai-agent-creationSkillexistential-birds/beagle219 installsTyped PydanticAI agent setup covering models, structured outputs, dependency injection, and run modes.
building-pydantic-ai-agentsSkillpydantic/skills6.9K installsPydantic AI agent-building guide covering tools, deferred capability loading, workspaces, structured output, streaming, and testing.
pydantic-ai-dependency-injectionSkillexistential-birds/beagle141 installsTyped dependency injection for PydanticAI agents, passing clients and user context through RunContext.
Pare TestMCP serverdave-london141 starsStructured JSON test-runner output for AI agents, with framework auto-detection and no parsing of raw terminal text.