Create_agent no longer exists in langchain.agents v1.1.0

As the title states, create_agent is no longer in langchain/agents/__init__.py in python langchain v1.1.0. The release notes and documentation show no indication of this behavior. The built-in AI chatbot for the LangChain docs was still telling me to use from langchain.agents import create_agent. This seems to be undesired behavior, since create_agent replaced create_react_agent in v1.0.0, but the react agent still remains in v1.1.0. If this change was intentional, what is the approach to replace create_agent? If it was not intentional, can this be fixed?

Hey @bthompson, I am able to import create_agent from langchain.agents in a fresh virtual environment using langchain 1.1.0. I’ve had some issues in the past with upgrading packages in a venv, so you might try deleting your venv folder and reinstalling packages.

2 Likes

It has not been removed

1 Like

Thank you, this was it. I haven’t experienced stale packages persisting beyond uninstalling before.

1 Like