a
    •˜ëj   ã                   @   st   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d	�Zeed
œdd„Zg d¢ZdS )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   )Zdeprecated_lookups)ÚnameÚreturnc                 C   s   t | ƒS )aV  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   © r   úX/mnt/bigstor/www/usecases/.venv/lib/python3.9/site-packages/langchain/tools/json/tool.pyÚ__getattr__   s    r   )r   r   r   N)Ú__doc__Útypingr   r   Zlangchain._apir   Zlangchain_community.toolsr   r   Z#langchain_community.tools.json.toolr   ZDEPRECATED_LOOKUPÚ__package__r
   Ústrr   Ú__all__r   r   r   r   Ú<module>   s   
ý