pydantic-ai-common-pitfalls

Installation
SKILL.md

PydanticAI Common Pitfalls and Debugging

Tool Decorator Errors

Wrong: RunContext in tool_plain

# ERROR: RunContext not allowed in tool_plain
@agent.tool_plain
async def bad_tool(ctx: RunContext[MyDeps]) -> str:
    return "oops"
# UserError: RunContext annotations can only be used with tools that take context
Related skills

More from existential-birds/beagle

Installs
203
GitHub Stars
57
First Seen
Jan 20, 2026