Импорт GuardrailsOutputParser из langchain.output_parsers устарел.Python

Программы на Python
Anonymous
Импорт GuardrailsOutputParser из langchain.output_parsers устарел.

Сообщение Anonymous »

Я использую langchain 0.1.17. Я получаю предупреждение:

Код: Выделить всё

\venv\Lib\site-packages\langchain\_api\module_import.py:87:
LangChainDeprecationWarning: Importing GuardrailsOutputParser
from langchain.output_parsers is deprecated. Please replace
the import with the following:
from langchain_community.output_parsers.rail_parser import GuardrailsOutputParser
warnings.warn(
хотя мой код вообще не импортирует этот пакет.
Код, вызывающий это предупреждение:

Код: Выделить всё

from langchain.agents import create_openai_tools_agent
Что дает?


Подробнее здесь: https://stackoverflow.com/questions/784 ... deprecated

Вернуться в «Python»