I had to upgrade langchain to 0.0.302 and install langchain_experimental 0.0.22 to get the notebook going, %pip install --upgrade langchain langchain_experimental. Then change how the plan_and_execute module is loaded to
from langchain_experimental.plan_and_execute import PlanAndExecute, load_agent_executor, load_chat_planner
instead of
from langchain.experimental.plan_and_execute import PlanAndExecute, load_agent_executor, load_chat_planner
With these changes I was able to proceed, however, towards the end I wasn't able to get pass PlanAndExecute example. I got the following error.
https://github.com/aws-samples/amazon-bedrock-workshop/blob/main/07_Agents/00_LLM_Claude_Agent_Tools.ipynb
I had to upgrade
langchain
to 0.0.302 and installlangchain_experimental
0.0.22 to get the notebook going,%pip install --upgrade langchain langchain_experimental
. Then change how theplan_and_execute
module is loaded tofrom langchain_experimental.plan_and_execute import PlanAndExecute, load_agent_executor, load_chat_planner
instead of
from langchain.experimental.plan_and_execute import PlanAndExecute, load_agent_executor, load_chat_planner
With these changes I was able to proceed, however, towards the end I wasn't able to get pass PlanAndExecute example. I got the following error.
Please check if there is anything missing or library version mismatch. Thank you.