§
    ‰eîi2  ã                   ó^   — U d Z ddlmZmZmZmZmZ i Zee	d<   de
deddfd„Zde
fd	„Zdd
„ZdS )zëTransport layer types and registry for provider response normalization.

Usage:
    from agent.transports import get_transport
    transport = get_transport("anthropic_messages")
    result = transport.normalize_response(raw_response)
é    )ÚNormalizedResponseÚToolCallÚUsageÚbuild_tool_callÚmap_finish_reasonÚ	_REGISTRYÚapi_modeÚtransport_clsÚreturnNc                 ó   — |t           | <   dS )z2Register a transport class for an api_mode string.N)r   )r	   r
   s     ú;/home/div/.hermes/hermes-agent/agent/transports/__init__.pyÚregister_transportr      s   € à'…IˆhÑÐÐó    c                 ó¦   — t                                | ¦  «        }|€(t          ¦   «          t                                | ¦  «        }|€dS  |¦   «         S )uç   Get a transport instance for the given api_mode.

    Returns None if no transport is registered for this api_mode.
    This allows gradual migration â€” call sites can check for None
    and fall back to the legacy code path.
    N)r   ÚgetÚ_discover_transports)r	   Úclss     r   Úget_transportr      sN   € õ �-Š-˜Ñ
!Ô
!€CØ
€{õ
 	ÑÔÐÝ�mŠm˜HÑ%Ô%ˆØ
€{ØˆtØˆ3‰5Œ5€Lr   c                  ó¶   — 	 ddl } n# t          $ r Y nw xY w	 ddl} n# t          $ r Y nw xY w	 ddl} n# t          $ r Y nw xY w	 ddl} dS # t          $ r Y dS w xY w)z:Import all transport modules to trigger auto-registration.r   N)Úagent.transports.anthropicÚImportErrorÚagent.transports.codexÚ!agent.transports.chat_completionsÚagent.transports.bedrock)Úagents    r   r   r   '   s×   € ðØ)Ð)Ð)Ð)Ð)øÝð ð ð ØˆðøøøðØ%Ð%Ð%Ð%Ð%øÝð ð ð ØˆðøøøðØ0Ð0Ð0Ð0Ð0øÝð ð ð ØˆðøøøðØ'Ð'Ð'Ð'Ð'Ð'øÝð ð ð Øˆˆðøøøs8   ‚ ‡
“˜ �
*©*®3 ³
A ¿A ÁA
 Á

AÁA)r   N)Ú__doc__Úagent.transports.typesr   r   r   r   r   r   ÚdictÚ__annotations__ÚstrÚtyper   r   r   © r   r   ú<module>r#      s³   ððð ð ð kÐ jÐ jÐ jÐ jÐ jÐ jÐ jÐ jÐ jÐ jÐ jÐ jÐ jà€	ˆ4Ð Ð Ñ ð( ð (°Tð (¸dð (ð (ð (ð (ð
˜Cð ð ð ð ð(ð ð ð ð ð r   