Ë
    uPêj  ã            	       ó”   — d Z ddlmZ ddlmZ ddlmZ dddœdeeef   dz  deeef   dz  d	eeef   dz  fd
„Z	dedz  d	edz  fd„Z
y)z+
Utility functions for the Agents API SDK.
é    )ÚMapping)ÚFinal)ÚBaseAgentsAPIConfigN)Údynamic_headersÚstatic_headersr   r   Úreturnc           
      ó  — i }| rE|j                  | j                  «       D ��ci c]  \  }}t        |«      t        |«      “Œ c}}«       |r¡|D �ch c]  }t        |«      j                  «       ’Œ }}|j                  «       D ��ci c]  \  }}|j                  «       |vsŒ||“Œ }}}|j                  |j                  «       D ��ci c]  \  }}t        |«      t        |«      “Œ c}}«       |xs dS c c}}w c c}w c c}}w c c}}w )a  Merge outbound HTTP headers for A2A agent calls.

    Merge rules:
    - Start with ``dynamic_headers`` (values extracted from the incoming client request).
    - Overlay ``static_headers`` (admin-configured per agent).
    - Comparison is case-insensitive (HTTP headers are case-insensitive), so a
      static ``Authorization`` strips any dynamic ``authorization`` before the
      static value is written. The static side's casing is preserved.

    If both contain the same header (case-insensitively), ``static_headers`` wins.
    N)ÚupdateÚitemsÚstrÚlower)r   r   ÚmergedÚkÚvÚstatic_lowers         úf/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/litellm/interactions/agents/utils.pyÚmerge_agent_headersr      sÖ   € ð   €FáØ�‰°/×2GÑ2GÓ2I×J©$¨!¨Q”s˜1“vœs 1›v‘~ÓJÔKáØ7EÖF°!œs 1›vŸ|™|�~ÐFˆÐFØ#)§<¡<£>×S™4˜1˜a°Q·W±W³YÀlÒ5R�!�Q‘$ÐSˆÑSØ�‰°.×2FÑ2FÓ2H×I©$¨!¨Q”s˜1“vœs 1›v‘~ÓIÔJàŠ>�TÐùó Kùò GùÛSùÛIs   £C3
Á C9ÂC>Â C>ÃD
Úcustom_llm_providerc                 ó\   — ddl m} | |j                  j                  k(  rddlm}  |«       S y)z€
    Return a provider-specific BaseAgentsAPIConfig if the provider has a
    native agent-creation API, or None otherwise.
    r   )ÚLlmProviders)ÚGeminiAgentsConfigN)Úlitellm.types.utilsr   ÚGEMINIÚvalueÚ)litellm.llms.gemini.agents.transformationr   )r   r   r   s      r   Úget_provider_agents_api_configr   (   s*   € õ 1à˜l×1Ñ1×7Ñ7Ò7ÝPá!Ó#Ð#Øó    )Ú__doc__Úcollections.abcr   Útypingr   Ú+litellm.llms.base_llm.agents.transformationr   r   Údictr   r   © r   r   ú<module>r$      s…   ðñõ $Ý å Kð
 15Ø/3òà˜S #˜XÑ&¨Ñ-ðð ˜C ˜HÑ%¨Ñ,ðð 
ˆ#ˆsˆ(�^�dÑó	ð:Ø˜t™ðà˜4Ñôr   