
    dh                     d    S r SSKJrJr  SSKJr  SSKJr  SSKJ	r	  S\
SS4S	 jr " S
 S\5      rg)zTool for asking human input.    )CallableOptional)CallbackManagerForToolRun)BaseTool)FieldtextreturnNc                 0    [        S5        [        U 5        g )N
)print)r   s    \/var/www/html/shao/venv/lib/python3.13/site-packages/langchain_community/tools/human/tool.py_print_funcr   
   s    	$K	$K    c                       \ rS rSr% SrSr\\S'   Sr\\S'   \	" S S9r
\\/S	4   \S
'   \	" S S9r\\S'    SS\S\\   S\4S jjrSrg	)HumanInputRun   z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                      [         $ N)r    r   r   <lambda>HumanInputRun.<lambda>   s    {r   )default_factoryNprompt_funcc                      [         $ r   )inputr   r   r   r   r      s    r   
input_funcqueryrun_managerr	   c                 D    U R                  U5        U R                  5       $ )zUse the Human input tool.)r   r   )selfr    r!   s      r   _runHumanInputRun._run   s     	  r   r   r   )__name__
__module____qualname____firstlineno____doc__r   str__annotations__r   r   r   r   r   r   r   r$   __static_attributes__r   r   r   r   r      s~    (D#	8  
 */?R)SK3%+&S ?J?
 <@!! 78! 
	! !r   r   )r*   typingr   r   langchain_core.callbacksr   langchain_core.toolsr   pydanticr   r+   r   r   r   r   r   <module>r2      s3    " % > ) c d 
!H !r   