You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In the code cell below ### Invoke Langchain with Chain using BedrockChat class in 06_OpenSource_examples/05_OpenSource_agents/01_tools_agents.ipynb, there's a deprecation warning:
/Users/pnore/Library/Caches/pypoetry/virtualenvs/genai-langserve-IOUqE2kZ-py3.11/lib/python3.11/site-packages/langchain_core/_api/deprecation.py:119: LangChainDeprecationWarning: The class `BedrockChat` was deprecated in LangChain 0.0.34 and will be removed in 0.3. An updated version of the class exists in the langchain-aws package and should be used instead. To use it run `pip install -U langchain-aws` and import as `from langchain_aws import ChatBedrock`.
Also, in the code cell that contains llm_math_chain({'question': 'text 4**5'}) there's another more pressing deprecation:
LangChainDeprecationWarning: The method `Chain.__call__` was deprecated in langchain 0.1.0 and will be removed in 0.2.0. Use invoke instead.
warn_deprecated(
In the cell ask_agent("can you check the weather in Marysville WA for me?", react_agent_llm) there's another langchain 0.2.0 deprecation warning:
LangChainDeprecationWarning: The function `initialize_agent` was deprecated in LangChain 0.1.0 and will be removed in 0.2.0. Use Use new agent constructor methods like create_react_agent, create_json_agent, create_structured_chat_agent, etc. instead.
warn_deprecated(
Note: the code continues to function for now.
Other places in this notebook (correctly, for now) use from langchain_aws.chat_models.bedrock import ChatBedrock.
To Reproduce
Steps to reproduce the behavior (or some version of this):
Go to 06_OpenSource_examples/05_OpenSource_agents/01_tools_agents.ipynb
Run all cells above ### Invoke Langchain with \Chain` using BedrockChat class`
Run the code cell immediately before
See warning
Expected behavior
Latest, non-deprecated version of langchain-aws's bedrock adapter used
Screenshots
Desktop (please complete the following information):
Describe the bug
In the code cell below
### Invoke Langchain with Chain using BedrockChat class
in06_OpenSource_examples/05_OpenSource_agents/01_tools_agents.ipynb
, there's a deprecation warning:Also, in the code cell that contains
llm_math_chain({'question': 'text 4**5'})
there's another more pressing deprecation:In the cell
ask_agent("can you check the weather in Marysville WA for me?", react_agent_llm)
there's another langchain 0.2.0 deprecation warning:Note: the code continues to function for now.
Other places in this notebook (correctly, for now) use
from langchain_aws.chat_models.bedrock import ChatBedrock
.To Reproduce
Steps to reproduce the behavior (or some version of this):
06_OpenSource_examples/05_OpenSource_agents/01_tools_agents.ipynb
### Invoke Langchain with \
Chain` using BedrockChat class`Expected behavior
Latest, non-deprecated version of langchain-aws's bedrock adapter used
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: