[GH-ISSUE #726] [langchain]: <.bind_tools no more supported > #109

Closed
opened 2026-02-17 17:19:11 -05:00 by yindo · 3 comments
Owner

Originally created by @arturbagramyan1 on GitHub (Oct 2, 2025).
Original GitHub issue: https://github.com/langchain-ai/docs/issues/726

Type of issue

issue / bug

Language

Python

Description

In new docs it is written that you can force tool call model_with_tools = model.bind_tools([tool_1], tool_choice="tool_1") but in v1 section it is written

# No longer supported
model_with_tools = ChatOpenAI().bind_tools([some_tool])
agent = create_agent(model_with_tools, tools=[])

# Use instead
agent = create_agent("openai:gpt-4o-mini", tools=[some_tool])

please address this issue and mention how to force tool call properly

Originally created by @arturbagramyan1 on GitHub (Oct 2, 2025). Original GitHub issue: https://github.com/langchain-ai/docs/issues/726 ### Type of issue issue / bug ### Language Python ### Description In new docs it is written that you can force tool call `model_with_tools = model.bind_tools([tool_1], tool_choice="tool_1") ` but in v1 section it is written ``` # No longer supported model_with_tools = ChatOpenAI().bind_tools([some_tool]) agent = create_agent(model_with_tools, tools=[]) # Use instead agent = create_agent("openai:gpt-4o-mini", tools=[some_tool]) ``` please address this issue and mention how to force tool call properly
yindo added the langchain label 2026-02-17 17:19:11 -05:00
yindo closed this issue 2026-02-17 17:19:11 -05:00
Author
Owner

@eyurtsev commented on GitHub (Oct 2, 2025):

Could you link to page?

@eyurtsev commented on GitHub (Oct 2, 2025): Could you link to page?
Author
Owner

@arturbagramyan1 commented on GitHub (Oct 2, 2025):

https://docs.langchain.com/oss/python/releases/langchain-v1#breaking-changes-2 here is that its not supported
https://docs.langchain.com/oss/python/langchain/models#tool-calling here is example of using it
@eyurtsev

@arturbagramyan1 commented on GitHub (Oct 2, 2025): https://docs.langchain.com/oss/python/releases/langchain-v1#breaking-changes-2 here is that its not supported https://docs.langchain.com/oss/python/langchain/models#tool-calling here is example of using it @eyurtsev
Author
Owner

@mdrxy commented on GitHub (Oct 13, 2025):

Those docs refer to passing a pre-bound model into the create_agent factory. Forcing tool calls like you are used to in previous versions is still supported - https://docs.langchain.com/oss/python/langchain/models#forcing-tool-calls

@mdrxy commented on GitHub (Oct 13, 2025): Those docs refer to passing a pre-bound model into the `create_agent` factory. Forcing tool calls like you are used to in previous versions is still supported - https://docs.langchain.com/oss/python/langchain/models#forcing-tool-calls
yindo changed title from [langchain]: <.bind_tools no more supported > to [GH-ISSUE #726] [langchain]: <.bind_tools no more supported > 2026-06-05 17:25:07 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#109