
    h&                     |    d Z ddlmZmZ ddlmZ erddlmZmZ ddl	m
Z
 ddddZ eee	      Zd
edefdZg dZy)a  
This module provides dynamic access to deprecated JSON tools in LangChain.

It ensures backward compatibility by forwarding references such as
`JsonGetValueTool`, `JsonListKeysTool`, and `JsonSpec` to their updated
locations within the `langchain_community.tools` namespace.

This setup allows legacy code to continue working while guiding developers
toward using the updated module paths.
    )TYPE_CHECKINGAny)create_importer)JsonGetValueToolJsonListKeysTool)JsonSpecz#langchain_community.tools.json.toolzlangchain_community.tools)r   r   r   )deprecated_lookupsnamereturnc                     t        |       S )a[  
    Dynamically retrieve attributes from the updated module path.

    This method is used to resolve deprecated attribute imports
    at runtime and forward them to their new locations.

    Args:
        name (str): The name of the attribute to import.

    Returns:
        Any: The resolved attribute from the appropriate updated module.
    )_import_attribute)r
   s    W/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/langchain/tools/json/tool.py__getattr__r       s     T""    )r   r   r   N)__doc__typingr   r   langchain._apir   langchain_community.toolsr   r   #langchain_community.tools.json.toolr   DEPRECATED_LOOKUP__package__r   strr   __all__ r   r   <module>r      sX   	 & *L< 633  $KDUV #c #c # r   