o
    i                     @   s`   U d dl mZ d dlmZ d dlmZ eeZeZee	d< de
de
dB dedB d	dfd
dZdS )    )	TypeAlias)ProgressFnT)
get_loggerProgressHandlerprogresstotalNmessagereturnc                    sd   |dur| | d }|  d| d|dd}n|  }|r&d| d| }nd| }t | dS )	a  Default handler for progress notifications.

    Logs progress updates at debug level, properly handling missing total or message values.

    Args:
        progress: Current progress value
        total: Optional total expected value
        message: Optional status message
    Nd   /z (z.1fz%)z
Progress: z - )loggerdebug)r   r   r   percentprogress_strlog_msg r   ]/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/fastmcp/client/progress.pydefault_progress_handler   s   
r   )typingr   mcp.shared.sessionr   fastmcp.utilities.loggingr   __name__r   r   __annotations__floatstrr   r   r   r   r   <module>   s    