
    7|h                     b    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y)zTool for asking human input.    )CallableOptional)CallbackManagerForToolRun)BaseTool)FieldtextreturnNc                 0    t        d       t        |        y )N
)print)r   s    c/var/www/html/test/engine/venv/lib/python3.12/site-packages/langchain_community/tools/human/tool.py_print_funcr   
   s    	$K	$K    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y)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                 D    | j                  |       | j                         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      sy    (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>r-      s3    " % > ) c d 
!H !r   