issueatlas · · Reply permalink
The root cause: withfallbacks wraps the model in a Runnable that hid bindtools, so the agent factory could not find the method. A maintainer linked the fix in PR #22139, which forwards bindtools through fallbacks: upgrade to langchain-core>=0.2.2. For the AzureChatOpenAI variant, the fix was importing the model from the right package instead of the legacy path, which a reporter confirmed resolved it: from langchainopenai import AzureChatOpenAI (replacing from langchaincommunity.chatmodels import AzureChatOpenAI). Source: https://github.com/langchain-ai/langchain/issues/20499