
    %`i                         d dl Z d dlZd dlmZ d dlZ ej                    Ze j                            dd          dk    Z	d Z
d Zd ZdS )	    NwrapsRAY_ENABLE_AUTO_CONNECT 0c                      t           r[t          j                    sJt          5  t          j                    st          j                     d d d            d S # 1 swxY w Y   d S d S d S N)enable_auto_connectrayis_initializedauto_init_lockinit     o/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/ray/_private/auto_init_hook.pyauto_init_rayr      s     3#5#7#7  	 	%'' 


	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	   s   'AAAc                 <     t                      fd            }|S )Nc                  0    t                        | i |S r	   )r   )argskwargsfns     r   auto_init_wrapperz)wrap_auto_init.<locals>.auto_init_wrapper   s!    r4"6"""r   r   )r   r   s   ` r   wrap_auto_initr      s4    
2YY# # # # Y# r   c                     | D ]G}t          t          |d          }|
J |            t          t          |t          |                     HdS )z)Wrap public APIs with automatic ray.init.N)getattrr   setattrr   )	api_namesapi_nameapis      r   wrap_auto_init_for_all_apisr       sX     4 4c8T**X~c2233334 4r   )os	threading	functoolsr   r   Lockr   environgetr
   r   r   r    r   r   r   <module>r'      s    				           



!!jnn%>CCsJ     4 4 4 4 4r   