
    it                     L    d dl mZmZmZ d dlmZ d dlmZ  G d d          ZdS )    )AnyDictOptional)	WebClient)SlackResponsec                       e Zd ZU eed<   ee         ed<   eed<   dedee         fdZd
dee	ee
f                  defdZdefd	ZdS )Completeclientfunction_execution_id_calledc                 0    || _         || _        d| _        d S )NF)r
   r   r   )selfr
   r   s      _/root/projects/butler/venv/lib/python3.11/site-packages/slack_bolt/context/complete/complete.py__init__zComplete.__init__   s    
 %:"    Noutputsreturnc                     | j         t          d          d| _        | j                            | j         |pi           S )a<  Signal the successful completion of the custom function.

        Kwargs:
            outputs: Json serializable object containing the output values

        Returns:
            SlackResponse: The response object returned from slack

        Raises:
            ValueError: If this function cannot be used.
        NzAcomplete is unsupported here as there is no function_execution_idT)r   r   )r   
ValueErrorr   r
   functions_completeSuccess)r   r   s     r   __call__zComplete.__call__   sH     %-`aaa{444Keovo|z|4}}}r   c                     | j         S )zCheck if this complete function has been called.

        Returns:
            bool: True if the complete function has been called, False otherwise.
        )r   )r   s    r   has_been_calledzComplete.has_been_called'   s     |r   )N)__name__
__module____qualname__r   __annotations__r   strboolr   r   r   r   r   r    r   r   r	   r	      s         #C=(((MMM  (}   ~ ~c3h 8 ~M ~ ~ ~ ~$      r   r	   N)	typingr   r   r   	slack_sdkr   slack_sdk.webr   r	   r    r   r   <module>r$      sy    & & & & & & & & & &       ' ' ' ' ' '& & & & & & & & & &r   