-
Notifications
You must be signed in to change notification settings - Fork 16.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: replace initialize_agent with create_react_agent #29403
base: master
Are you sure you want to change the base?
docs: replace initialize_agent with create_react_agent #29403
Conversation
…mpatibility - Updated code to use `create_react_agent` instead of the deprecated `initialize_agent`. - Removed explicit `AgentType` parameters as they are implicitly supported by `create_react_agent`. - Replaced `verbose=True` with `debug=True` for detailed logging. Partially addresses langchain-ai#29277
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
I want to highlight a potential issue with the command Upon further investigation, I noticed that the To ensure this wasn't an error on my end, I confirmed I was in the monorepo and even tried running the command on a fresh clone of LangChain without making any changes, but the issue persisted. |
Hi @efriis! I've completed updating all references to initialize_agent with create_react_agent in the documentation as per #29277. All affected examples in the docs/ directory have been updated, and I resolved any formatting/linting issues as well. Let me know if there's anything else you'd like me to adjust or improve! |
Description
This PR replaces all instances of the deprecated
initialize_agent
function with the newerlanggraph.prebuilt.create_react_agent
across the LangChain documentation. The updates were made to ensure consistency with the latest library usage and to improve the user experience.Issue
Closes #29277
Dependencies
None.
Twitter handle
I don't use twitter, but I'm active on GitHub!
Additional Notes
docs/
directory, including.mdx
and.ipynb
files.Checklist
make format
andmake lint
.