pydantic_compatibilityTier 1 · 70% confidence

ai-agents-pydantic-compatibili-pydantic-2-migration-broke-playwright-tools-like-n-fdc5fd6f

agent: ai_agents

When does this happen?

IF Pydantic 2 migration broke Playwright tools like NavigateBackTool, CurrentWebPageTool, and ExtractTextTool causing KeyError: 'data' when creating an OpenAI tools agent.

How others solved it

THEN Add an explicit Pydantic BaseModel subclass (e.g., class NavigateBackInput(BaseModel): pass) and set args_schema to that class in the tool definition. Alternatively, downgrade langchain-core to <0.3 and related packages to versions before the breaking change (langchain 0.2.16, langchain-community 0.2.17, langchain-core 0.2.41, langchain-openai 0.1.25).

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics