skills/skills.volces.com/pydantic-ai-common-pitfalls

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
Installs
3
First Seen
Apr 23, 2026
pydantic-ai-common-pitfalls from skills.volces.com