§
    'ºj  ã                   ó,   — d dl mZ  G d„ d¦  «        ZdS )é    )Ú	WebClientc                   ó2   — e Zd ZdZdedefd„Zdeddfd„ZdS )	ÚFaila^  `fail()` utility to tell Slack the execution failure of a step from app.

        def execute(step, complete, fail):
            inputs = step["inputs"]
            # if something went wrong
            error = {"message": "Just testing step failure!"}
            fail(error=error)

        ws = WorkflowStep(
            callback_id="add_task",
            edit=edit,
            save=save,
            execute=execute,
        )
        app.step(ws)

    This utility is a thin wrapper of workflows.stepFailed API method.
    Refer to https://api.slack.com/methods/workflows.stepFailed for details.
    ÚclientÚbodyc                ó"   — || _         || _        d S )N)r   r   )Úselfr   r   s      úi/usr/local/lib/hermes-agent/venv/lib/python3.11/site-packages/slack_bolt/workflows/step/utilities/fail.pyÚ__init__zFail.__init__   s   € ØˆŒØˆŒ	ˆ	ˆ	ó    ÚerrorÚreturnNc                ól   — | j                              | j        d         d         d         |¬¦  «         d S )NÚeventÚworkflow_stepÚworkflow_step_execute_id)r   r   )r   Úworkflows_stepFailedr   )r	   r   s     r
   Ú__call__zFail.__call__   sE   € ð
 	Œ×(Ò(Ø%)¤Y¨wÔ%7¸Ô%HÐIcÔ%dØð 	)ñ 	
ô 	
ð 	
ð 	
ð 	
r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Údictr   r   © r   r
   r   r      sh   € € € € € ðð ð( )ð °4ð ð ð ð ð
ð ð
ð 
ð	
ð 
ð 
ð 
ð 
ð 
r   r   N)Úslack_sdk.webr   r   r   r   r
   ú<module>r      sI   ðØ #Ð #Ð #Ð #Ð #Ð #ð!
ð !
ð !
ð !
ð !
ñ !
ô !
ð !
ð !
ð !
r   