Ë
    ÿ`gjá  ã                   ój   — U d Z ddlmZmZmZmZmZ i Zee	d<   da
ee	d<   dededd	fd
„Zdefd„Zdd„Zy	)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Ú	_REGISTRYFÚ_discoveredÚapi_modeÚtransport_clsÚreturnNc                 ó   — |t         | <   y)z2Register a transport class for an api_mode string.N)r   )r
   r   s     úL/root/.hermes/venv/lib/python3.12/site-packages/agent/transports/__init__.pyÚregister_transportr      s   € à'„IˆhÒó    c                 ó¢   — t         s
t        «        t        j                  | «      }|€t        «        t        j                  | «      }|€y |«       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	   Ú_discover_transportsr   Úget)r
   Úclss     r   Úget_transportr      sE   € õ ÜÔÜ
-‰-˜Ó
!€CØ
€{ô
 	ÔÜm‰m˜HÓ%ˆØ
€{ØÙ‹5€Lr   c                  ó¨   — da 	 ddl} 	 ddl} 	 ddl} 	 ddl} y# t        $ r Y Œw xY w# t        $ r Y Œ%w xY w# t        $ r Y Œ/w xY w# t        $ r Y yw xY w)z:Import all transport modules to trigger auto-registration.Tr   N)r	   Úagent.transports.anthropicÚImportErrorÚagent.transports.codexÚ!agent.transports.chat_completionsÚagent.transports.bedrock)Úagents    r   r   r   1   sv   € ð €KðÛ)ðÛ%ðÛ0ðÜ'øô ò Ùðûô ò Ùðûô ò Ùðûô ò Ùðús8   „ ‰' Ž6 “A ˜	$£$§	3²3¶	AÁAÁ	AÁA)r   N)Ú__doc__Úagent.transports.typesr   r   r   r   r   r   ÚdictÚ__annotations__r	   ÚboolÚstrÚtyper   r   r   © r   r   ú<module>r%      sU   ðò÷õ ð €	ˆ4Ó Ø€ˆTÓ ð( ð (°Tð (¸dó (ð
˜Có ô.r   