
    hw"                         U d Z ddlZddlmZmZ erddlmZ 	 ddlZdZda
eed<   daeed<   daed	   ed
<   deddfdZdefdZdeddfdZdefdZded	   ddfdZded	   fdZy# e	$ r dZY Rw xY w)z?Global values and configuration that apply to all of LangChain.    N)TYPE_CHECKINGOptional)	BaseCacheTF_verbose_debugr   
_llm_cachevaluereturnc                     t         rBt        j                         5  t        j                  dd       | t        _        ddd       | ay| ay# 1 sw Y   | ayxY w)zSet a new value for the `verbose` global setting.

    Args:
        value: The new value for the `verbose` global setting.
    ignorezCImporting verbose from langchain root module is no longer supportedmessageN_HAS_LANGCHAINwarningscatch_warningsfilterwarnings	langchainverboser   r	   s    T/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/langchain_core/globals.pyset_verboser      sW      $$& 	&##- !&I	&" HuH#	&" H   #AAc                      t         rEt        j                         5  t        j                  dd       t        j
                  } ddd       nd} t        xs  S # 1 sw Y   xY w)ztGet the value of the `verbose` global setting.

    Returns:
        The value of the `verbose` global setting.
    r   zE.*Importing verbose from langchain root module is no longer supportedr   NFr   )old_verboses    r   get_verboser   8   sd      $$& 	,##-& $++K)	, 	,, "{"1	, 	,   (AA!c                     t         rBt        j                         5  t        j                  dd       | t        _        ddd       | ay| ay# 1 sw Y   | ayxY w)z|Set a new value for the `debug` global setting.

    Args:
        value: The new value for the `debug` global setting.
    r   AImporting debug from langchain root module is no longer supportedr   Nr   r   r   r   r   debugr   r   s    r   	set_debugr"   ]   sV      $$& 	$##) $IO	$ FUF	$ Fr   c                      t         rEt        j                         5  t        j                  dd       t        j
                  } ddd       nd} t        xs  S # 1 sw Y   xY w)zpGet the value of the `debug` global setting.

    Returns:
        The value of the `debug` global setting.
    r   r   r   NFr    )	old_debugs    r   	get_debugr%   y   sb      $$& 	(##)  "I#	( 	(& 	Y+	( 	(r   c                     t         rBt        j                         5  t        j                  dd       | t        _        ddd       | ay| ay# 1 sw Y   | ayxY w)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   EImporting llm_cache from langchain root module is no longer supportedr   Nr   r   r   r   r   	llm_cacher   r   s    r   set_llm_cacher*      sW      $$& 	(##- #(I	(" JJ#	(" Jr   c                      t         rEt        j                         5  t        j                  dd       t        j
                  } ddd       nd} t        xs  S # 1 sw Y   xY w)zxGet the value of the `llm_cache` global setting.

    Returns:
        The value of the `llm_cache` global setting.
    r   r'   r   Nr(   )old_llm_caches    r   get_llm_cacher-      sd      $$& 	0##-( &//M+	0 	0. &&3	0 	0r   )__doc__r   typingr   r   langchain_core.cachesr   r   r   ImportErrorr   bool__annotations__r   r   r   r   r"   r%   r*   r-        r   <module>r6      s    E  */N $  $(
H[! (t  <"#T "#JT d 84 D+. 4 <#'x, #'Y  Ns   A( (A21A2