a
    `g"                     @   s   U d Z ddlZddlmZmZ er.ddlmZ daee	d< da
ee	d< daed e	d	< edd
ddZedddZedd
ddZedddZed dd
ddZddddZdS )z?Global values and configuration that apply to all of LangChain.    N)TYPE_CHECKINGOptional)	BaseCacheF_verbose_debugr   
_llm_cache)valuereturnc                 C   sd   zHddl }t $ tjddd | |_W d   n1 s<0    Y  W n tyZ   Y n0 | adS )zSet a new value for the `verbose` global setting.

    Args:
        value: The new value for the `verbose` global setting.
    r   NignorezCImporting verbose from langchain root module is no longer supportedmessage	langchainwarningscatch_warningsfilterwarningsverboseImportErrorr   r   r    r   d/var/www/html/cobodadashboardai.evdpl.com/venv/lib/python3.9/site-packages/langchain_core/globals.pyset_verbose   s    
(r   )r	   c                  C   sh   zHddl } t $ tjddd | j}W d   n1 s<0    Y  W n ty^   d}Y n0 tpf|S )ztGet the value of the `verbose` global setting.

    Returns:
        The value of the `verbose` global setting.
    r   Nr
   zE.*Importing verbose from langchain root module is no longer supportedr   Fr   )r   Zold_verboser   r   r   get_verbose4   s    
(
r   c                 C   sd   zHddl }t $ tjddd | |_W d   n1 s<0    Y  W n tyZ   Y n0 | adS )z|Set a new value for the `debug` global setting.

    Args:
        value: The new value for the `debug` global setting.
    r   Nr
   AImporting debug from langchain root module is no longer supportedr   r   r   r   r   debugr   r   r   r   r   r   	set_debugY   s    

(r   c                  C   sh   zHddl } t $ tjddd | j}W d   n1 s<0    Y  W n ty^   d}Y n0 tpf|S )zpGet the value of the `debug` global setting.

    Returns:
        The value of the `debug` global setting.
    r   Nr
   r   r   Fr   )r   Z	old_debugr   r   r   	get_debugw   s    
(
r   c                 C   sd   zHddl }t $ tjddd | |_W d   n1 s<0    Y  W n tyZ   Y n0 | adS )zSet a new LLM cache, overwriting the previous value, if any.

    Args:
        value: The new LLM cache to use. If `None`, the LLM cache is disabled.
    r   Nr
   EImporting llm_cache from langchain root module is no longer supportedr   r   r   r   r   Z	llm_cacher   r   r   r   r   r   set_llm_cache   s    
(r    c                  C   sh   zHddl } t $ tjddd | j}W d   n1 s<0    Y  W n ty^   d}Y n0 tpf|S )zxGet the value of the `llm_cache` global setting.

    Returns:
        The value of the `llm_cache` global setting.
    r   Nr
   r   r   r   )r   Zold_llm_cacher   r   r   get_llm_cache   s    
(
r!   )__doc__r   typingr   r   Zlangchain_core.cachesr   r   bool__annotations__r   r   r   r   r   r   r    r!   r   r   r   r   <module>   s    %# 