+
    iHàjb  ã                   ó>   € R t ^ RIHtHt ^ RIHt R R ltR R ltR# )z:Message hygiene at the resolved auxiliary client boundary.)ÚAsyncOpenAIÚOpenAI)ÚChatCompletionsTransportc                ó0   € V ^8„  d   QhR\         R\         /# )é   ÚkwargsÚreturn©Údict)Úformats   "Ú9/home/ubuntu/.hermes/hermes-agent/agent/auxiliary_wire.pyÚ__annotate__r      s   € ÷ ,ñ ,¬$ð ,´4ñ ,ó    c                ó<  € \        V \        \        34      '       d   RV9  d   V# ^ RIHp \        \        V RR4      ;'       g    R4      p\        4       P                  V! VR,          VP                  R4      VR7      VP                  R4      VR7      p/ VCRV/C# )a*  Sanitize actual Chat Completions SDK requests, not native adapter replay.

Auxiliary and MoA callers can retain a prepared request before the virtual
transport sanitizes its copy. The resolved SDK client identifies the wire;
native Messages/Responses adapters must retain their reasoning sidecars.
Úmessages)Úshape_wire_carriersÚbase_urlÚ Úmodel)r   r   )
Ú
isinstancer   r   Úagent.reasoning_carriersr   ÚstrÚgetattrr   Úconvert_messagesÚget)Úclientr   r   r   r   s   &&   r   Úprepare_chat_messagesr      s•   € ô �fœv¤{Ð3×4Ò4¸
È&Ô8PØˆÝ<ä”7˜6 :¨rÓ2×8Ð8°bÓ9€HÜ'Ó)×:Ñ:Ù˜F :Õ.°f·j±jÀÓ6IÐT\Ô]Ø�j‰j˜Ó!¨Hð ;ó €Hð ,ˆfÐ+�j (Ñ+Ð+r   c                ó0   € V ^8„  d   QhR\         R\         /# )r   Úmetadatar   r	   )r   s   "r   r   r      s   € ÷ 8ñ 8¤$ð 8¬4ñ 8r   c                ó   € / V CRR/C# )zÌRelay metadata for an auxiliary attempt.

Relay intercepts ``client.chat.completions.create``, so it decodes a chat-completions
request even when the adapter speaks Responses or Messages to its provider.
Úapi_modeÚchat_completions© )r   s   &r   Úrelay_chat_metadatar#      s   € ð 8ˆhÐ7˜
Ð$6Ñ7Ð7r   N)Ú__doc__Úopenair   r   Ú!agent.transports.chat_completionsr   r   r#   r"   r   r   Ú<module>r'      s   ðÙ @ç &å Fõ,÷&8r   