Skip to content
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

Fix deprecations in lang_chain_agent.py #998

Open
cecheta opened this issue May 28, 2024 · 1 comment
Open

Fix deprecations in lang_chain_agent.py #998

cecheta opened this issue May 28, 2024 · 1 comment
Labels
enhancement New feature or request stale

Comments

@cecheta
Copy link
Collaborator

cecheta commented May 28, 2024

Motivation

There are a number of deprecations that appear in lang_chain_agent.py that will be removed in LangChain 0.3.0. We should attempt to fix these now, rather than waiting for version 0.3.0.

WARNING:py.warnings:/home/vscode/.cache/pypoetry/virtualenvs/chat-with-your-data-solution-accelerator-PQGzWDPx-py3.11/lib/python3.11/site-packages/langchain_core/_api/deprecation.py:119: LangChainDeprecationWarning: The class `LLMChain` was deprecated in LangChain 0.1.17 and will be removed in 0.3.0. Use RunnableSequence, e.g., `prompt | llm` instead.
  warn_deprecated(

WARNING:py.warnings:/home/vscode/.cache/pypoetry/virtualenvs/chat-with-your-data-solution-accelerator-PQGzWDPx-py3.11/lib/python3.11/site-packages/langchain_core/_api/deprecation.py:119: LangChainDeprecationWarning: The class `ZeroShotAgent` was deprecated in LangChain 0.1.0 and will be removed in 0.3.0. Use create_react_agent instead.
  warn_deprecated(

WARNING:py.warnings:/home/vscode/.cache/pypoetry/virtualenvs/chat-with-your-data-solution-accelerator-PQGzWDPx-py3.11/lib/python3.11/site-packages/langchain_core/_api/deprecation.py:119: LangChainDeprecationWarning: The method `Chain.run` was deprecated in langchain 0.1.0 and will be removed in 0.3.0. Use invoke instead.
  warn_deprecated(

Requirements

A list of requirements to consider this feature delivered

  • Remove all deprecations that appear in the logs when orchestrator is set to langchain

Tasks

To be filled in by the engineer picking up the issue

@cecheta cecheta added the enhancement New feature or request label May 28, 2024
Copy link

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the stale label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

1 participant