§
    ‰eîiC  ã                   ó(   — d Z ddlZdad„ Zdefd„ZdS )a  Shared OpenRouter API client for Hermes tools.

Provides a single lazy-initialized AsyncOpenAI client that all tool modules
can share.  Routes through the centralized provider router in
agent/auxiliary_client.py so auth, headers, and API format are handled
consistently.
é    Nc                  óp   — t           €)ddlm}   | dd¬¦  «        \  }}|€t          d¦  «        ‚|a t           S )a  Return a shared async OpenAI-compatible client for OpenRouter.

    The client is created lazily on first call and reused thereafter.
    Uses the centralized provider router for auth and client construction.
    Raises ValueError if OPENROUTER_API_KEY is not set.
    Nr   )Úresolve_provider_clientÚ
openrouterT)Ú
async_modez/OPENROUTER_API_KEY environment variable not set)Ú_clientÚagent.auxiliary_clientr   Ú
ValueError)r   ÚclientÚ_models      ú9/home/div/.hermes/hermes-agent/tools/openrouter_client.pyÚget_async_clientr      sR   € õ €ØBÐBÐBÐBÐBÐBØ0Ð0°È$ÐOÑOÔO‰ˆ�Øˆ>ÝÐNÑOÔOÐOØˆÝ€Nó    Úreturnc                  óD   — t          t          j        d¦  «        ¦  «        S )z0Check whether the OpenRouter API key is present.ÚOPENROUTER_API_KEY)ÚboolÚosÚgetenv© r   r   Úcheck_api_keyr      s   € å•”	Ð.Ñ/Ô/Ñ0Ô0Ð0r   )Ú__doc__r   r   r   r   r   r   r   r   ú<module>r      sS   ððð ð 
€	€	€	à
€ðð ð ð"1�tð 1ð 1ð 1ð 1ð 1ð 1r   