Ë
    tPêj}  ã                   óð   — U d Z ddlZddlZddlmZ ddlmZmZ ddlm	Z	 ddl
mZ  e«       Zeed<   ej                  dd	g ee«      ge	¬
«      d„ «       Zej                  dd	g ee«      g¬«      d„ «       Zy)z"
Endpoints for managing callbacks
é    N)ÚFinal)Ú	APIRouterÚDepends)ÚCallbacksByType)Úuser_api_key_authÚrouterz/callbacks/listzLogging Callbacks)ÚtagsÚdependenciesÚresponse_modelc               ƒ   ó:   K  — ddl m}  | j                  «       }|S ­w)z/
    View List of Active Logging Callbacks
    r   )Úlogging_callback_manager)Úlitellmr   Úget_callbacks_by_type)r   Úcallbacks_by_types     ú…/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/litellm/proxy/management_endpoints/callback_management_endpoints.pyÚlist_callbacksr      s"   è ø€ õ 1ð  8×MÑMÓOÐàÐùs   ‚z/callbacks/configs)r	   r
   c            	   ƒ   ót  K  — t         j                  j                  t         j                  j                  t         j                  j                  t         j                  j                  t        «      «      «      dd«      } t        | d«      5 }t        j                  |«      }ddd«       |S # 1 sw Y   S xY w­w)z¾
    Get Available Callback Configurations

    Returns the configuration details for all available logging callbacks,
    including supported parameters, field types, and descriptions.
    Úintegrationszcallback_configs.jsonÚrN)ÚosÚpathÚjoinÚdirnameÚ__file__ÚopenÚjsonÚload)Úconfig_pathÚfÚconfigss      r   Úget_callback_configsr!   #   s‚   è ø€ ô Ÿ™Ÿ™Ü
�‰�‰œŸ™Ÿ™¬¯©¯©¼Ó(AÓBÓCØØó€Kô 
ˆk˜3Ó	ð & 1ÜŸ™ 1›ˆ÷&ð €N÷&ð €Nüs   ‚B	B8ÂB+Â!
B8Â+B5Â0B8)Ú__doc__r   r   Útypingr   Úfastapir   r   Ú3litellm.litellm_core_utils.logging_callback_managerr   Ú$litellm.proxy.auth.user_api_key_authr   r   Ú__annotations__Úgetr   r!   © ó    r   ú<module>r+      s›   ðòó Û 	Ý ç &å OÝ Bá“€ˆÓ ð ‡�ØØ
Ð	ÙÐ+Ó,Ð-Ø"ð	 ó ñ	óð	ð ‡�ØØ
Ð	ÙÐ+Ó,Ð-ð ó ñ
óñ
r*   