
    0j\                         d Z dededefdZdS )z[
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License.
conversation_id
message_idreturnc                     | st          d          |r|                                r|dk    rt          d| d          |                     d          d         }| d| S )a  Construct a threaded conversation ID by appending `;messageid={message_id}`
    to the conversation ID. This is the format APX uses to route messages
    to a specific thread.

    Args:
        conversation_id: The conversation to thread into (e.g. `19:abc@thread.skype`)
        message_id: The thread root message ID (must be a non-zero numeric string)

    Returns:
        The threaded conversation ID (e.g. `19:abc@thread.skype;messageid=123`)
    z*conversation_id must be a non-empty string0zInvalid message_id "z#": must be a non-zero numeric value;    z;messageid=)
ValueErrorisdigitsplit)r   r   base_ids      i/home/rurouni/.hermes/hermes-agent/venv/lib/python3.11/site-packages/microsoft_teams/apps/utils/thread.pyto_threaded_conversation_idr      s      GEFFF aZ//11 aZ35F5F_
___``` ##C((+G..*...    N)__doc__strr    r   r   <module>r      sB    / /# /# / / / / / /r   