
    g]                     4    d dl mZ d dlmZ d dlmZ defdZy)   )CustomUserAgentHook)DeprecationWarningHook)Hookshooksc                 h    | j                  t                      | j                  t                      y)a	  Add hooks by calling hooks.register{sdk_init/before_request/after_success/after_error}Hook
    with an instance of a hook that implements that specific Hook interface
    Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance
    N)register_before_request_hookr   register_after_success_hookr   )r   s    R/var/www/openai/venv/lib/python3.12/site-packages/mistralai/_hooks/registration.py
init_hooksr   
   s(     
&&':'<=	%%&<&>?    N)custom_user_agentr   deprecation_warningr   typesr   r    r   r
   <module>r      s    2 7 @e @r   