langchain-ai / langchain

🦜🔗 Build context-aware reasoning applications
https://python.langchain.com
MIT License
89.3k stars 14.08k forks source link

Issue: what string works for experimental tool #13856

Closed isayahc closed 7 months ago

isayahc commented 7 months ago

Issue you'd like to raise.

Exception has occurred: ImportError This tool has been moved to langchain experiment. This tool has access to a python REPL. For best practices make sure to sandbox this tool. Read https://github.com/langchain-ai/langchain/blob/master/SECURITY.md To keep using this code as is, install langchain experimental and update relevant imports replacing 'langchain' with 'langchain_experimental' File "/home/isayahc/projects/buy-bot/react_agent.py", line 43, in create_agent_executor tools = load_tools(["serpapi","python_repl"], llm=llm) File "/home/isayahc/projects/buy-bot/react_agent.py", line 81, in agent_executor = create_agent_executor() ImportError: This tool has been moved to langchain experiment. This tool has access to a python REPL. For best practices make sure to sandbox this tool. Read https://github.com/langchain-ai/langchain/blob/master/SECURITY.md To keep using this code as is, install langchain experimental and update relevant imports replacing 'langchain' with 'langchain_experimental'

Suggestion:

No response

dosubot[bot] commented 7 months ago

🤖

It seems like you've got this under control, if you want help or have specific questions, let me know what I can do for you!

isayahc commented 7 months ago

🤖

It seems like you've got this under control, if you want help or have specific questions, let me know what I can do for you!

what string do i use for experimental tools like the python repl?

isayahc commented 7 months ago

🤖

It seems like you've got this under control, if you want help or have specific questions, let me know what I can do for you!

how to load experimental tools to agent