a
    ”˜ëj]  ã                   @   sN   d Z ddlmZmZmZ ddlmZmZ G dd„ deƒZG dd„ deeƒZ	dS )	zHuman message.é    )ÚAnyÚLiteralÚUnion)ÚBaseMessageÚBaseMessageChunkc                       s\   e Zd ZU dZdZeed< dZed ed< e	e
ee	e
ef  f eddœ‡ fdd	„Z‡  ZS )
ÚHumanMessagea/  Message from a human.

    ``HumanMessage``s are messages that are passed in from a human to the model.

    Example:

        .. code-block:: python

            from langchain_core.messages import HumanMessage, SystemMessage

            messages = [
                SystemMessage(content="You are a helpful assistant! Your name is Bob."),
                HumanMessage(content="What is your name?"),
            ]

            # Instantiate a chat model and invoke it with the messages
            model = ...
            print(model.invoke(messages))

    FÚexampleZhumanÚtypeN)ÚcontentÚkwargsÚreturnc                    s   t ƒ jf d|i|¤Ž dS )z«Initialize ``HumanMessage``.

        Args:
            content: The string contents of the message.
            kwargs: Additional fields to pass to the message.
        r
   N)ÚsuperÚ__init__)Úselfr
   r   ©Ú	__class__© ú\/mnt/bigstor/www/usecases/.venv/lib/python3.9/site-packages/langchain_core/messages/human.pyr   -   s    zHumanMessage.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚboolÚ__annotations__r	   r   r   ÚstrÚlistÚdictr   r   Ú__classcell__r   r   r   r   r      s   
	ür   c                   @   s"   e Zd ZU dZd Zed  ed< dS )ÚHumanMessageChunkzHuman Message chunk.r	   N)r   r   r   r   r	   r   r   r   r   r   r   r   ;   s   
r   N)
r   Útypingr   r   r   Zlangchain_core.messages.baser   r   r   r   r   r   r   r   Ú<module>   s   3