[PR #5227] fix[prebuilt]: bind tools even if it's only provider tools #4314

Closed
opened 2026-02-20 17:50:00 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/5227

State: closed
Merged: Yes


Enabling:

from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI

research_agent = create_react_agent(
    ChatOpenAI(
        model="o3-deep-research",
        use_responses_api=True,
    ),
    tools=[{"type": "web_search_preview"}],
    prompt="You are a professional researcher preparing a structured, data-driven report...",
)

response = research_agent.invoke(
    {
        "messages": [
            "How do microplastics in the food chain impact human health, and what solutions exist?"
        ]
    },
)

We should be doing more testing for prebuilts. This is a necessary fix to support builtin tool binding, which is necessary for things like using deep research models. Let's get this out ASAP.

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/5227 **State:** closed **Merged:** Yes --- Enabling: ```py from langgraph.prebuilt import create_react_agent from langchain_openai import ChatOpenAI research_agent = create_react_agent( ChatOpenAI( model="o3-deep-research", use_responses_api=True, ), tools=[{"type": "web_search_preview"}], prompt="You are a professional researcher preparing a structured, data-driven report...", ) response = research_agent.invoke( { "messages": [ "How do microplastics in the food chain impact human health, and what solutions exist?" ] }, ) ``` We should be doing more testing for prebuilts. This is a necessary fix to support builtin tool binding, which is necessary for things like using deep research models. Let's get this out ASAP.
yindo added the pull-request label 2026-02-20 17:50:00 -05:00
yindo closed this issue 2026-02-20 17:50:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#4314