o
    ˶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	< d
eddfddZdefddZd
eddfddZdefddZd
ed ddfddZ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   R   ddl }t  tjddd | |_W d   | adS 1 s w   Y  | adS )z1Set a new value for the `verbose` global setting.r   NignoreCImporting verbose from langchain root module is no longer supportedmessage	langchainwarningscatch_warningsfilterwarningsverboser   r   r    r   k/var/www/eduai.edurigo.com/doc_train/edurigo_ai/Puru/venv/lib/python3.10/site-packages/langchain/globals.pyset_verbose      

r   c                  C   L   ddl } t  tjddd | j}W d   n1 sw   Y  tp%|S )z.Get the value of the `verbose` global setting.r   Nr   r   r   r   )r   old_verboser   r   r   get_verbose,   s   
r   c                 C   r
   )z/Set a 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   	set_debugJ   s   


r    c                  C   r   )z,Get the value of the `debug` global setting.r   Nr   r   r   r   )r   	old_debugr   r   r   	get_debuga   s   
r"   c                 C   r
   )z<Set a new LLM cache, overwriting the previous value, if any.r   Nr   EImporting llm_cache from langchain root module is no longer supportedr   r   r   r   r   	llm_cacher   r   r   r   r   set_llm_cache}   r   r&   c                  C   r   )z0Get the value of the `llm_cache` global setting.r   Nr   r#   r   r$   )r   old_llm_cacher   r   r   get_llm_cache   s   
r(   )r	   r   )__doc__r   typingr   r   langchain_core.cachesr   r   bool__annotations__r   r   r   r   r    r"   r&   r(   r   r   r   r   <module>   s    