
    Ng                     j    d Z ddlmZmZ ddlmZ ddlmZ ddlm	Z	 de
ddfd	Z G d
 de          ZdS )zTool for asking human input.    )CallableOptional)CallbackManagerForToolRun)BaseTool)FieldtextreturnNc                 B    t          d           t          |            d S )N
)print)r   s    `/var/www/html/ai-engine/env/lib/python3.11/site-packages/langchain_community/tools/human/tool.py_print_funcr   
   s    	$KKK	$KKKKK    c                       e Zd ZU dZdZeed<   dZeed<    ed           Z	e
egdf         ed	<    ed
           Ze
ed<   	 ddedee         defdZdS )HumanInputRunzTool that asks user for input.humannamezYou can ask a human for guidance when you think you got stuck or you are not sure what to do next. The input should be a question for the human.descriptionc                      t           S N)r    r   r   <lambda>zHumanInputRun.<lambda>   s    { r   )default_factoryNprompt_funcc                      t           S r   )inputr   r   r   r   zHumanInputRun.<lambda>   s     r   
input_funcqueryrun_managerr	   c                 T    |                      |           |                                 S )zUse the Human input tool.)r   r   )selfr   r   s      r   _runzHumanInputRun._run   s(     	   r   r   )__name__
__module____qualname____doc__r   str__annotations__r   r   r   r   r   r   r   r"   r   r   r   r   r      s         ((D#	8    
 */?R?R)S)S)SK3%+&SSS 5???J???
 <@! !! 78! 
	! ! ! ! ! !r   r   )r&   typingr   r   langchain_core.callbacksr   langchain_core.toolsr   pydanticr   r'   r   r   r   r   r   <module>r-      s    " " % % % % % % % % > > > > > > ) ) ) ) ) )      c d    
! ! ! ! !H ! ! ! ! !r   