§
    \zni9w  ã                   óD  — d dl Zd dlZd dlZd dlZd dlmZ d dlmZ d dl	Z	d dl
mZmZmZ ddlmZ ddlmZmZmZmZ dd	lmZmZmZmZmZ dd
lmZmZ ddlmZ  ej         e!¦  «        Z" e¦   «         rd dl#Z# e¦   «         rddl$m%Z%m&Z& ddlm'Z' ne(Z%da)e*e+e,e-e.e/dœZ0e G d„ d¦  «        ¦   «         Z1i a2g d¢Z3d&d„Z4d„ Z5d'd„Z6d(d„Z7d„ Z8d„ Z9 G d„ d¦  «        Z: G d„ de:¦  «        Z; G d„ de:¦  «        Z< G d „ d!e:¦  «        Z= G d"„ d#e:¦  «        Z> G d$„ d%e%¦  «        Z?dS ))é    N)Ú	dataclass)ÚDict)ÚHfFolderÚhf_hub_downloadÚlist_spacesé   )ÚAutoTokenizer)Úis_offline_modeÚis_openai_availableÚis_torch_availableÚloggingé   )ÚTASK_MAPPINGÚTOOL_CONFIG_FILEÚToolÚ	load_toolÚsupports_remote)ÚCHAT_MESSAGE_PROMPTÚdownload_prompt)Úevaluate)ÚStoppingCriteriaÚStoppingCriteriaList)ÚAutoModelForCausalLMF)ÚprintÚrangeÚfloatÚintÚboolÚstrc                   ó.   — e Zd ZU eed<   eed<   eed<   dS )ÚPreToolÚtaskÚdescriptionÚrepo_idN)Ú__name__Ú
__module__Ú__qualname__r   Ú__annotations__© ó    úy/var/www/html/cool-property-finder/image-detection-backend/venv/lib/python3.11/site-packages/transformers/tools/agents.pyr!   r!   ;   s.   € € € € € € à
€I€I�IØÐÐÑØ€L€L�L€L€Lr*   r!   )zimage-transformationztext-downloadztext-to-imageztext-to-videoúhuggingface-toolsc                 ó¶  — t          ¦   «         rt                               d¦  «         i S t          | ¬¦  «        }i }|D ]™}|j        }t          |t          d¬¦  «        }t          |d¬¦  «        5 }t          j	        |¦  «        }d d d ¦  «         n# 1 swxY w Y   | 
                    d¦  «        d         }t          ||d	         |¬
¦  «        ||d         <   Œš|S )Nz;You are in offline mode, so remote tools are not available.)ÚauthorÚspace)Ú	repo_typezutf-8)Úencodingú/éÿÿÿÿr#   ©r"   r#   r$   Úname)r
   ÚloggerÚinfor   Úidr   r   ÚopenÚjsonÚloadÚsplitr!   )	ÚorganizationÚspacesÚtoolsÚ
space_infor$   Úresolved_config_fileÚreaderÚconfigr"   s	            r+   Úget_remote_toolsrD   M   s$  € ÝÑÔð Ý�ŠÐQÑRÔRÐRØˆ	å Ð-Ñ-Ô-€FØ€EØð gð gˆ
Ø”-ˆÝ.¨wÕ8HÐT[Ð\Ñ\Ô\ÐÝÐ&°Ð9Ñ9Ô9ð 	'¸VÝ”Y˜vÑ&Ô&ˆFð	'ð 	'ð 	'ñ 	'ô 	'ð 	'ð 	'ð 	'ð 	'ð 	'ð 	'øøøð 	'ð 	'ð 	'ð 	'ð �}Š}˜SÑ!Ô! "Ô%ˆÝ '¨T¸vÀmÔ?TÐ^eÐ fÑ fÔ fˆˆf�VŒnÑÐà€Ls   Á0BÂB	ÂB	c                  óÎ  — t           rd S t          j        d¦  «        } | j        }t	          ¦   «         }t          j        ¦   «         D ];\  }}t          ||¦  «        }|j        }t          ||d ¬¦  «        t          |j        <   Œ<t          ¦   «         sSt          D ]K}d}|                     ¦   «         D ]\  }}	|	j        |k    r|	t          |<   d} nŒ|st          |› d�¦  «        ‚ŒLda d S )NÚtransformersr4   FTz is not implemented on the Hub.)Ú_tools_are_initializedÚ	importlibÚimport_moduler?   rD   r   ÚitemsÚgetattrr#   r!   ÚHUGGINGFACE_DEFAULT_TOOLSr5   r
   Ú"HUGGINGFACE_DEFAULT_TOOLS_FROM_HUBr"   Ú
ValueError)
Úmain_moduleÚtools_moduleÚremote_toolsÚ	task_nameÚtool_class_nameÚ
tool_classr#   ÚfoundÚ	tool_nameÚtools
             r+   Ú_setup_default_toolsrX   `   s,  € õ ð ØˆåÔ)¨.Ñ9Ô9€KØÔ$€Lå#Ñ%Ô%€LÝ&2Ô&8Ñ&:Ô&:ð tð tÑ"ˆ	�?Ý˜\¨?Ñ;Ô;ˆ
Ø Ô,ˆÝ5<À)ÐYdÐnrÐ5sÑ5sÔ5sÕ! *¤/Ñ2Ð2åÑÔð 
PÝ;ð 		Pð 		PˆIØˆEØ#/×#5Ò#5Ñ#7Ô#7ð ð ‘�	˜4Ø”9 	Ò)Ð)Ø;?Õ-¨iÑ8Ø �EØ�Eð *ð
 ð PÝ  IÐ!NÐ!NÐ!NÑOÔOÐOðPð "ÐÐÐr*   c                 ó2  — |€t                                ¦   «         }n|}|                     ¦   «         D ]c\  }}|| vs||v rŒt          |t          ¦  «        r|||<   Œ)|j        €|j        n|j        }|ot          |¦  «        }t          ||¬¦  «        ||<   Œd|S )N©Úremote)	ÚBASE_PYTHON_TOOLSÚcopyrJ   Ú
isinstancer   r$   r"   r   r   )	ÚcodeÚtoolboxr[   Úcached_toolsÚresolved_toolsr5   rW   Útask_or_repo_idÚ_remotes	            r+   Úresolve_toolsre      s»   € ØÐÝ*×/Ò/Ñ1Ô1ˆˆà%ˆØ—m’m‘o”oð 	Nð 	N‰
ˆˆdØ�tÐÐ˜t ~Ð5Ð5Øå�d�DÑ!Ô!ð 	NØ#'ˆN˜4Ñ Ð à+/¬<Ð+?˜dœi˜iÀTÄ\ˆOØÐA¥°Ñ!AÔ!AˆGÝ#,¨_ÀWÐ#MÑ#MÔ#MˆN˜4Ñ Ð àÐr*   c                 ó  — ddg}|                      ¦   «         D ]]\  }}|| vst          |t          ¦  «        rŒ|j        €|j        n|j        }|› d|› d�}|r|dz  }|dz  }|                     |¦  «         Œ^d                     |¦  «        dz   S )Nz"from transformers import load_toolÚ z = load_tool("ú"z, remote=Trueú)ú
)rJ   r^   r   r$   r"   ÚappendÚjoin)r_   r`   r[   Ú
code_linesr5   rW   rc   Úlines           r+   Úget_tool_creation_codero   ’   s·   € Ø6¸Ð;€JØ—m’m‘o”oð 	 ð 	 ‰
ˆˆdØ�tÐÐ�z¨$µÑ5Ô5ÐØà'+¤|Ð';˜$œ)˜)ÀÄˆØÐ8Ð8 oÐ8Ð8Ð8ˆØð 	$Ø�OÑ#ˆDØ�‰ˆØ×Ò˜$ÑÔÐÐà�9Š9�ZÑ Ô  4Ñ'Ð'r*   c                 óø  — |                       d¦  «        }d}|t          |¦  «        k     rr||                              ¦   «                              d¦  «        sE|dz  }|t          |¦  «        k     r-||                              ¦   «                              d¦  «        ¯Ed                     |d |…         ¦  «                             ¦   «         }|t          |¦  «        k    r|d fS |dz  }|}||                              ¦   «                              d¦  «        s2|dz  }||                              ¦   «                              d¦  «        ¯2d                     |||…         ¦  «                             ¦   «         }||fS )Nrj   r   ú```r   )r<   ÚlenÚlstripÚ
startswithrl   Ústrip)ÚresultÚlinesÚidxÚexplanationÚ	start_idxr_   s         r+   Úclean_code_for_chatr{   ¢   sb  € Ø�LŠL˜ÑÔ€EØ
€CØ
•�E‘
”
Ò
Ð
 5¨¤:×#4Ò#4Ñ#6Ô#6×#AÒ#AÀ%Ñ#HÔ#HÐ
Øˆq‰ˆð •�E‘
”
Ò
Ð
 5¨¤:×#4Ò#4Ñ#6Ô#6×#AÒ#AÀ%Ñ#HÔ#HÐ
à—)’)˜E $ 3 $œKÑ(Ô(×.Ò.Ñ0Ô0€KØ
�c�%‰jŒjÒÐØ˜DÐ Ð àˆ1�H€CØ€IØ�CŒj×ÒÑ!Ô!×,Ò,¨UÑ3Ô3ð Øˆq‰ˆð �CŒj×ÒÑ!Ô!×,Ò,¨UÑ3Ô3ð à�9Š9�U˜9 S˜=Ô)Ñ*Ô*×0Ò0Ñ2Ô2€Dà˜ÐÐr*   c                 ó<  — d| › �} |                       d¦  «        \  }}|                     ¦   «         }|                     ¦   «         }|                      d¦  «        }|d         dv r
|dd …         }|d         dk    r
|d d…         }d                     |¦  «        }||fS )	NzI will use the following zAnswer:rj   r   )rq   z```pyz	```pythonr   r3   rq   )r<   ru   rl   )rv   ry   r_   rm   s       r+   Úclean_code_for_runr}   ´   s©   € Ø1¨Ð1Ð1€FØŸš YÑ/Ô/Ñ€K�Ø×#Ò#Ñ%Ô%€KØ�:Š:‰<Œ<€Dà—’˜DÑ!Ô!€JØ�!„}Ð5Ð5Ð5Ø   ”^ˆ
Ø�"„~˜ÒÐØ   ”_ˆ
Ø�9Š9�ZÑ Ô €Dà˜ÐÐr*   c                   ó‚   — e Zd ZdZdd„Zedeeef         fd„¦   «         Z	dd„Z
d„ Zddd	œd
„Zd„ Zddd	œd„Zd„ Zd„ ZdS )ÚAgenta&  
    Base class for all agents which contains the main API methods.

    Args:
        chat_prompt_template (`str`, *optional*):
            Pass along your own prompt if you want to override the default template for the `chat` method. Can be the
            actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
            `chat_prompt_template.txt` in this repo in this case.
        run_prompt_template (`str`, *optional*):
            Pass along your own prompt if you want to override the default template for the `run` method. Can be the
            actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
            `run_prompt_template.txt` in this repo in this case.
        additional_tools ([`Tool`], list of tools or dictionary with tool values, *optional*):
            Any additional tools to include on top of the default ones. If you pass along a tool with the same name as
            one of the default tools, that default tool will be overridden.
    Nc                 óœ  — t          ¦   «          | j        j        }t          ||d¬¦  «        | _        t          ||d¬¦  «        | _        t                               ¦   «         | _        t          | _
        |��Bt          |t          t          f¦  «        rd„ |D ¦   «         }nt          |t          ¦  «        s	|j        |i}d„ |                     ¦   «         D ¦   «         }| j                             |¦  «         t%          |¦  «        dk    rPd                     d„ |                     ¦   «         D ¦   «         ¦  «        }t(                               d	|› d
�¦  «         n`t%          |¦  «        dk    rMt          |                     ¦   «         ¦  «        d         }t(                               |› d||         › d�¦  «         |                      ¦   «          d S )NÚchat)ÚmodeÚrunc                 ó   — i | ]
}|j         |“ŒS r)   )r5   )Ú.0Úts     r+   ú
<dictcomp>z"Agent.__init__.<locals>.<dictcomp>à   s   € Ð#HÐ#HÐ#H°! A¤F¨AÐ#HÐ#HÐ#Hr*   c                 ó,   — i | ]\  }}|t           v ¯||“ŒS r)   )rL   ©r…   r5   rW   s      r+   r‡   z"Agent.__init__.<locals>.<dictcomp>ä   s*   € ÐwÐwÐw©:¨4°ÐUYÕ]vÐUvÐUv˜D $ÐUvÐUvÐUvr*   r   rj   c                 ó$   — g | ]\  }}d |› d|› �‘ŒS ©z- ú: r)   )r…   Únr†   s      r+   ú
<listcomp>z"Agent.__init__.<locals>.<listcomp>ç   s(   € Ð"RÐ"RÐ"R±T°Q¸ =¨ = =¨Q = =Ð"RÐ"RÐ"Rr*   zSThe following tools have been replaced by the ones provided in `additional_tools`:
ú.r   z has been replaced by z# as provided in `additional_tools`.)rX   Ú	__class__r%   r   Úchat_prompt_templateÚrun_prompt_templaterL   r]   Ú_toolboxr   Úlogr^   ÚlistÚtupleÚdictr5   rJ   Úupdaterr   rl   r6   ÚwarningÚkeysÚprepare_for_new_chat)Úselfr‘   r’   Úadditional_toolsÚ
agent_nameÚreplacementsÚnamesr5   s           r+   Ú__init__zAgent.__init__Ö   sÐ  € ÝÑÔÐà”^Ô,ˆ
Ý$3Ð4HÈ*Ð[aÐ$bÑ$bÔ$bˆÔ!Ý#2Ð3FÈ
ÐY^Ð#_Ñ#_Ô#_ˆÔ Ý1×6Ò6Ñ8Ô8ˆŒÝˆŒØÑ'ÝÐ*­Tµ5¨MÑ:Ô:ð MØ#HÐ#HÐ7GÐ#HÑ#HÔ#HÐ Ð ÝÐ 0µ$Ñ7Ô7ð MØ$4Ô$9Ð;KÐ#LÐ àwÐwÐ9I×9OÒ9OÑ9QÔ9QÐwÑwÔwˆLØŒM× Ò Ð!1Ñ2Ô2Ð2Ý�<Ñ Ô  1Ò$Ð$ØŸ	š	Ð"RÐ"R¸\×=OÒ=OÑ=QÔ=QÐ"RÑ"RÔ"RÑSÔS�Ý—’ØsÐkpÐsÐsÐsñô ð ð õ �\Ñ"Ô" aÒ'Ð'Ý˜L×-Ò-Ñ/Ô/Ñ0Ô0°Ô3�Ý—’ $ÐuÐu¸lÈ4Ô>PÐuÐuÐuÑvÔvÐvà×!Ò!Ñ#Ô#Ð#Ð#Ð#r*   Úreturnc                 ó   — | j         S )z-Get all tool currently available to the agent)r“   ©rœ   s    r+   r`   zAgent.toolboxñ   s   € ð Œ}Ðr*   Fc                 ó^  — d                      d„ | j                             ¦   «         D ¦   «         ¦  «        }|rC| j        €| j                             d|¦  «        }n| j        }|t          j        d|¦  «        z  }n1| j                             d|¦  «        }|                     d|¦  «        }|S )Nrj   c                 ó.   — g | ]\  }}d |› d|j         › �‘ŒS r‹   )r#   r‰   s      r+   rŽ   z'Agent.format_prompt.<locals>.<listcomp>÷   s0   € Ð hÐ hÐ hÁZÀTÈ4Ð!@ dÐ!@Ð!@¨dÔ.>Ð!@Ð!@Ð hÐ hÐ hr*   z<<all_tools>>z<<task>>z
<<prompt>>)rl   r`   rJ   Úchat_historyr‘   Úreplacer   r’   )rœ   r"   Ú	chat_moder#   Úprompts        r+   Úformat_promptzAgent.format_promptö   s¯   € Ø—i’iÐ hÐ hÐSWÔS_×SeÒSeÑSgÔSgÐ hÑ hÔ hÑiÔiˆØð 	8ØÔ Ð(ØÔ2×:Ò:¸?ÈKÑXÔX��àÔ*�ØÕ)Ô1°*¸dÑCÔCÑCˆFˆFàÔ-×5Ò5°oÀ{ÑSÔSˆFØ—^’^ L°$Ñ7Ô7ˆFØˆr*   c                 ó   — || _         dS )zÃ
        Set the function use to stream results (which is `print` by default).

        Args:
            streamer (`callable`): The function to call when streaming results from the LLM.
        N)r”   )rœ   Ústreamers     r+   Ú
set_streamzAgent.set_stream  s   € ð ˆŒˆˆr*   )Úreturn_coder[   c                óH  — |                       |d¬¦  «        }|                      |ddg¬¦  «        }||                     ¦   «         z   dz   | _        t	          |¦  «        \  }}|                      d|› �¦  «         |�¦|                      d	|› �¦  «         |sn|                      d
¦  «         t          || j        || j        ¬¦  «        | _        | j	         
                    |¦  «         t          || j        | j	        d¬¦  «        S t          || j        |¬¦  «        }	|	› d|› �S dS )a”  
        Sends a new request to the agent in a chat. Will use the previous ones in its history.

        Args:
            task (`str`): The task to perform
            return_code (`bool`, *optional*, defaults to `False`):
                Whether to just return code and not evaluate it.
            remote (`bool`, *optional*, defaults to `False`):
                Whether or not to use remote tools (inference endpoints) instead of local ones.
            kwargs (additional keyword arguments, *optional*):
                Any keyword argument to send to the agent when evaluating the code.

        Example:

        ```py
        from transformers import HfAgent

        agent = HfAgent("https://api-inference.huggingface.co/models/bigcode/starcoder")
        agent.chat("Draw me a picture of rivers and lakes")

        agent.chat("Transform the picture so that there is a rock in there")
        ```
        T)r©   zHuman:z=====©Ústoprj   ú==Explanation from the agent==
Nú"

==Code generated by the agent==
ú

==Result==©r[   ra   rZ   )r«   Úgenerate_oneru   r§   r{   r”   re   r`   ra   Ú
chat_stater˜   r   ro   ©
rœ   r"   r¯   r[   Úkwargsrª   rv   ry   r_   Ú	tool_codes
             r+   r�   z
Agent.chat  s@  € ð0 ×#Ò# D°DÐ#Ñ9Ô9ˆØ×"Ò" 6°¸7Ð0CÐ"ÑDÔDˆØ" V§\¢\¡^¤^Ñ3°dÑ:ˆÔÝ/°Ñ7Ô7Ñˆ�Tà�ŠÐA°KÐAÐAÑBÔBÐBàÐØ�HŠHÐC¸TÐCÐCÑDÔDÐDØð .Ø—’Ð)Ñ*Ô*Ð*Ý$1°$¸¼ÈVÐbfÔbsÐ$tÑ$tÔ$t�Ô!Ø”×&Ò& vÑ.Ô.Ð.Ý  dÔ&7¸¼ÐTXÐYÑYÔYÐYå2°4¸¼ÈfÐUÑUÔU�	Ø#Ð-Ð- tÐ-Ð-Ð-ð Ðr*   c                 ó0   — d| _         i | _        d| _        dS )zG
        Clears the history of prior calls to [`~Agent.chat`].
        N)r§   r¸   ra   r¤   s    r+   r›   zAgent.prepare_for_new_chat6  s!   € ð !ˆÔØˆŒØ ˆÔÐÐr*   c                óà  — |                       |¦  «        }|                      |dg¬¦  «        }t          |¦  «        \  }}|                      d|› �¦  «         |                      d|› �¦  «         |s`|                      d¦  «         t	          || j        || j        ¬¦  «        | _        t          || j        |                     ¦   «         ¬¦  «        S t          || j        |¬¦  «        }	|	› d	|› �S )
a  
        Sends a request to the agent.

        Args:
            task (`str`): The task to perform
            return_code (`bool`, *optional*, defaults to `False`):
                Whether to just return code and not evaluate it.
            remote (`bool`, *optional*, defaults to `False`):
                Whether or not to use remote tools (inference endpoints) instead of local ones.
            kwargs (additional keyword arguments, *optional*):
                Any keyword argument to send to the agent when evaluating the code.

        Example:

        ```py
        from transformers import HfAgent

        agent = HfAgent("https://api-inference.huggingface.co/models/bigcode/starcoder")
        agent.run("Draw me a picture of rivers and lakes")
        ```
        zTask:r±   r³   r´   rµ   r¶   )ÚstaterZ   rj   )
r«   r·   r}   r”   re   r`   ra   r   r]   ro   r¹   s
             r+   rƒ   z	Agent.run>  sý   € ð, ×#Ò# DÑ)Ô)ˆØ×"Ò" 6°°	Ð"Ñ:Ô:ˆÝ.¨vÑ6Ô6Ñˆ�Tà�ŠÐA°KÐAÐAÑBÔBÐBà�ŠÐ?¸Ð?Ð?Ñ@Ô@Ð@Øð 	*Ø�HŠHÐ%Ñ&Ô&Ð&Ý -¨d°D´LÈÐ^bÔ^oÐ pÑ pÔ pˆDÔÝ˜D $Ô"3¸6¿;º;¹=¼=ÐIÑIÔIÐIå.¨t°T´\È&ÐQÑQÔQˆIØÐ)Ð) 4Ð)Ð)Ð)r*   c                 ó   — t           ‚©N)ÚNotImplementedError©rœ   rª   r²   s      r+   r·   zAgent.generate_onec  s   € å!Ð!r*   c                 ó$   ‡ ‡— ˆ ˆfd„|D ¦   «         S )Nc                 ó<   •— g | ]}‰                      |‰¦  «        ‘ŒS r)   )r·   ©r…   rª   rœ   r²   s     €€r+   rŽ   z'Agent.generate_many.<locals>.<listcomp>i  s)   ø€ ÐFÐFÐF°F�×!Ò! &¨$Ñ/Ô/ÐFÐFÐFr*   r)   ©rœ   Úpromptsr²   s   ` `r+   Úgenerate_manyzAgent.generate_manyg  s!   øø€ àFÐFÐFÐFÐF¸gÐFÑFÔFÐFr*   ©NNN©F)r%   r&   r'   Ú__doc__r¡   Úpropertyr   r   r   r`   r«   r®   r�   r›   rƒ   r·   rÈ   r)   r*   r+   r   r   Ä   sø   € € € € € ðð ð"$ð $ð $ð $ð6 ð˜˜c 4˜iœð ð ð ñ „Xððð ð ð ðð ð ð ).°eð (.ð (.ð (.ð (.ð (.ðT!ð !ð !ð (-°Uð #*ð #*ð #*ð #*ð #*ðJ"ð "ð "ðGð Gð Gð Gð Gr*   r   c                   óF   ‡ — e Zd ZdZ	 	 	 	 	 d	ˆ fd„	Zd„ Zd„ Zd„ Zd„ Zˆ xZ	S )
ÚOpenAiAgentu!  
    Agent that uses the openai API to generate code.

    <Tip warning={true}>

    The openAI models are used in generation mode, so even for the `chat()` API, it's better to use models like
    `"text-davinci-003"` over the chat-GPT variant. Proper support for chat-GPT models will come in a next version.

    </Tip>

    Args:
        model (`str`, *optional*, defaults to `"text-davinci-003"`):
            The name of the OpenAI model to use.
        api_key (`str`, *optional*):
            The API key to use. If unset, will look for the environment variable `"OPENAI_API_KEY"`.
        chat_prompt_template (`str`, *optional*):
            Pass along your own prompt if you want to override the default template for the `chat` method. Can be the
            actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
            `chat_prompt_template.txt` in this repo in this case.
        run_prompt_template (`str`, *optional*):
            Pass along your own prompt if you want to override the default template for the `run` method. Can be the
            actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
            `run_prompt_template.txt` in this repo in this case.
        additional_tools ([`Tool`], list of tools or dictionary with tool values, *optional*):
            Any additional tools to include on top of the default ones. If you pass along a tool with the same name as
            one of the default tools, that default tool will be overridden.

    Example:

    ```py
    from transformers import OpenAiAgent

    agent = OpenAiAgent(model="text-davinci-003", api_key=xxx)
    agent.run("Is the following `text` (in Spanish) positive or negative?", text="Â¡Este es un API muy agradable!")
    ```
    útext-davinci-003Nc                 ó  •— t          ¦   «         st          d¦  «        ‚|€ t          j                             dd ¦  «        }|€t          d¦  «        ‚|t          _        || _        t          ¦   «          
                    |||¬¦  «         d S )Nú<Using `OpenAiAgent` requires `openai`: `pip install openai`.ÚOPENAI_API_KEYz·You need an openai key to use `OpenAIAgent`. You can get one here: Get one here https://openai.com/api/`. If you have one, set it in your env with `os.environ['OPENAI_API_KEY'] = xxx.©r‘   r’   r�   )r   ÚImportErrorÚosÚenvironÚgetrN   ÚopenaiÚapi_keyÚmodelÚsuperr¡   )rœ   rÚ   rÙ   r‘   r’   r�   r�   s         €r+   r¡   zOpenAiAgent.__init__’  sž   ø€ õ #Ñ$Ô$ð 	^ÝÐ\Ñ]Ô]Ð]àˆ?Ý”j—n’nÐ%5°tÑ<Ô<ˆGØˆ?Ýðñô ð ð %�FŒNØˆŒ
Ý‰Œ×ÒØ!5Ø 3Ø-ð 	ñ 	
ô 	
ð 	
ð 	
ð 	
r*   c                 ób   ‡ ‡— d‰ j         v rˆ ˆfd„|D ¦   «         S ‰                      |‰¦  «        S )NÚgptc                 ó<   •— g | ]}‰                      |‰¦  «        ‘ŒS r)   ©Ú_chat_generaterÅ   s     €€r+   rŽ   z-OpenAiAgent.generate_many.<locals>.<listcomp>°  ó)   ø€ ÐLÐLÐL¸&�D×'Ò'¨°Ñ5Ô5ÐLÐLÐLr*   )rÚ   Ú_completion_generaterÆ   s   ` `r+   rÈ   zOpenAiAgent.generate_many®  sD   øø€ Ø�D”JÐÐØLÐLÐLÐLÐLÀGÐLÑLÔLÐLà×,Ò,¨W°dÑ;Ô;Ð;r*   c                 óz   — d| j         v r|                      ||¦  «        S |                      |g|¦  «        d         S )NrÝ   r   )rÚ   rà   râ   rÂ   s      r+   r·   zOpenAiAgent.generate_one´  sB   € Ø�D”JÐÐØ×&Ò& v¨tÑ4Ô4Ð4à×,Ò,¨f¨X°tÑ<Ô<¸QÔ?Ð?r*   c                 óŽ   — t           j                             | j        d|dœgd|¬¦  «        }|d         d         d         d         S )NÚuser©ÚroleÚcontentr   )rÚ   ÚmessagesÚtemperaturer²   ÚchoicesÚmessagerè   )rØ   ÚChatCompletionÚcreaterÚ   ©rœ   rª   r²   rv   s       r+   rà   zOpenAiAgent._chat_generateº  sT   € ÝÔ&×-Ò-Ø”*Ø%°&Ð9Ð9Ð:ØØð	 .ñ 
ô 
ˆð �iÔ  Ô# IÔ.¨yÔ9Ð9r*   c                 óx   — t           j                             | j        |d|d¬¦  «        }d„ |d         D ¦   «         S )Nr   éÈ   )rÚ   rª   rê   r²   Ú
max_tokensc                 ó   — g | ]
}|d          ‘ŒS ©Útextr)   ©r…   Úanswers     r+   rŽ   z4OpenAiAgent._completion_generate.<locals>.<listcomp>Ë  ó   € Ð?Ð?Ð? 6��v”Ð?Ð?Ð?r*   rë   )rØ   Ú
Completionrî   rÚ   ©rœ   rÇ   r²   rv   s       r+   râ   z OpenAiAgent._completion_generateÃ  sL   € ÝÔ"×)Ò)Ø”*ØØØØð *ñ 
ô 
ˆð @Ð?¨V°IÔ->Ð?Ñ?Ô?Ð?r*   )rÏ   NNNN©
r%   r&   r'   rË   r¡   rÈ   r·   rà   râ   Ú__classcell__©r�   s   @r+   rÎ   rÎ   l  sŸ   ø€ € € € € ð#ð #ðN !ØØ!Ø Øð
ð 
ð 
ð 
ð 
ð 
ð8<ð <ð <ð@ð @ð @ð:ð :ð :ð@ð @ð @ð @ð @ð @ð @r*   rÎ   c                   óJ   ‡ — e Zd ZdZ	 	 	 	 	 	 	 d	ˆ fd„	Zd„ Zd„ Zd„ Zd„ Zˆ xZ	S )
ÚAzureOpenAiAgentuæ	  
    Agent that uses Azure OpenAI to generate code. See the [official
    documentation](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/) to learn how to deploy an openAI
    model on Azure

    <Tip warning={true}>

    The openAI models are used in generation mode, so even for the `chat()` API, it's better to use models like
    `"text-davinci-003"` over the chat-GPT variant. Proper support for chat-GPT models will come in a next version.

    </Tip>

    Args:
        deployment_id (`str`):
            The name of the deployed Azure openAI model to use.
        api_key (`str`, *optional*):
            The API key to use. If unset, will look for the environment variable `"AZURE_OPENAI_API_KEY"`.
        resource_name (`str`, *optional*):
            The name of your Azure OpenAI Resource. If unset, will look for the environment variable
            `"AZURE_OPENAI_RESOURCE_NAME"`.
        api_version (`str`, *optional*, default to `"2022-12-01"`):
            The API version to use for this agent.
        is_chat_mode (`bool`, *optional*):
            Whether you are using a completion model or a chat model (see note above, chat models won't be as
            efficient). Will default to `gpt` being in the `deployment_id` or not.
        chat_prompt_template (`str`, *optional*):
            Pass along your own prompt if you want to override the default template for the `chat` method. Can be the
            actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
            `chat_prompt_template.txt` in this repo in this case.
        run_prompt_template (`str`, *optional*):
            Pass along your own prompt if you want to override the default template for the `run` method. Can be the
            actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
            `run_prompt_template.txt` in this repo in this case.
        additional_tools ([`Tool`], list of tools or dictionary with tool values, *optional*):
            Any additional tools to include on top of the default ones. If you pass along a tool with the same name as
            one of the default tools, that default tool will be overridden.

    Example:

    ```py
    from transformers import AzureOpenAiAgent

    agent = AzureAiAgent(deployment_id="Davinci-003", api_key=xxx, resource_name=yyy)
    agent.run("Is the following `text` (in Spanish) positive or negative?", text="Â¡Este es un API muy agradable!")
    ```
    Nú
2022-12-01c	                 ó
  •— t          ¦   «         st          d¦  «        ‚|| _        dt          _        |€ t
          j                             dd ¦  «        }|€t          d¦  «        ‚|t          _	        |€ t
          j                             dd ¦  «        }|€t          d¦  «        ‚d|› d�t          _
        |t          _        |€d	|                     ¦   «         v }|| _        t          ¦   «                              |||¬
¦  «         d S )NrÑ   ÚazureÚAZURE_OPENAI_API_KEYz‹You need an Azure openAI key to use `AzureOpenAIAgent`. If you have one, set it in your env with `os.environ['AZURE_OPENAI_API_KEY'] = xxx.ÚAZURE_OPENAI_RESOURCE_NAMEz�You need a resource_name to use `AzureOpenAIAgent`. If you have one, set it in your env with `os.environ['AZURE_OPENAI_RESOURCE_NAME'] = xxx.zhttps://z.openai.azure.comrÝ   rÓ   )r   rÔ   Údeployment_idrØ   Úapi_typerÕ   rÖ   r×   rN   rÙ   Úapi_baseÚapi_versionÚlowerÚis_chat_modelrÛ   r¡   )
rœ   r  rÙ   Úresource_namer  r
  r‘   r’   r�   r�   s
            €r+   r¡   zAzureOpenAiAgent.__init__þ  s!  ø€ õ #Ñ$Ô$ð 	^ÝÐ\Ñ]Ô]Ð]à*ˆÔØ!�ŒØˆ?Ý”j—n’nÐ%;¸TÑBÔBˆGØˆ?Ýð=ñô ð ð
 %�FŒNØÐ ÝœJŸNšNÐ+GÈÑNÔNˆMØÐ ÝðCñô ð ð
 J¨ÐIÐIÐI�FŒOØ(�ÔàÐ Ø! ]×%8Ò%8Ñ%:Ô%:Ð:ˆMØ*ˆÔå‰Œ×ÒØ!5Ø 3Ø-ð 	ñ 	
ô 	
ð 	
ð 	
ð 	
r*   c                 ó^   ‡ ‡— ‰ j         rˆ ˆfd„|D ¦   «         S ‰                      |‰¦  «        S )Nc                 ó<   •— g | ]}‰                      |‰¦  «        ‘ŒS r)   rß   rÅ   s     €€r+   rŽ   z2AzureOpenAiAgent.generate_many.<locals>.<listcomp>.  rá   r*   )r
  râ   rÆ   s   ` `r+   rÈ   zAzureOpenAiAgent.generate_many,  sB   øø€ ØÔð 	<ØLÐLÐLÐLÐLÀGÐLÑLÔLÐLà×,Ò,¨W°dÑ;Ô;Ð;r*   c                 óv   — | j         r|                      ||¦  «        S |                      |g|¦  «        d         S )Nr   )r
  rà   râ   rÂ   s      r+   r·   zAzureOpenAiAgent.generate_one2  sA   € ØÔð 	@Ø×&Ò& v¨tÑ4Ô4Ð4à×,Ò,¨f¨X°tÑ<Ô<¸QÔ?Ð?r*   c                 óŽ   — t           j                             | j        d|dœgd|¬¦  «        }|d         d         d         d         S )Nrå   ræ   r   )Úengineré   rê   r²   rë   rì   rè   )rØ   rí   rî   r  rï   s       r+   rà   zAzureOpenAiAgent._chat_generate8  sU   € ÝÔ&×-Ò-ØÔ%Ø%°&Ð9Ð9Ð:ØØð	 .ñ 
ô 
ˆð �iÔ  Ô# IÔ.¨yÔ9Ð9r*   c                 óx   — t           j                             | j        |d|d¬¦  «        }d„ |d         D ¦   «         S )Nr   rñ   )r  rª   rê   r²   rò   c                 ó   — g | ]
}|d          ‘ŒS rô   r)   rö   s     r+   rŽ   z9AzureOpenAiAgent._completion_generate.<locals>.<listcomp>I  rø   r*   rë   )rØ   rù   rî   r  rú   s       r+   râ   z%AzureOpenAiAgent._completion_generateA  sM   € ÝÔ"×)Ò)ØÔ%ØØØØð *ñ 
ô 
ˆð @Ð?¨V°IÔ->Ð?Ñ?Ô?Ð?r*   )NNr   NNNNrû   rý   s   @r+   rÿ   rÿ   Î  s¦   ø€ € € € € ð-ð -ðd ØØ ØØ!Ø Øð,
ð ,
ð ,
ð ,
ð ,
ð ,
ð\<ð <ð <ð@ð @ð @ð:ð :ð :ð@ð @ð @ð @ð @ð @ð @r*   rÿ   c                   ó,   ‡ — e Zd ZdZ	 dˆ fd„	Zd„ Zˆ xZS )ÚHfAgentuc  
    Agent that uses an inference endpoint to generate code.

    Args:
        url_endpoint (`str`):
            The name of the url endpoint to use.
        token (`str`, *optional*):
            The token to use as HTTP bearer authorization for remote files. If unset, will use the token generated when
            running `huggingface-cli login` (stored in `~/.huggingface`).
        chat_prompt_template (`str`, *optional*):
            Pass along your own prompt if you want to override the default template for the `chat` method. Can be the
            actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
            `chat_prompt_template.txt` in this repo in this case.
        run_prompt_template (`str`, *optional*):
            Pass along your own prompt if you want to override the default template for the `run` method. Can be the
            actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
            `run_prompt_template.txt` in this repo in this case.
        additional_tools ([`Tool`], list of tools or dictionary with tool values, *optional*):
            Any additional tools to include on top of the default ones. If you pass along a tool with the same name as
            one of the default tools, that default tool will be overridden.

    Example:

    ```py
    from transformers import HfAgent

    agent = HfAgent("https://api-inference.huggingface.co/models/bigcode/starcoder")
    agent.run("Is the following `text` (in Spanish) positive or negative?", text="Â¡Este es un API muy agradable!")
    ```
    Nc                 ó,  •— || _         |€)dt          ¦   «                              ¦   «         › �| _        n<|                     d¦  «        s|                     d¦  «        r|| _        n
d|› �| _        t          ¦   «                              |||¬¦  «         d S )NzBearer ÚBearerÚBasicrÓ   )Úurl_endpointr   Ú	get_tokenÚtokenrt   rÛ   r¡   )rœ   r  r  r‘   r’   r�   r�   s         €r+   r¡   zHfAgent.__init__l  sª   ø€ ð )ˆÔØˆ=Ø;¥8¡:¤:×#7Ò#7Ñ#9Ô#9Ð;Ð;ˆDŒJˆJØ×Ò˜hÑ'Ô'ð 	+¨5×+;Ò+;¸GÑ+DÔ+Dð 	+ØˆDŒJˆJà* 5Ð*Ð*ˆDŒJÝ‰Œ×ÒØ!5Ø 3Ø-ð 	ñ 	
ô 	
ð 	
ð 	
ð 	
r*   c                 ó  — d| j         i}|dd|dœdœ}t          j        | j        ||¬¦  «        }|j        dk    rCt
                               d¦  «         t          j        d	¦  «         |  	                    |¦  «        S |j        dk    r,t          d
|j        › d|                     ¦   «         › �¦  «        ‚|                     ¦   «         d         d         }|D ]1}|                     |¦  «        r|d t          |¦  «         …         c S Œ2|S )NÚAuthorizationrñ   F)Úmax_new_tokensÚreturn_full_textr²   )ÚinputsÚ
parameters)r:   Úheadersi­  z=Getting rate-limited, waiting a tiny bit before trying again.r   zError rŒ   r   Úgenerated_text)r  ÚrequestsÚpostr  Ústatus_coder6   r7   ÚtimeÚsleepÚ_generate_onerN   r:   Úendswithrr   )rœ   rª   r²   r!  r  Úresponserv   Ústop_seqs           r+   r·   zHfAgent.generate_one|  s$  € Ø" D¤JÐ/ˆàØ-0ÀeÐUYÐZÐZð
ð 
ˆõ
 ”= Ô!2¸ÈÐQÑQÔQˆØÔ 3Ò&Ð&Ý�KŠKÐWÑXÔXÐXÝŒJ�q‰MŒMˆMØ×%Ò% fÑ-Ô-Ð-ØÔ! SÒ(Ð(ÝÐO hÔ&:ÐOÐO¸h¿mºm¹o¼oÐOÐOÑPÔPÐPà—’‘” Ô#Ð$4Ô5ˆàð 	0ð 	0ˆHØ�Š˜xÑ(Ô(ð 0ØÐ.¥ X¡¤ Ð.Ô/Ð/Ð/Ð/ð0àˆr*   )NNNN)r%   r&   r'   rË   r¡   r·   rü   rý   s   @r+   r  r  L  s^   ø€ € € € € ðð ð@ osð
ð 
ð 
ð 
ð 
ð 
ð ð ð ð ð ð ð r*   r  c                   óV   ‡ — e Zd ZdZdˆ fd„	Zed„ ¦   «         Zed„ ¦   «         Zd„ Z	ˆ xZ
S )Ú
LocalAgenta€  
    Agent that uses a local model and tokenizer to generate code.

    Args:
        model ([`PreTrainedModel`]):
            The model to use for the agent.
        tokenizer ([`PreTrainedTokenizer`]):
            The tokenizer to use for the agent.
        chat_prompt_template (`str`, *optional*):
            Pass along your own prompt if you want to override the default template for the `chat` method. Can be the
            actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
            `chat_prompt_template.txt` in this repo in this case.
        run_prompt_template (`str`, *optional*):
            Pass along your own prompt if you want to override the default template for the `run` method. Can be the
            actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
            `run_prompt_template.txt` in this repo in this case.
        additional_tools ([`Tool`], list of tools or dictionary with tool values, *optional*):
            Any additional tools to include on top of the default ones. If you pass along a tool with the same name as
            one of the default tools, that default tool will be overridden.

    Example:

    ```py
    import torch
    from transformers import AutoModelForCausalLM, AutoTokenizer, LocalAgent

    checkpoint = "bigcode/starcoder"
    model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map="auto", torch_dtype=torch.bfloat16)
    tokenizer = AutoTokenizer.from_pretrained(checkpoint)

    agent = LocalAgent(model, tokenizer)
    agent.run("Draw me a picture of rivers and lakes.")
    ```
    Nc                 ól   •— || _         || _        t          ¦   «                              |||¬¦  «         d S )NrÓ   )rÚ   Ú	tokenizerrÛ   r¡   )rœ   rÚ   r/  r‘   r’   r�   r�   s         €r+   r¡   zLocalAgent.__init__·  sE   ø€ ØˆŒ
Ø"ˆŒÝ‰Œ×ÒØ!5Ø 3Ø-ð 	ñ 	
ô 	
ð 	
ð 	
ð 	
r*   c                 ób   — t          j        |fi |¤Ž}t          j        |fi |¤Ž} | ||¦  «        S )aÁ  
        Convenience method to build a `LocalAgent` from a pretrained checkpoint.

        Args:
            pretrained_model_name_or_path (`str` or `os.PathLike`):
                The name of a repo on the Hub or a local path to a folder containing both model and tokenizer.
            kwargs (`Dict[str, Any]`, *optional*):
                Keyword arguments passed along to [`~PreTrainedModel.from_pretrained`].

        Example:

        ```py
        import torch
        from transformers import LocalAgent

        agent = LocalAgent.from_pretrained("bigcode/starcoder", device_map="auto", torch_dtype=torch.bfloat16)
        agent.run("Draw me a picture of rivers and lakes.")
        ```
        )r   Úfrom_pretrainedr	   )ÚclsÚpretrained_model_name_or_pathrº   rÚ   r/  s        r+   r1  zLocalAgent.from_pretrainedÀ  sJ   € õ* %Ô4Ð5RÐ]Ð]ÐV\Ð]Ð]ˆÝ!Ô1Ð2OÐZÐZÐSYÐZÐZˆ	Øˆs�5˜)Ñ$Ô$Ð$r*   c                 óÚ   — t          | j        d¦  «        r1t          | j        j                             ¦   «         ¦  «        d         S | j                             ¦   «         D ]
}|j        c S d S )NÚhf_device_mapr   )ÚhasattrrÚ   r•   r5  Úvaluesr   Údevice)rœ   Úparams     r+   Ú_model_devicezLocalAgent._model_deviceÙ  so   € å�4”:˜Ñ/Ô/ð 	>Ý˜œ
Ô0×7Ò7Ñ9Ô9Ñ:Ô:¸1Ô=Ð=Ø”Z×*Ò*Ñ,Ô,ð 	 ð 	 ˆEØ”<ÐÐÐð	 ð 	 r*   c                 óî  — |                       |d¬¦  «                             | j        ¦  «        }|d         j        d         }t	          t          || j         ¦  «        g¦  «        }| j                             |d         d|¬¦  «        }| j                              |d          	                    ¦   «         |d …         ¦  «        }|D ]/}| 
                    |¦  «        r|d t          |¦  «         …         }Œ0|S )NÚpt)Úreturn_tensorsÚ	input_idsr   rñ   )r  Ústopping_criteriar   )r/  Útor:  Úshaper   ÚStopSequenceCriteriarÚ   ÚgenerateÚdecodeÚtolistr)  rr   )	rœ   rª   r²   Úencoded_inputsÚsrc_lenr?  Úoutputsrv   r+  s	            r+   r·   zLocalAgent.generate_oneà  sò   € ØŸš¨¸t˜ÑDÔD×GÒGÈÔHZÑ[Ô[ˆØ  Ô-Ô3°AÔ6ˆÝ0Õ2FÀtÈTÌ^Ñ2\Ô2\Ð1]Ñ^Ô^ÐØ”*×%Ò%Ø˜;Ô'¸ÐO`ð &ñ 
ô 
ˆð ”×&Ò& w¨q¤z×'8Ò'8Ñ':Ô':¸7¸8¸8Ô'DÑEÔEˆàð 	2ð 	2ˆHØ�Š˜xÑ(Ô(ð 2ØÐ 0¥3 x¡=¤= .Ð 0Ô1�øØˆr*   rÉ   )r%   r&   r'   rË   r¡   Úclassmethodr1  rÌ   r:  r·   rü   rý   s   @r+   r-  r-  “  s�   ø€ € € € € ð!ð !ðF
ð 
ð 
ð 
ð 
ð 
ð ð%ð %ñ „[ð%ð0 ð ð  ñ „Xð ðð ð ð ð ð ð r*   r-  c                   ó$   — e Zd ZdZd„ Zdefd„ZdS )rB  a6  
    This class can be used to stop generation whenever a sequence of tokens is encountered.

    Args:
        stop_sequences (`str` or `List[str]`):
            The sequence (or list of sequences) on which to stop execution.
        tokenizer:
            The tokenizer used to decode the model outputs.
    c                 óR   — t          |t          ¦  «        r|g}|| _        || _        d S rÀ   )r^   r   Ústop_sequencesr/  )rœ   rL  r/  s      r+   r¡   zStopSequenceCriteria.__init__û  s/   € Ý�n¥cÑ*Ô*ð 	.Ø,Ð-ˆNØ,ˆÔØ"ˆŒˆˆr*   r¢   c                 ó¨   ‡— | j                              |                     ¦   «         d         ¦  «        Št          ˆfd„| j        D ¦   «         ¦  «        S )Nr   c              3   óB   •K  — | ]}‰                      |¦  «        V — Œd S rÀ   )r)  )r…   Ústop_sequenceÚdecoded_outputs     €r+   ú	<genexpr>z0StopSequenceCriteria.__call__.<locals>.<genexpr>  s1   øè è € ÐcÐc¸m�>×*Ò*¨=Ñ9Ô9ÐcÐcÐcÐcÐcÐcr*   )r/  rD  rE  ÚanyrL  )rœ   r>  Úscoresrº   rP  s       @r+   Ú__call__zStopSequenceCriteria.__call__  sO   ø€ Øœ×.Ò.¨y×/?Ò/?Ñ/AÔ/AÀ!Ô/DÑEÔEˆÝÐcÐcÐcÐcÈtÔObÐcÑcÔcÑcÔcÐcr*   N)r%   r&   r'   rË   r¡   r   rT  r)   r*   r+   rB  rB  ð  sO   € € € € € ðð ð#ð #ð #ðd°tð dð dð dð dð dð dr*   rB  )r,   )FNrÊ   )@Úimportlib.utilrH   r:   rÕ   r&  Údataclassesr   Útypingr   r#  Úhuggingface_hubr   r   r   Úmodels.autor	   Úutilsr
   r   r   r   Úbaser   r   r   r   r   rÇ   r   r   Úpython_interpreterr   Ú
get_loggerr%   r6   rØ   Ú
generationr   r   r   ÚobjectrG   r   r   r   r   r   r   r\   r!   rL   rM   rD   rX   re   ro   r{   r}   r   rÎ   rÿ   r  r-  rB  r)   r*   r+   ú<module>r`     s©  ðð" Ð Ð Ð Ø €€€Ø 	€	€	€	Ø €€€Ø !Ð !Ð !Ð !Ð !Ð !Ø Ð Ð Ð Ð Ð à €€€Ø BÐ BÐ BÐ BÐ BÐ BÐ BÐ BÐ BÐ Bà 'Ð 'Ð 'Ð 'Ð 'Ð 'Ø UÐ UÐ UÐ UÐ UÐ UÐ UÐ UÐ UÐ UÐ UÐ UØ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RÐ RØ 9Ð 9Ð 9Ð 9Ð 9Ð 9Ð 9Ð 9Ø (Ð (Ð (Ð (Ð (Ð (ð 
ˆÔ	˜HÑ	%Ô	%€ð ÐÑÔð Ø€M€M€MàÐÑÔð ØCÐCÐCÐCÐCÐCÐCÐCØ2Ð2Ð2Ð2Ð2Ð2Ð2àÐàÐ ð ØØØØØðð Ð ð ðð ð ð ð ñ ô ñ „ðð Ð ð&ð &ð &Ð "ðð ð ð ð&"ð "ð "ð>ð ð ð ð&(ð (ð (ð (ð ð ð ð$ð ð ð eGð eGð eGð eGð eGñ eGô eGð eGðP_@ð _@ð _@ð _@ð _@�%ñ _@ô _@ð _@ðD{@ð {@ð {@ð {@ð {@�uñ {@ô {@ð {@ð|Dð Dð Dð Dð Dˆeñ Dô Dð DðNZð Zð Zð Zð Z�ñ Zô Zð Zðzdð dð dð dð dÐ+ñ dô dð dð dð dr*   