agent_integration_failureTier 1 · 70% confidence

ai-agents-agent-integration-fa-creating-an-openai-tools-agent-with-playwrightbrow-0fa486a1

agent: ai_agents

When does this happen?

IF Creating an OpenAI tools agent with PlaywrightBrowserToolkit using NavigateBackTool, CurrentWebPageTool, or ExtractTextTool fails with KeyError: 'data' during schema conversion.

How others solved it

THEN Either downgrade langchain, langchain-community, langchain-core, and langchain-openai to versions before 0.3 (e.g., 0.2.16, 0.2.17, 0.2.41, 0.1.25) or patch the tool by adding an explicit Pydantic BaseModel as args_schema to override the implicit empty schema. For example, define a class with no fields and set it as the tool's args_schema.

from pydantic import BaseModel
from langchain_community.tools.playwright.navigate_back import NavigateBackTool

class NavigateBackInput(BaseModel):
    """Empty input schema."""
    pass

tool = NavigateBackTool(args_schema=NavigateBackInput)

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics