+
    KÿÎiC  ã                   ó(   € R t ^ RItRsR tR R ltR# )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                 ód   € \         f$   ^ RIHp  V ! RRR7      w  rVf   \        R4      hVs \         # )zý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.
)Úresolve_provider_clientÚ
openrouterT)Ú
async_modez/OPENROUTER_API_KEY environment variable not set)Ú_clientÚagent.auxiliary_clientr   Ú
ValueError)r   ÚclientÚ_models      Ú4/home/ubuntu/hermes-agent/tools/openrouter_client.pyÚget_async_clientr      s5   € ô ‚ÝBÙ0°È$ÔO‰ˆØŠ>ÜÐNÓOÐOØˆÜ€Nó    c                ó$   € V ^8„  d   QhR\         /# )é   Úreturn)Úbool)Úformats   "r   Ú__annotate__r      s   € ÷ 1ñ 1”tñ 1r   c                 ó@   € \        \        P                  ! R4      4      # )z0Check whether the OpenRouter API key is present.ÚOPENROUTER_API_KEY)r   ÚosÚgetenv© r   r   Úcheck_api_keyr      s   € ä”—	’	Ð.Ó/Ó0Ð0r   )Ú__doc__r   r   r   r   r   r   r   Ú<module>r      s   ðñó 
à
€ò÷"1r   