Ë
    µŒjý	  ã                   ó    — d dl mZmZmZmZmZ d dlmZ d dlm	Z	 d dl
mZ d dlmZ deddfd	„Z	 dd
ee   deee      defd„Z G d„ de	«      Zy)é    )ÚAnyÚCallableÚListÚMappingÚOptional)ÚCallbackManagerForLLMRun)ÚLLM)ÚField)Úenforce_stop_tokensÚpromptÚreturnNc                 ó    — t        d| › �«       y)z&Displays the given prompt to the user.Ú
N)Úprint)r   s    úh/var/www/html/Fitness-lenito-AI-main/venv/lib/python3.12/site-packages/langchain_community/llms/human.pyÚ_display_promptr   
   s   € ä	ˆBˆvˆhˆ-Õó    Ú	separatorÚstopc                 ó¨   ‡— | xs d} g }	 t        «       Š‰sn)|j                  ‰«       |rt        ˆfd„|D «       «      rnŒ6| j                  |«      }|S )z3Collects and returns user input as a single string.r   c              3   ó&   •K  — | ]  }|‰v –— Œ
 y ­w©N© )Ú.0ÚseqÚlines     €r   Ú	<genexpr>z&_collect_user_input.<locals>.<genexpr>   s   øè ø€ Ð4©t¨˜˜tœ©tùs   ƒ)ÚinputÚappendÚanyÚjoin)r   r   ÚlinesÚmulti_line_inputr   s       @r   Ú_collect_user_inputr$      s_   ø€ ð Ò!˜T€IØ€Eà
Ü‹wˆÙØØ�‰�TÔá”CÓ4©tÓ4Ô4Øð ð !—~‘~ eÓ,ÐØÐr   c                   ó  — e Zd ZU dZ ed„ ¬«      Zeed<    ed„ ¬«      Zee	gdf   ed<   dZ
e	ed	<   i Zee	ef   ed
<   i Zee	ef   ed<   edee	ef   fd„«       Zede	fd„«       Z	 	 dde	deee	      dee   dede	f
d„Zy)ÚHumanInputLLMzUser input as the response.c                  ó   — t         S r   )r$   r   r   r   Ú<lambda>zHumanInputLLM.<lambda>&   s   € Õ9Lr   )Údefault_factoryÚ
input_funcc                  ó   — t         S r   )r   r   r   r   r(   zHumanInputLLM.<lambda>'   s   € År   NÚprompt_funcr   r   Úinput_kwargsÚprompt_kwargsr   c                 ó   — i S )zU
        Returns an empty dictionary as there are no identifying parameters.
        r   ©Úselfs    r   Ú_identifying_paramsz!HumanInputLLM._identifying_params,   s	   € ð
 ˆ	r   c                  ó   — y)zReturns the type of LLM.zhuman-inputr   r0   s    r   Ú	_llm_typezHumanInputLLM._llm_type3   s   € ð r   r   r   Úrun_managerÚkwargsc                 ó®   —  | j                   |fi | j                  ¤Ž  | j                  d| j                  |dœ| j                  ¤Ž}|�t        ||«      }|S )a~  
        Displays the prompt to the user and returns their input as a response.

        Args:
            prompt (str): The prompt to be displayed to the user.
            stop (Optional[List[str]]): A list of stop strings.
            run_manager (Optional[CallbackManagerForLLMRun]): Currently not used.

        Returns:
            str: The user's input as a response.
        )r   r   r   )r,   r.   r*   r   r-   r   )r1   r   r   r5   r6   Ú
user_inputs         r   Ú_callzHumanInputLLM._call8   sg   € ð$ 	ˆ×Ñ˜Ñ6 4×#5Ñ#5Ò6Ø$�T—_‘_ð 
Ø—n‘n¨4ñ
Ø37×3DÑ3Dñ
ˆ
ð Ðô -¨Z¸Ó>ˆJØÐr   ©NN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r*   r   Ú__annotations__r,   Ústrr   r-   r   r   r.   Úpropertyr2   r4   r   r   r   r9   r   r   r   r&   r&   #   sé   … Ù%á Ñ1LÔM€J�ÓMÙ).Ñ?VÔ)W€K�˜3˜% ˜+Ñ&ÓWØ€IˆsÓØ&(€L�'˜#˜s˜(Ñ#Ó(Ø')€M�7˜3 ˜8Ñ$Ó)àð W¨S°#¨XÑ%6ò ó ðð ð˜3ò ó ðð %)Ø:>ñ	àðð �t˜C‘yÑ!ðð Ð6Ñ7ð	ð
 ðð 
ôr   r&   r:   )Útypingr   r   r   r   r   Úlangchain_core.callbacksr   Ú#langchain_core.language_models.llmsr	   Úpydanticr
   Úlangchain_community.llms.utilsr   r@   r   r$   r&   r   r   r   Ú<module>rG      sg   ðß 9Õ 9å =Ý 3Ý å >ð˜Cð  Dó ð BFñØ˜‰}ðØ+3°D¸±IÑ+>ðàóô(0�Cõ 0r   