pydantic-ai-testing

Installation
SKILL.md

Testing PydanticAI Agents

TestModel (Deterministic Testing)

Use TestModel for tests without API calls:

import pytest
from pydantic_ai import Agent
from pydantic_ai.models.test import TestModel

def test_agent_basic():
    agent = Agent('openai:gpt-4o')

    # Override with TestModel for testing
    result = agent.run_sync('Hello', model=TestModel())
Related skills

More from existential-birds/beagle

Installs
128
GitHub Stars
57
First Seen
Jan 20, 2026