a
    •˜ëjj  ã                   @   s.   d dl mZ eeef ee edœdd„ZdS )é    )ÚAny)ÚinputsÚmemory_variablesÚreturnc                 C   s@   t t| ƒ g |¢d‘¡ƒ}t|ƒdkr8d|› �}t|ƒ‚|d S )z–Get the prompt input key.

    Args:
        inputs: Dict[str, Any]
        memory_variables: List[str]

    Returns:
        A prompt input key.
    Ústopé   zOne input key expected got r   )ÚlistÚsetÚ
differenceÚlenÚ
ValueError)r   r   Zprompt_input_keysÚmsg© r   úU/mnt/bigstor/www/usecases/.venv/lib/python3.9/site-packages/langchain/memory/utils.pyÚget_prompt_input_key   s
    
r   N)Útypingr   ÚdictÚstrr   r   r   r   r   r   Ú<module>   s   