Spaces:
Runtime error
Runtime error
File size: 579 Bytes
129cd69 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | def raise_on_import() -> None:
"""Raise on import letting users know that underlying code is deprecated."""
raise 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'"
)
raise_on_import()
|