
    3fi                     L    d dl mZ d dlmZ d dlmZmZ  G d deeef         Zy)    )Any)RunnableBindingBase)InputOutputc                   X     e Zd ZU dZeed<   ddddededz  dedz  deddf
 fd	Z xZS )
HubRunnablez6An instance of a runnable stored in the LangChain Hub.owner_repo_commitNapi_urlapi_keyr   r   kwargsreturnc                ^    ddl m}  ||||      }i i d|||d}t        |   di | y)an  Initialize the `HubRunnable`.

        Args:
            owner_repo_commit: The full name of the prompt to pull from in the format of
                `owner/prompt_name:commit_hash` or `owner/prompt_name`
                or just `prompt_name` if it's your own prompt.
            api_url: The URL of the LangChain Hub API.
                Defaults to the hosted API service if you have an api key set,
                or a localhost instance if not.
            api_key: The API key to use to authenticate with the LangChain Hub API.
            **kwargs: Additional keyword arguments to pass to the parent class.
        r   )pullr
   )r   config)boundr	   N )langchain_classic.hubr   super__init__)	selfr	   r   r   r   r   pulledsuper_kwargs	__class__s	           ]/var/www/auto_recruiter/arenv/lib/python3.12/site-packages/langchain_classic/runnables/hub.pyr   zHubRunnable.__init__   sM    ( 	/''J
 
 !2
 	(<(    )	__name__
__module____qualname____doc__str__annotations__r   r   __classcell__)r   s   @r   r   r      sV    @ #")) t	)
 t) ) 
) )r   r   N)typingr   langchain_core.runnables.baser   langchain_core.runnables.utilsr   r   r   r   r   r   <module>r'      s$     = 8#)%eVm4 #)r   