
    D_ik                     :    S r SSKJrJr  SSKJr   " S S\5      rg)0Message responsible for deleting other messages.    )AnyLiteral)BaseMessagec                   T   ^  \ rS rSr% SrSr\S   \S'    S\S\	SS4U 4S	 jjr
S
rU =r$ )RemoveMessage   r   removetypeidkwargsreturnNc                 r   > UR                  SS5      (       a  Sn[        U5      e[        TU ]  " SSU0UD6  g)zCreate a RemoveMessage.

Args:
    id: The ID of the message to remove.
    **kwargs: Additional fields to pass to the message.

Raises:
    ValueError: If the 'content' field is passed in kwargs.

contentNz/RemoveMessage does not support 'content' field.r   ) )pop
ValueErrorsuper__init__)selfr   r   msg	__class__s       Z/home/james-whalen/.local/lib/python3.13/site-packages/langchain_core/messages/modifier.pyr   RemoveMessage.__init__   s:     ::i&&CCS/!--f-     )__name__
__module____qualname____firstlineno____doc__r   r   __annotations__strr   r   __static_attributes____classcell__)r   s   @r   r   r      s>    :&D'(
&;.. . 
	. .r   r   N)r!   typingr   r   langchain_core.messages.baser   r   r   r   r   <module>r(      s    6  4.K .r   